Ardour  9.0-pre0-822-g12e3bc5c20
ArdourWidgets::ArdourCtrlBase Class Referenceabstract

#include <ardour_ctrl_base.h>

Inheritance diagram for ArdourWidgets::ArdourCtrlBase:
[legend]

Public Types

enum  Flags {
  NoFlags = 0x0 , Detent = 0x1 , ArcToZero = 0x2 , NoHorizontal = 0x4 ,
  NoVertical = 0x8 , Reverse = 0x10
}
 

Public Member Functions

 ArdourCtrlBase (Flags flags=NoFlags)
 
virtual ~ArdourCtrlBase ()
 
void set_active_state (Gtkmm2ext::ActiveState)
 
void set_visual_state (Gtkmm2ext::VisualState)
 
void set_tooltip_prefix (std::string pfx)
 
std::shared_ptr< PBD::Controllableget_controllable ()
 
void set_controllable (std::shared_ptr< PBD::Controllable > c)
 
bool on_button_press_event (GdkEventButton *)
 
bool on_button_release_event (GdkEventButton *)
 
bool on_scroll_event (GdkEventScroll *ev)
 
bool on_motion_notify_event (GdkEventMotion *ev)
 
void color_handler ()
 
void set_size_request (int, int)
 
- Public Member Functions inherited from CairoWidget
 CairoWidget ()
 
virtual ~CairoWidget ()
 
void set_canvas_widget ()
 
void use_nsglview (bool retina=true)
 
void use_image_surface (bool yn=true)
 
void queue_draw ()
 
void queue_resize ()
 
int get_width () const
 
int get_height () const
 
void size_allocate (Gtk::Allocation &)
 
void set_dirty (cairo_rectangle_t *area=0)
 
Gtkmm2ext::ActiveState active_state () const
 
Gtkmm2ext::VisualState visual_state () const
 
void unset_active_state ()
 
void unset_visual_state ()
 
void set_active (bool)
 
bool get_active () const
 
void set_draw_background (bool yn)
 
uint32_t background_color ()
 
- Public Member Functions inherited from Gtkmm2ext::CairoCanvas
virtual ~CairoCanvas ()
 
- Public Member Functions inherited from Gtkmm2ext::Activatable
virtual ~Activatable ()
 
virtual void set_related_action (Glib::RefPtr< Gtk::Action > a)
 
Glib::RefPtr< Gtk::Action > get_related_action ()
 

Public Attributes

sigc::signal< void, int > StartGesture
 
sigc::signal< void, int > StopGesture
 
- Public Attributes inherited from CairoWidget
sigc::signal< void > StateChanged
 
sigc::signal< bool > QueueDraw
 
sigc::signal< bool > QueueResize
 

Protected Member Functions

virtual void render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *)=0
 
void on_size_request (Gtk::Requisition *req)
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
void on_name_changed ()
 
bool on_enter_notify_event (GdkEventCrossing *)
 
bool on_leave_notify_event (GdkEventCrossing *)
 
bool on_focus_in_event (GdkEventFocus *)
 
bool on_focus_out_event (GdkEventFocus *)
 
- Protected Member Functions inherited from CairoWidget
virtual bool on_expose_event (GdkEventExpose *)
 
void on_size_allocate (Gtk::Allocation &)
 
void on_state_changed (Gtk::StateType)
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
void on_realize ()
 
bool on_button_press_event (GdkEventButton *)
 
Gdk::Color get_parent_bg ()
 
void on_map ()
 
void on_unmap ()
 

Protected Attributes

int _req_width
 
int _req_height
 
bool _hovering
 
float _val
 
float _normal
 
Flags _flags
 
CtrlPersistentTooltip _tooltip
 
- Protected Attributes inherited from CairoWidget
Gtkmm2ext::ActiveState _active_state
 
Gtkmm2ext::VisualState _visual_state
 
bool _need_bg
 
bool _grabbed
 
- Protected Attributes inherited from Gtkmm2ext::Activatable
Glib::RefPtr< Gtk::Action > _action
 

