rofi  1.5.1
Helpers
Collaboration diagram for Helpers:

Modules

 Helper
 
 History
 
 Timings
 

Functions

PangoAttrList * helper_token_match_get_pango_attr (RofiHighlightColorStyle th, rofi_int_matcher **tokens, const char *input, PangoAttrList *retv)
 
gboolean helper_validate_font (PangoFontDescription *pfd, const char *font)
 

Detailed Description

Function Documentation

◆ helper_token_match_get_pango_attr()

PangoAttrList* helper_token_match_get_pango_attr ( RofiHighlightColorStyle  th,
rofi_int_matcher **  tokens,
const char *  input,
PangoAttrList *  retv 
)
Parameters
thThe RofiHighlightColorStyle
tokensArray of regexes used for matching
inputThe input string to find the matches on
retvThe Attribute list to update with matches

Creates a set of pango attributes highlighting the matches found in the input string.

Returns
the updated retv list.

Definition at line 410 of file helper.c.

References ThemeColor::blue, RofiHighlightColorStyle::color, count, ThemeColor::green, ThemeColor::red, ROFI_HL_BOLD, ROFI_HL_COLOR, ROFI_HL_ITALIC, ROFI_HL_SMALL_CAPS, ROFI_HL_STRIKETHROUGH, ROFI_HL_UNDERLINE, and RofiHighlightColorStyle::style.

Referenced by update_callback().

Here is the caller graph for this function:

◆ helper_validate_font()

gboolean helper_validate_font ( PangoFontDescription *  pfd,
const char *  font 
)
Parameters
pfdPango font description to validate.
fontThe name of the font to check.
Returns
true if font is valid.

Definition at line 556 of file helper.c.

Referenced by __create_window(), and textbox_initialize_font().

Here is the caller graph for this function: