wofi-widget-builder(3) | Library Functions Manual | wofi-widget-builder(3) |
wofi - Widget builder API functions
The functions documented here are used for building custom widgets with more power and flexibility than previously allowed. They are defined in wofi_widget_builder_api.h
struct mode* mode - The struct mode* given to your mode's init() function.
size_t actions - The number of builders to create
struct widget_builder* builder - The builder that contains the widget to set the search text for
char* search_text - The text to set as the search text
struct widget_builder* builder - The builder that contains the widget to set the action for
char* action - The text to set as the action
struct widget_builder* builder - The builder that contains the widget to add the text to
char* text - The text to add to the widget
... - The names of the CSS classes for this text. The class that will be assigned is .mode_name-css_name where mode_name is the name of the mode, i.e. drun etc. This should have a NULL sentinel
struct widget_builder* builder - The builder that contains the widget to add the text to
char* text - The text to add to the widget
struct wl_list* classes - The names of the CSS classes for this text. The class that will be assigned is .mode_name-css_name where mode_name is the name of the mode, i.e. drun etc. This list should contain struct css_class nodes.
struct widget_builder* builder - The builder that contains the widget to add the image to
GdkPixbuf* pixbuf - The image to add to the widget
... - The names of the CSS classes for this image. The class that will be assigned is .mode_name-css_name where mode_name is the name of the mode, i.e. drun etc. This should have a NULL sentinel
struct widget_builder* builder - The builder that contains the widget to add the image to
GdkPixbuf* pixbuf - The image to add to the widget
struct wl_list* classes - The names of the CSS classes for this image. The class that will be assigned is .mode_name-css_name where mode_name is the name of the mode, i.e. drun etc. This list should contain struct css_class nodes.
struct widget_builder* builder - The array of builders to get the builder from
size_t idx - The index in the array to get
struct widget_builder* builder - The builder to construct a widget for
struct widget_builder* builder - The builder to free