gui/widgets/custom_button.h file

Custom button to be drawn inside drawing areas.

Contents

Classes

struct CustomButtonWidget
Custom button to be drawn inside drawing areas.

Enums

enum CustomButtonWidgetState { CUSTOM_BUTTON_WIDGET_STATE_NORMAL, CUSTOM_BUTTON_WIDGET_STATE_HOVERED, CUSTOM_BUTTON_WIDGET_STATE_ACTIVE, CUSTOM_BUTTON_WIDGET_STATE_TOGGLED, CUSTOM_BUTTON_WIDGET_STATE_SEMI_TOGGLED }

Typedefs

using CustomButtonWidget = struct CustomButtonWidget
Custom button to be drawn inside drawing areas.

Functions

auto custom_button_widget_new(const char* icon_name, int size) -> CustomButtonWidget*
Creates a new track widget from the given track.
void custom_button_widget_set_text(CustomButtonWidget* self, PangoLayout* layout, char* text, const char* font_descr)
Sets the text and layout to draw the text width.