Ardour
9.0-pre0-822-g12e3bc5c20
|
#include <ardour_knob.h>
Public Types | |
enum | Element { Arc = 0x1 , Bevel = 0x2 , unused2 = 0x4 , unused3 = 0x8 , unused4 = 0x10 , unused5 = 0x20 } |
Public Types inherited from ArdourWidgets::ArdourCtrlBase | |
enum | Flags { NoFlags = 0x0 , Detent = 0x1 , ArcToZero = 0x2 , NoHorizontal = 0x4 , NoVertical = 0x8 , Reverse = 0x10 } |
Public Member Functions | |
ArdourKnob (Element e=default_elements, Flags flags=NoFlags) | |
Element | elements () const |
void | set_elements (Element) |
void | add_elements (Element) |
void | gen_faceplate (Pango::FontDescription const &, std::string const &, std::string const &, std::string const &) |
Public Member Functions inherited from ArdourWidgets::ArdourCtrlBase | |
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::Controllable > | get_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 () |
Static Public Attributes | |
static Element | default_elements |
Protected Member Functions | |
virtual void | render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *) |
void | on_size_request (Gtk::Requisition *req) |
Protected Member Functions inherited from ArdourWidgets::ArdourCtrlBase | |
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 () |
Private Attributes | |
Element | _elements |
int | _extra_height |
Cairo::RefPtr< Cairo::ImageSurface > | _bg |
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 () |
Public Attributes inherited from ArdourWidgets::ArdourCtrlBase | |
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 Attributes inherited from ArdourWidgets::ArdourCtrlBase | |
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 |
Static Protected Attributes inherited from CairoWidget | |
static sigc::slot< void, Gtk::Widget * > | focus_handler |
Definition at line 28 of file ardour_knob.h.
Enumerator | |
---|---|
Arc | |
Bevel | |
unused2 | |
unused3 | |
unused4 | |
unused5 |
Definition at line 31 of file ardour_knob.h.
ArdourWidgets::ArdourKnob::ArdourKnob | ( | Element | e = default_elements , |
Flags | flags = NoFlags |
||
) |
void ArdourWidgets::ArdourKnob::add_elements | ( | Element | ) |
|
inline |
Definition at line 42 of file ardour_knob.h.
void ArdourWidgets::ArdourKnob::gen_faceplate | ( | Pango::FontDescription const & | , |
std::string const & | , | ||
std::string const & | , | ||
std::string const & | |||
) |
|
protected |
|
protectedvirtual |
Implements ArdourWidgets::ArdourCtrlBase.
void ArdourWidgets::ArdourKnob::set_elements | ( | Element | ) |
|
private |
Definition at line 61 of file ardour_knob.h.
|
private |
Definition at line 58 of file ardour_knob.h.
|
private |
Definition at line 59 of file ardour_knob.h.
|
static |
Definition at line 49 of file ardour_knob.h.