Ardour  9.0-pre0-822-g12e3bc5c20
ArdourWidgets::StatefulToggleButton Class Reference

#include <stateful_button.h>

Inheritance diagram for ArdourWidgets::StatefulToggleButton:
[legend]

Public Member Functions

 StatefulToggleButton ()
 
 StatefulToggleButton (const std::string &label)
 
 ~StatefulToggleButton ()
 
void set_widget_name (const std::string &name)
 
- Public Member Functions inherited from ArdourWidgets::StateButton
 StateButton ()
 
virtual ~StateButton ()
 
void set_visual_state (int)
 
int get_visual_state ()
 
void set_self_managed (bool yn)
 

Protected Member Functions

void on_realize ()
 
void on_toggled ()
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &style)
 
void on_state_changed (Gtk::StateType old_state)
 
Gtk::Widget * get_child_widget ()
 
std::string get_widget_name () const
 
- Protected Member Functions inherited from ArdourWidgets::StateButton
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)
 

Additional Inherited Members

- Protected Attributes inherited from ArdourWidgets::StateButton
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 58 of file stateful_button.h.

Constructor & Destructor Documentation

◆ StatefulToggleButton() [1/2]

ArdourWidgets::StatefulToggleButton::StatefulToggleButton ( )

◆ StatefulToggleButton() [2/2]

ArdourWidgets::StatefulToggleButton::StatefulToggleButton ( const std::string &  label)
explicit

◆ ~StatefulToggleButton()

ArdourWidgets::StatefulToggleButton::~StatefulToggleButton ( )
inline

Definition at line 63 of file stateful_button.h.

Member Function Documentation

◆ get_child_widget()

Gtk::Widget* ArdourWidgets::StatefulToggleButton::get_child_widget ( )
protectedvirtual

◆ get_widget_name()

std::string ArdourWidgets::StatefulToggleButton::get_widget_name ( ) const
inlineprotectedvirtual

Implements ArdourWidgets::StateButton.

Definition at line 73 of file stateful_button.h.

◆ on_realize()

void ArdourWidgets::StatefulToggleButton::on_realize ( )
protected

◆ on_state_changed()

void ArdourWidgets::StatefulToggleButton::on_state_changed ( Gtk::StateType  old_state)
protected

◆ on_style_changed()

void ArdourWidgets::StatefulToggleButton::on_style_changed ( const Glib::RefPtr< Gtk::Style > &  style)
protected

◆ on_toggled()

void ArdourWidgets::StatefulToggleButton::on_toggled ( )
protected

◆ set_widget_name()

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

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