Private Member Functions

void controllable_changed (bool force_update=false)
 
void action_sensitivity_changed ()
 
void action_visibility_changed ()
 
void action_tooltip_changed ()
 

Private Attributes

PBD::ScopedConnection watch_connection
 
BindingProxy binding_proxy
 
float _grabbed_x
 
float _grabbed_y
 
float _dead_zone_delta
 
std::string _tooltip_prefix
 

Additional Inherited Members

- Static Public Member Functions inherited from CairoWidget
static void provide_background_for_cairo_widget (Gtk::Widget &w, const Gdk::Color &bg)
 
static void set_source_rgb_a (cairo_t *cr, Gdk::Color, float a=1.0)
 
static void set_source_rgb_a (cairo_t *cr, Gtkmm2ext::Color, float a=1.0)
 
static void set_focus_handler (sigc::slot< void, Gtk::Widget * >)
 
- Static Public Member Functions inherited from Gtkmm2ext::CairoTheme
static void set_flat_buttons (bool yn)
 
static void set_boxy_buttons (bool yn)
 
static void set_widget_prelight (bool yn)
 
static bool flat_buttons ()
 
static bool boxy_buttons ()
 
static bool widget_prelight ()
 
- Static Protected Attributes inherited from CairoWidget
static sigc::slot< void, Gtk::Widget * > focus_handler
 

Detailed Description

Definition at line 53 of file ardour_ctrl_base.h.

Member Enumeration Documentation

◆ Flags

Enumerator
NoFlags 
Detent 
ArcToZero 
NoHorizontal 
NoVertical 
Reverse 

Definition at line 56 of file ardour_ctrl_base.h.

Constructor & Destructor Documentation

◆ ArdourCtrlBase()

ArdourWidgets::ArdourCtrlBase::ArdourCtrlBase ( Flags  flags = NoFlags)

◆ ~ArdourCtrlBase()

virtual ArdourWidgets::ArdourCtrlBase::~ArdourCtrlBase ( )
virtual

Member Function Documentation

◆ action_sensitivity_changed()

void ArdourWidgets::ArdourCtrlBase::action_sensitivity_changed ( )
private

◆ action_tooltip_changed()

void ArdourWidgets::ArdourCtrlBase::action_tooltip_changed ( )
private

◆ action_visibility_changed()

void ArdourWidgets::ArdourCtrlBase::action_visibility_changed ( )
private

◆ color_handler()

void ArdourWidgets::ArdourCtrlBase::color_handler ( )

◆ controllable_changed()

void ArdourWidgets::ArdourCtrlBase::controllable_changed ( bool  force_update = false)
private

◆ get_controllable()

std::shared_ptr<PBD::Controllable> ArdourWidgets::ArdourCtrlBase::get_controllable ( )
inline

Definition at line 73 of file ardour_ctrl_base.h.

◆ on_button_press_event()

bool ArdourWidgets::ArdourCtrlBase::on_button_press_event ( GdkEventButton *  )

◆ on_button_release_event()

bool ArdourWidgets::ArdourCtrlBase::on_button_release_event ( GdkEventButton *  )

◆ on_enter_notify_event()

bool ArdourWidgets::ArdourCtrlBase::on_enter_notify_event ( GdkEventCrossing *  )
protected

◆ on_focus_in_event()

bool ArdourWidgets::ArdourCtrlBase::on_focus_in_event ( GdkEventFocus *  )
protected

◆ on_focus_out_event()

bool ArdourWidgets::ArdourCtrlBase::on_focus_out_event ( GdkEventFocus *  )
protected

◆ on_leave_notify_event()

bool ArdourWidgets::ArdourCtrlBase::on_leave_notify_event ( GdkEventCrossing *  )
protected

◆ on_motion_notify_event()

bool ArdourWidgets::ArdourCtrlBase::on_motion_notify_event ( GdkEventMotion *  ev)

◆ on_name_changed()

void ArdourWidgets::ArdourCtrlBase::on_name_changed ( )
protectedvirtual

