Skip to main content

Module reaction_menu

Module reaction_menu 

Source
Expand description

What a note can be reacted to with, on offer under its like.

First a row: the like itself, the emoji this reader reacts with most (see crate::emoji), and a way to all the others. That way swaps the row for every emoji there is: a field to find one by what it is called, the groups they come in, and the emoji of the group chosen, or those found, in a grid that scrolls. Pressing any emoji reacts with it.

Constantsยง

EMOJI_CELL ๐Ÿ”’
EMOJI_SIZE ๐Ÿ”’
How large an emoji to react with is set, the room each has to be pressed in, and the room around them all.
PICKER_COLUMNS ๐Ÿ”’
How many emoji the grid of all of them has across, and how tall it is before it scrolls.
PICKER_HEIGHT ๐Ÿ”’
PICKER_SCROLLBAR_ROOM ๐Ÿ”’
The room beside the grid for the bar it scrolls by, which is drawn over what it scrolls: without it the last emoji of each row is under the bar.
REACTIONS_PADDING ๐Ÿ”’

Staticsยง

EMOJI_SEARCH ๐Ÿ”’
The field an emoji is found by, by which it is told to take the keyboard.

Functionsยง

cell ๐Ÿ”’
shown, in the room one thing to react with has, doing on_press when pressed.
emoji_cell ๐Ÿ”’
emoji, to be pressed: it reacts to the note note with itself. It is set in the colour of text, as it is in a note: an emoji drawn in one colour would take the colour of a button otherwise, where it is what is said and not what is done.
emoji_picker ๐Ÿ”’
Every emoji there is, to pick one from: the field to find one by, the groups, and the emoji of the group chosen or those found.
emoji_search_id
The id of the field an emoji is found by.
offered ๐Ÿ”’
What is offered, set apart from what it is over as a menu is.
reaction_menu
What menu offers to react to its note with: the row offered first, or every emoji there is once those were asked for.
reaction_row ๐Ÿ”’
The row offered first: the like, each of suggested, and the way to every other emoji.