rofi
1.5.4
|
#include <xkbcommon/xkbcommon.h>
#include <pango/pango.h>
#include <pango/pango-fontmap.h>
#include <pango/pangocairo.h>
#include <cairo.h>
#include "widgets/widget.h"
#include "widgets/widget-internal.h"
#include "keyb.h"
Go to the source code of this file.
Data Structures | |
struct | textbox |
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, TB_INDICATOR = 1 << 23, TB_ICON = 1 << 24 } |
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) |
void | textbox_icon (textbox *tb, cairo_surface_t *icon) |
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) |
void | textbox_set_icon_index (textbox *tb, int index) |
PangoAttrList * | textbox_get_pango_attributes (textbox *tb) |
const char * | textbox_get_visible_text (const textbox *tb) |
int | textbox_get_desired_width (widget *wid) |
void | textbox_cursor_end (textbox *tb) |
void | textbox_set_ellipsize (textbox *tb, PangoEllipsizeMode mode) |