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

#include <fader_widget.h>

Inheritance diagram for ArdourWidgets::FaderWidget:
[legend]

Public Types

enum  Tweaks { NoShowUnityLine = 0x1 , NoButtonForward = 0x2 , NoVerticalScroll = 0x4 , DoubleClickReset = 0x8 }
 
enum  Orientation { VERT , HORIZ }
 

Public Member Functions

 FaderWidget (Gtk::Adjustment &, int orient)
 
virtual ~FaderWidget ()
 
virtual void set_default_value (float)=0
 
void set_tweaks (Tweaks)
 
Tweaks tweaks () const
 
int orientation () const
 
virtual void set_bg (Gtkmm2ext::Color)=0
 
virtual void set_fg (Gtkmm2ext::Color)=0
 
virtual void unset_bg ()=0
 
virtual void unset_fg ()=0
 
- 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
 
virtual void set_active_state (Gtkmm2ext::ActiveState)
 
virtual void set_visual_state (Gtkmm2ext::VisualState)
 
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 ()
 
virtual void render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *)=0
 

Public Attributes

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

Protected Member Functions

bool on_button_press_event (GdkEventButton *)
 
bool on_button_release_event (GdkEventButton *)
 
bool on_touch_begin_event (GdkEventTouch *)
 
bool on_touch_end_event (GdkEventTouch *)
 
bool on_enter_notify_event (GdkEventCrossing *ev)
 
bool on_leave_notify_event (GdkEventCrossing *ev)
 
bool on_scroll_event (GdkEventScroll *ev)
 
bool on_grab_broken_event (GdkEventGrabBroken *)
 
void adjustment_changed ()
 
virtual void set_adjustment_from_event (GdkEventButton *)=0
 
- 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 ()
 
virtual void on_name_changed ()
 

Protected Attributes

Gtk::Adjustment & _adjustment
 
Tweaks _tweaks
 
int _orien
 
bool _dragging
 
bool _hovering
 
float _default_value
 
GdkWindow * _grab_window
 
double _grab_loc
 
double _grab_start
 
- Protected Attributes inherited from CairoWidget
Gtkmm2ext::ActiveState _active_state
 
Gtkmm2ext::VisualState _visual_state
 
bool _need_bg
 
bool _grabbed
 

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 28 of file fader_widget.h.

Member Enumeration Documentation

◆ Orientation

Enumerator
VERT 
HORIZ 

Definition at line 47 of file fader_widget.h.

◆ Tweaks

Enumerator
NoShowUnityLine 
NoButtonForward 
NoVerticalScroll 
DoubleClickReset 

Definition at line 40 of file fader_widget.h.

Constructor & Destructor Documentation

◆ FaderWidget()

ArdourWidgets::FaderWidget::FaderWidget ( Gtk::Adjustment &  ,
int  orient 
)

◆ ~FaderWidget()

virtual ArdourWidgets::FaderWidget::~FaderWidget ( )
inlinevirtual

Definition at line 32 of file fader_widget.h.

Member Function Documentation

◆ adjustment_changed()

void ArdourWidgets::FaderWidget::adjustment_changed ( )
protected

◆ on_button_press_event()

bool ArdourWidgets::FaderWidget::on_button_press_event ( GdkEventButton *  )
protected

◆ on_button_release_event()

bool ArdourWidgets::FaderWidget::on_button_release_event ( GdkEventButton *  )
protected

◆ on_enter_notify_event()

bool ArdourWidgets::FaderWidget::on_enter_notify_event ( GdkEventCrossing *  ev)
protected

◆ on_grab_broken_event()

bool ArdourWidgets::FaderWidget::on_grab_broken_event ( GdkEventGrabBroken *  )
protected

◆ on_leave_notify_event()

bool ArdourWidgets::FaderWidget::on_leave_notify_event ( GdkEventCrossing *  ev)
protected

◆ on_scroll_event()

bool ArdourWidgets::FaderWidget::on_scroll_event ( GdkEventScroll *  ev)
protected

◆ on_touch_begin_event()

bool ArdourWidgets::FaderWidget::on_touch_begin_event ( GdkEventTouch *  )
protected

◆ on_touch_end_event()

bool ArdourWidgets::FaderWidget::on_touch_end_event ( GdkEventTouch *  )
protected

◆ orientation()

int ArdourWidgets::FaderWidget::orientation ( ) const
inline

Definition at line 55 of file fader_widget.h.

◆ set_adjustment_from_event()

virtual void ArdourWidgets::FaderWidget::set_adjustment_from_event ( GdkEventButton *  )
protectedpure virtual

Implemented in ArdourWidgets::ArdourFader.

◆ set_bg()

virtual void ArdourWidgets::FaderWidget::set_bg ( Gtkmm2ext::Color  )
pure virtual

Implemented in ArdourWidgets::ArdourFader.

◆ set_default_value()

virtual void ArdourWidgets::FaderWidget::set_default_value ( float  )
pure virtual

Implemented in ArdourWidgets::ArdourFader.

◆ set_fg()

virtual void ArdourWidgets::FaderWidget::set_fg ( Gtkmm2ext::Color  )
pure virtual

Implemented in ArdourWidgets::ArdourFader.

◆ set_tweaks()

void ArdourWidgets::FaderWidget::set_tweaks ( Tweaks  )

◆ tweaks()

Tweaks ArdourWidgets::FaderWidget::tweaks ( ) const
inline

Definition at line 53 of file fader_widget.h.

◆ unset_bg()

virtual void ArdourWidgets::FaderWidget::unset_bg ( )
pure virtual

Implemented in ArdourWidgets::ArdourFader.

◆ unset_fg()

virtual void ArdourWidgets::FaderWidget::unset_fg ( )
pure virtual

Implemented in ArdourWidgets::ArdourFader.

Member Data Documentation

◆ _adjustment

Gtk::Adjustment& ArdourWidgets::FaderWidget::_adjustment
protected

Definition at line 76 of file fader_widget.h.

◆ _default_value

float ArdourWidgets::FaderWidget::_default_value
protected

Definition at line 82 of file fader_widget.h.

◆ _dragging

bool ArdourWidgets::FaderWidget::_dragging
protected

Definition at line 80 of file fader_widget.h.

◆ _grab_loc

double ArdourWidgets::FaderWidget::_grab_loc
protected

Definition at line 86 of file fader_widget.h.

◆ _grab_start

double ArdourWidgets::FaderWidget::_grab_start
protected

Definition at line 87 of file fader_widget.h.

◆ _grab_window

GdkWindow* ArdourWidgets::FaderWidget::_grab_window
protected

Definition at line 85 of file fader_widget.h.

◆ _hovering

bool ArdourWidgets::FaderWidget::_hovering
protected

Definition at line 81 of file fader_widget.h.

◆ _orien

int ArdourWidgets::FaderWidget::_orien
protected

Definition at line 79 of file fader_widget.h.

◆ _tweaks

Tweaks ArdourWidgets::FaderWidget::_tweaks
protected

Definition at line 78 of file fader_widget.h.

◆ OnExpose

sigc::signal<void> ArdourWidgets::FaderWidget::OnExpose

Definition at line 36 of file fader_widget.h.

◆ StartGesture

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

Definition at line 34 of file fader_widget.h.

◆ StopGesture

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

Definition at line 35 of file fader_widget.h.


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