diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-05-10 18:02:23 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-05-10 18:02:23 +0200 |
commit | c8a6b266079ff25bfb979641e1a1101ca5a32258 (patch) | |
tree | b32ca599809cb766579a316f66b4bdbfb570e582 /include | |
parent | 09437e3f0e22a0819cd841635f572dab88e644ad (diff) |
First try at highlighting match (regex only)
Diffstat (limited to 'include')
-rw-r--r-- | include/helper.h | 2 | ||||
-rw-r--r-- | include/textbox.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/helper.h b/include/helper.h index de6f1097..93bbc022 100644 --- a/include/helper.h +++ b/include/helper.h @@ -2,6 +2,7 @@ #define ROFI_HELPER_H #include "rofi.h" +#include <pango/pango.h> /** * @defgroup HELPERS Helpers */ @@ -171,5 +172,6 @@ unsigned int levenshtein ( const char *needle, const char *haystack ); */ char * rofi_force_utf8 ( gchar *data ); char * rofi_latin_to_utf8_strdup ( const char *input, gssize length ); +PangoAttrList *regex_token_match_get_pango_attr ( char **tokens, const char *input, PangoAttrList *retv ); /*@}*/ #endif // ROFI_HELPER_H diff --git a/include/textbox.h b/include/textbox.h index afadd9e4..c315f08a 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -225,6 +225,10 @@ 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_char_height ( void ); void textbox_set_pango_context ( PangoContext *p ); +void textbox_set_pango_attributes ( textbox *tb, PangoAttrList *list ); +PangoAttrList *textbox_get_pango_attributes ( textbox *tb ); + +const char *textbox_get_visible_text ( textbox *tb ); /*@}*/ #endif //ROFI_TEXTBOX_H |