Ardour  9.0-pre0-582-g084a23a80d
ArdourWidgets::StateButton Class Referenceabstract

#include <stateful_button.h>

Inheritance diagram for ArdourWidgets::StateButton:
[legend]

Public Member Functions

 StateButton ()
 
virtual ~StateButton ()
 
void set_visual_state (int)
 
int get_visual_state ()
 
void set_self_managed (bool yn)
 
virtual void set_widget_name (const std::string &name)=0
 

Protected Member Functions

virtual std::string get_widget_name () const =0
 
virtual Gtk::Widgetget_child_widget ()=0
 
void avoid_prelight_on_style_changed (const Glib::RefPtr< Gtk::Style > &style, GtkWidget *widget)
 
void avoid_prelight_on_state_changed (Gtk::StateType old_state, GtkWidget *widget)
 

Protected Attributes

int visual_state
 
bool _self_managed
 
bool _is_realized
 
bool style_changing
 
Gtk::StateType state_before_prelight
 
bool is_toggle
 

Detailed Description

Definition at line 31 of file stateful_button.h.

Constructor & Destructor Documentation

◆ StateButton()

ArdourWidgets::StateButton::StateButton ( )

◆ ~StateButton()

virtual ArdourWidgets::StateButton::~StateButton ( )
inlinevirtual

Definition at line 35 of file stateful_button.h.

Member Function Documentation

◆ avoid_prelight_on_state_changed()

void ArdourWidgets::StateButton::avoid_prelight_on_state_changed ( Gtk::StateType  old_state,
GtkWidget widget 
)
protected

◆ avoid_prelight_on_style_changed()

void ArdourWidgets::StateButton::avoid_prelight_on_style_changed ( const Glib::RefPtr< Gtk::Style > &  style,
GtkWidget widget 
)
protected

◆ get_child_widget()

virtual Gtk::Widget* ArdourWidgets::StateButton::get_child_widget ( )
protectedpure virtual

◆ get_visual_state()

int ArdourWidgets::StateButton::get_visual_state ( )
inline

Definition at line 38 of file stateful_button.h.

◆ get_widget_name()

virtual std::string ArdourWidgets::StateButton::get_widget_name ( ) const
protectedpure virtual

◆ set_self_managed()

void ArdourWidgets::StateButton::set_self_managed ( bool  yn)
inline

Definition at line 39 of file stateful_button.h.

◆ set_visual_state()

void ArdourWidgets::StateButton::set_visual_state ( int  )

◆ set_widget_name()

virtual void ArdourWidgets::StateButton::set_widget_name ( const std::string &  name)
pure virtual

Member Data Documentation

◆ _is_realized

bool ArdourWidgets::StateButton::_is_realized
protected

Definition at line 45 of file stateful_button.h.

◆ _self_managed

bool ArdourWidgets::StateButton::_self_managed
protected

Definition at line 44 of file stateful_button.h.

◆ is_toggle

bool ArdourWidgets::StateButton::is_toggle
protected

Definition at line 48 of file stateful_button.h.

◆ state_before_prelight

Gtk::StateType ArdourWidgets::StateButton::state_before_prelight
protected

Definition at line 47 of file stateful_button.h.

◆ style_changing

bool ArdourWidgets::StateButton::style_changing
protected

Definition at line 46 of file stateful_button.h.

◆ visual_state

int ArdourWidgets::StateButton::visual_state
protected

Definition at line 43 of file stateful_button.h.


The documentation for this class was generated from the following file: