|
rofi 1.7.8
|
#include "keyb.h"#include "widgets/widget-internal.h"#include "widgets/widget.h"#include <cairo.h>#include <pango/pango-fontmap.h>#include <pango/pango.h>#include <pango/pangocairo.h>#include <xkbcommon/xkbcommon.h>

Go to the source code of this file.
Data Structures | |
| struct | TBFontConfig |
| struct | textbox |
Typedefs | |
| typedef struct TBFontConfig | TBFontConfig |
Enumerations | |
| enum | TextboxFlags { TB_AUTOHEIGHT = 1 << 0 , TB_AUTOWIDTH = 1 << 1 , TB_EDITABLE = 1 << 19 , TB_MARKUP = 1 << 20 , TB_WRAP = 1 << 21 , TB_PASSWORD = 1 << 22 } |
| enum | TextBoxFontType { NORMAL = 0 , URGENT = 1 , ACTIVE = 2 , SELECTED = 4 , MARKUP = 8 , ALT = 16 , HIGHLIGHT = 32 , FMOD_MASK = (ALT | HIGHLIGHT) , STATE_MASK = ~(SELECTED | MARKUP | ALT | HIGHLIGHT) } |
Functions | |
| textbox * | textbox_create (widget *parent, WidgetType type, const char *name, TextboxFlags flags, TextBoxFontType tbft, const char *text, double xalign, double yalign) |
| void | textbox_font (textbox *tb, TextBoxFontType tbft) |
| void | textbox_text (textbox *tb, const char *text) |
| int | textbox_keybinding (textbox *tb, KeyBindingAction action) |
| gboolean | textbox_append_text (textbox *tb, const char *pad, const int pad_len) |
| void | textbox_cursor (textbox *tb, int pos) |
| void | textbox_insert (textbox *tb, const int char_pos, const char *str, const int slen) |
| void | textbox_setup (void) |
| void | textbox_cleanup (void) |
| int | textbox_get_height (const textbox *tb) |
| int | textbox_get_font_height (const textbox *tb) |
| int | textbox_get_font_width (const textbox *tb) |
| double | textbox_get_estimated_char_width (void) |
| double | textbox_get_estimated_ch (void) |
| double | textbox_get_estimated_char_height (void) |
| void | textbox_delete (textbox *tb, int pos, int dlen) |
| void | textbox_moveresize (textbox *tb, int x, int y, int w, int h) |
| int | textbox_get_estimated_height (const textbox *tb, int eh) |
| void | textbox_set_pango_context (const char *font, PangoContext *p) |
| void | textbox_set_pango_attributes (textbox *tb, PangoAttrList *list) |
| PangoAttrList * | textbox_get_pango_attributes (textbox *tb) |
| const char * | textbox_get_visible_text (const textbox *tb) |
| int | textbox_get_desired_width (widget *wid, G_GNUC_UNUSED const int height) |
| void | textbox_cursor_end (textbox *tb) |
| void | textbox_set_ellipsize (textbox *tb, PangoEllipsizeMode mode) |
| int | textbox_get_cursor_x_pos (const textbox *tb) |
| char * | textbox_get_text (const textbox *tb) |
| int | textbox_get_cursor (const textbox *tb) |