Reimplemented from CairoWidget.

◆ on_scroll_event()

bool ArdourWidgets::ArdourCtrlBase::on_scroll_event ( GdkEventScroll *  ev)

◆ on_size_request()

void ArdourWidgets::ArdourCtrlBase::on_size_request ( Gtk::Requisition *  req)
protected

◆ on_style_changed()

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

◆ render()

virtual void ArdourWidgets::ArdourCtrlBase::render ( Cairo::RefPtr< Cairo::Context > const &  ,
cairo_rectangle_t *   
)
protectedpure virtual

◆ set_active_state()

void ArdourWidgets::ArdourCtrlBase::set_active_state ( Gtkmm2ext::ActiveState  )
virtual

Reimplemented from CairoWidget.

◆ set_controllable()

void ArdourWidgets::ArdourCtrlBase::set_controllable ( std::shared_ptr< PBD::Controllable c)

◆ set_size_request()

void ArdourWidgets::ArdourCtrlBase::set_size_request ( int  ,
int   
)

◆ set_tooltip_prefix()

void ArdourWidgets::ArdourCtrlBase::set_tooltip_prefix ( std::string  pfx)
inline

Definition at line 71 of file ardour_ctrl_base.h.

◆ set_visual_state()

void ArdourWidgets::ArdourCtrlBase::set_visual_state ( Gtkmm2ext::VisualState  )
virtual

Reimplemented from CairoWidget.

Member Data Documentation

◆ _dead_zone_delta

float ArdourWidgets::ArdourCtrlBase::_dead_zone_delta
private

Definition at line 122 of file ardour_ctrl_base.h.

◆ _flags

Flags ArdourWidgets::ArdourCtrlBase::_flags
protected

Definition at line 107 of file ardour_ctrl_base.h.

◆ _grabbed_x

float ArdourWidgets::ArdourCtrlBase::_grabbed_x
private

Definition at line 120 of file ardour_ctrl_base.h.

◆ _grabbed_y

float ArdourWidgets::ArdourCtrlBase::_grabbed_y
private

Definition at line 121 of file ardour_ctrl_base.h.

◆ _hovering

bool ArdourWidgets::ArdourCtrlBase::_hovering
protected

Definition at line 102 of file ardour_ctrl_base.h.

◆ _normal

float ArdourWidgets::ArdourCtrlBase::_normal
protected

Definition at line 105 of file ardour_ctrl_base.h.

◆ _req_height

int ArdourWidgets::ArdourCtrlBase::_req_height
protected

Definition at line 100 of file ardour_ctrl_base.h.

◆ _req_width

int ArdourWidgets::ArdourCtrlBase::_req_width
protected

Definition at line 99 of file ardour_ctrl_base.h.

◆ _tooltip

CtrlPersistentTooltip ArdourWidgets::ArdourCtrlBase::_tooltip
protected

Definition at line 108 of file ardour_ctrl_base.h.

◆ _tooltip_prefix

std::string ArdourWidgets::ArdourCtrlBase::_tooltip_prefix
private

Definition at line 124 of file ardour_ctrl_base.h.

◆ _val

float ArdourWidgets::ArdourCtrlBase::_val
protected

Definition at line 104 of file ardour_ctrl_base.h.

◆ binding_proxy

BindingProxy ArdourWidgets::ArdourCtrlBase::binding_proxy
private

Definition at line 118 of file ardour_ctrl_base.h.

◆ StartGesture

sigc::signal<void,int> ArdourWidgets::ArdourCtrlBase::StartGesture

Definition at line 83 of file ardour_ctrl_base.h.

◆ StopGesture

sigc::signal<void,int> ArdourWidgets::ArdourCtrlBase::StopGesture

Definition at line 84 of file ardour_ctrl_base.h.

◆ watch_connection

PBD::ScopedConnection ArdourWidgets::ArdourCtrlBase::watch_connection
private

Definition at line 116 of file ardour_ctrl_base.h.


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