Ardour
9.0-pre0-822-g12e3bc5c20
|
#include <ardour_fader.h>
Classes | |
struct | FaderImage |
Public Member Functions | |
ArdourFader (Gtk::Adjustment &adjustment, int orientation, int span, int girth) | |
virtual | ~ArdourFader () |
void | set_default_value (float) |
void | set_text (const std::string &, bool centered=true, bool expose=true) |
void | set_bg (Gtkmm2ext::Color) |
void | set_fg (Gtkmm2ext::Color) |
void | unset_bg () |
void | unset_fg () |
Public Member Functions inherited from ArdourWidgets::FaderWidget | |
FaderWidget (Gtk::Adjustment &, int orient) | |
virtual | ~FaderWidget () |
void | set_tweaks (Tweaks) |
Tweaks | tweaks () const |
int | orientation () const |
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 () |
Static Public Member Functions | |
static void | flush_pattern_cache () |
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 () |
Protected Member Functions | |
void | on_size_request (GtkRequisition *) |
void | on_size_allocate (Gtk::Allocation &alloc) |
void | render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *) |
bool | on_motion_notify_event (GdkEventMotion *) |
bool | on_touch_update_event (GdkEventTouch *) |
void | on_state_changed (Gtk::StateType) |
void | on_style_changed (const Glib::RefPtr< Gtk::Style > &) |
Protected Member Functions inherited from ArdourWidgets::FaderWidget | |
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 () |
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 () |
Private Member Functions | |
Gdk::Color | get_parent_bg () |
void | create_patterns () |
void | set_adjustment_from_event (GdkEventButton *) |
void | update_unity_position () |
int | display_span () |
Gdk::Color | bg_color (Gtk::StateType) |
Gdk::Color | fg_color (Gtk::StateType) |
Static Private Member Functions | |
static cairo_pattern_t * | find_pattern (double afr, double afg, double afb, double abr, double abg, double abb, int w, int h) |
Private Attributes | |
Glib::RefPtr< Pango::Layout > | _layout |
std::string | _text |
int | _text_width |
int | _text_height |
int | _span |
int | _girth |
int | _min_span |
int | _min_girth |
cairo_pattern_t * | _pattern |
int | _unity_loc |
bool | _centered_text |
sigc::connection | _parent_style_change |
Widget * | _current_parent |
Gtkmm2ext::Color | explicit_bg |
bool | have_explicit_bg |
Gtkmm2ext::Color | explicit_fg |
bool | have_explicit_fg |
uint32_t | outline_color |
Static Private Attributes | |
static std::list< FaderImage * > | _patterns |
Additional Inherited Members | |
Public Types inherited from ArdourWidgets::FaderWidget | |
enum | Tweaks { NoShowUnityLine = 0x1 , NoButtonForward = 0x2 , NoVerticalScroll = 0x4 , DoubleClickReset = 0x8 } |
enum | Orientation { VERT , HORIZ } |
Public Attributes inherited from ArdourWidgets::FaderWidget | |
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 Attributes inherited from ArdourWidgets::FaderWidget | |
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 |
Static Protected Attributes inherited from CairoWidget | |
static sigc::slot< void, Gtk::Widget * > | focus_handler |
Definition at line 36 of file ardour_fader.h.
ArdourWidgets::ArdourFader::ArdourFader | ( | Gtk::Adjustment & | adjustment, |
int | orientation, | ||
int | span, | ||
int | girth | ||
) |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
static |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Implements Gtkmm2ext::CairoCanvas.
|
privatevirtual |
Implements ArdourWidgets::FaderWidget.
|
virtual |
Implements ArdourWidgets::FaderWidget.
|
virtual |
Implements ArdourWidgets::FaderWidget.
|
virtual |
Implements ArdourWidgets::FaderWidget.
void ArdourWidgets::ArdourFader::set_text | ( | const std::string & | , |
bool | centered = true , |
||
bool | expose = true |
||
) |
|
virtual |
Implements ArdourWidgets::FaderWidget.
|
virtual |
Implements ArdourWidgets::FaderWidget.
|
private |
|
private |
Definition at line 73 of file ardour_fader.h.
|
private |
Definition at line 76 of file ardour_fader.h.
|
private |
Definition at line 68 of file ardour_fader.h.
|
private |
Definition at line 63 of file ardour_fader.h.
|
private |
Definition at line 69 of file ardour_fader.h.
|
private |
Definition at line 69 of file ardour_fader.h.
|
private |
Definition at line 75 of file ardour_fader.h.
|
private |
Definition at line 70 of file ardour_fader.h.
|
staticprivate |
Definition at line 132 of file ardour_fader.h.
|
private |
Definition at line 68 of file ardour_fader.h.
|
private |
Definition at line 64 of file ardour_fader.h.
|
private |
Definition at line 66 of file ardour_fader.h.
|
private |
Definition at line 65 of file ardour_fader.h.
|
private |
Definition at line 72 of file ardour_fader.h.
|
private |
Definition at line 78 of file ardour_fader.h.
|
private |
Definition at line 80 of file ardour_fader.h.
|
private |
Definition at line 79 of file ardour_fader.h.
|
private |
Definition at line 81 of file ardour_fader.h.
|
private |
Definition at line 83 of file ardour_fader.h.