rofi  1.7.5
Helpers
Collaboration diagram for Helpers:

Modules

 CssColors
 
 Helper
 
 History
 
 IconFetcher
 
 Timings
 

Functions

PangoAttrList * helper_token_match_get_pango_attr (RofiHighlightColorStyle th, rofi_int_matcher **tokens, const char *input, PangoAttrList *retv)
 
void helper_token_match_set_pango_attr_on_style (PangoAttrList *retv, int start, int end, RofiHighlightColorStyle th)
 
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 487 of file helper.c.

References config, count, helper_token_match_set_pango_attr_on_style(), and Settings::normalize_match.

Referenced by update_callback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ helper_token_match_set_pango_attr_on_style()

void helper_token_match_set_pango_attr_on_style ( PangoAttrList *  retv,
int  start,
int  end,
RofiHighlightColorStyle  th 
)
Parameters
retvThe Attribute list to update with matches
startThe start to highlighting.
endThe end point for the highlight
thThe RofiHighlightColorStyle

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

Definition at line 418 of file helper.c.

References ThemeColor::alpha, ThemeColor::blue, RofiHighlightColorStyle::color, ThemeColor::green, ThemeColor::red, ROFI_HL_BOLD, ROFI_HL_CAPITALIZE, ROFI_HL_COLOR, ROFI_HL_ITALIC, ROFI_HL_LOWERCASE, ROFI_HL_STRIKETHROUGH, ROFI_HL_UNDERLINE, ROFI_HL_UPPERCASE, and RofiHighlightColorStyle::style.

Referenced by __textbox_update_pango_text(), and helper_token_match_get_pango_attr().

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 628 of file helper.c.

Referenced by __create_window(), and textbox_initialize_font().

Here is the caller graph for this function: