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

#include <stateful_button.h>

Inheritance diagram for ArdourWidgets::StatefulButton:
[legend]

Public Member Functions

 StatefulButton ()
 
 StatefulButton (const std::string &label)
 
virtual ~StatefulButton ()
 
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_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 76 of file stateful_button.h.

Constructor & Destructor Documentation

◆ StatefulButton() [1/2]

ArdourWidgets::StatefulButton::StatefulButton ( )

◆ StatefulButton() [2/2]

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

◆ ~StatefulButton()

virtual ArdourWidgets::StatefulButton::~StatefulButton ( )
inlinevirtual

Definition at line 81 of file stateful_button.h.

Member Function Documentation

◆ get_child_widget()

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

◆ get_widget_name()

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

Implements ArdourWidgets::StateButton.

Definition at line 90 of file stateful_button.h.

◆ on_realize()

void ArdourWidgets::StatefulButton::on_realize ( )
protected

◆ on_state_changed()

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

◆ on_style_changed()

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

◆ set_widget_name()

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

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