![]() |
Ardour
9.0-pre0-844-g046623df59
|
#include <ardour_button.h>
Public Types | |
enum | Element { Edge = 0x001 , Body = 0x002 , Text = 0x004 , Indicator = 0x008 , ColorBox = 0x018 , Menu = 0x020 , MetaMenu = 0x040 , Inactive = 0x080 , VectorIcon = 0x100 , IconRenderCallback = 0x200 } |
enum | Tweaks { Square = 0x01 , TrackHeader = 0x02 , OccasionalText = 0x04 , OccasionalLED = 0x08 , ForceBoxy = 0x10 , ForceFlat = 0x20 , ExpandtoSquare = 0x40 } |
typedef void(* | rendercallback_t) (cairo_t *, int, int, uint32_t, void *) |
Public Member Functions | |
ArdourButton (Element e=default_elements, bool toggle=false) | |
ArdourButton (const std::string &, Element e=default_elements, bool toggle=false) | |
virtual | ~ArdourButton () |
Tweaks | tweaks () const |
void | set_tweaks (Tweaks) |
void | set_active_state (Gtkmm2ext::ActiveState) |
void | set_visual_state (Gtkmm2ext::VisualState) |
void | set_custom_led_color (const uint32_t c, const bool useit=true) |
void | set_act_on_release (bool onRelease) |
Element | elements () const |
void | set_elements (Element) |
void | add_elements (Element) |
void | remove_elements (Element) |
ArdourIcon::Icon | icon () const |
void | set_icon (ArdourIcon::Icon) |
void | set_icon (rendercallback_t, void *) |
void | set_corner_radius (float) |
void | set_text (const std::string &, bool markup=false) |
const std::string & | get_text () const |
bool | get_markup () const |
void | set_angle (const double) |
void | set_alignment (const float, const float) |
void | get_alignment (float &xa, float &ya) |
void | set_led_left (bool yn) |
void | set_distinct_led_click (bool yn) |
void | set_layout_ellipsize_width (int w) |
void | set_layout_font (const Pango::FontDescription &) |
void | set_text_ellipsize (Pango::EllipsizeMode) |
void | set_width_padding (float) |
void | set_sizing_text (std::string const &) |
void | add_sizing_text (std::string const &) |
void | set_sizing_texts (std::vector< std::string > const &) |
bool | is_led_click (GdkEventButton *) |
std::shared_ptr< PBD::Controllable > | get_controllable () |
void | set_controllable (std::shared_ptr< PBD::Controllable > c) |
void | watch () |
void | set_related_action (Glib::RefPtr< Gtk::Action >) |
bool | on_button_press_event (GdkEventButton *) |
bool | on_button_release_event (GdkEventButton *) |
bool | on_touch_begin_event (GdkEventTouch *) |
bool | on_touch_end_event (GdkEventTouch *) |
void | set_image (const Glib::RefPtr< Gdk::Pixbuf > &) |
void | set_fixed_colors (const uint32_t active_color, const uint32_t inactive_color) |
void | set_active_color (const uint32_t active_color) |
void | set_inactive_color (const uint32_t inactive_color) |
void | reset_fixed_colors () |
void | set_fallthrough_to_parent (bool fall) |
unsigned int | char_pixel_width () |
unsigned int | char_pixel_height () |
float | char_avg_pixel_width () |
![]() | |
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 () |
![]() | |
virtual | ~CairoCanvas () |
![]() | |
virtual | ~Activatable () |
Glib::RefPtr< Gtk::Action > | get_related_action () |
Static Public Member Functions | |
static void | set_default_tweaks (Tweaks t) |
![]() | |
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 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 | |
sigc::signal< void, GdkEventButton * > | signal_led_clicked |
sigc::signal< void > | signal_clicked |
![]() | |
sigc::signal< void > | StateChanged |
sigc::signal< bool > | QueueDraw |
sigc::signal< bool > | QueueResize |
Static Public Attributes | |
static Element | default_elements |
static Element | led_default_elements |
static Element | just_led_default_elements |
static Tweaks | default_tweaks |
Protected Member Functions | |
void | render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *) |
void | on_size_request (Gtk::Requisition *req) |
void | on_size_allocate (Gtk::Allocation &) |
void | on_style_changed (const Glib::RefPtr< Gtk::Style > &) |
void | on_name_changed () |
void | on_realize () |
bool | on_enter_notify_event (GdkEventCrossing *) |
bool | on_leave_notify_event (GdkEventCrossing *) |
bool | on_grab_broken_event (GdkEventGrabBroken *) |
bool | on_focus_in_event (GdkEventFocus *) |
bool | on_focus_out_event (GdkEventFocus *) |
bool | on_key_release_event (GdkEventKey *) |
bool | on_key_press_event (GdkEventKey *) |
void | controllable_changed () |
void | set_text_internal () |
void | recalc_char_pixel_geometry () |
void | setup_led_rect () |
void | set_colors () |
void | color_handler () |
void | build_patterns () |
void | ensure_layout () |
void | action_toggled () |
void | action_sensitivity_changed () |
void | action_visibility_changed () |
void | action_tooltip_changed () |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
static sigc::slot< void, Gtk::Widget * > | focus_handler |
Definition at line 38 of file ardour_button.h.
typedef void(* ArdourWidgets::ArdourButton::rendercallback_t) (cairo_t *, int, int, uint32_t, void *) |
Definition at line 54 of file ardour_button.h.
Enumerator | |
---|---|
Edge | |
Body | |
Text | |
Indicator | |
ColorBox | |
Menu | |
MetaMenu | |
Inactive | |
VectorIcon | |
IconRenderCallback |
Definition at line 41 of file ardour_button.h.
Enumerator | |
---|---|
Square | |
TrackHeader | |
OccasionalText | |
OccasionalLED | |
ForceBoxy | |
ForceFlat | |
ExpandtoSquare |
Definition at line 64 of file ardour_button.h.
ArdourWidgets::ArdourButton::ArdourButton | ( | Element | e = default_elements , |
bool | toggle = false |
||
) |
ArdourWidgets::ArdourButton::ArdourButton | ( | const std::string & | , |
Element | e = default_elements , |
||
bool | toggle = false |
||
) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
void ArdourWidgets::ArdourButton::add_elements | ( | Element | ) |
void ArdourWidgets::ArdourButton::add_sizing_text | ( | std::string const & | ) |
|
protected |
|
inline |
Definition at line 146 of file ardour_button.h.
|
inline |
Definition at line 145 of file ardour_button.h.
|
inline |
Definition at line 144 of file ardour_button.h.
|
protected |
|
protected |
|
inline |
Definition at line 87 of file ardour_button.h.
|
protected |
|
inline |
Definition at line 103 of file ardour_button.h.
|
inline |
Definition at line 124 of file ardour_button.h.
|
inline |
Definition at line 100 of file ardour_button.h.
|
inline |
Definition at line 99 of file ardour_button.h.
|
inline |
Definition at line 92 of file ardour_button.h.
bool ArdourWidgets::ArdourButton::is_led_click | ( | GdkEventButton * | ) |
bool ArdourWidgets::ArdourButton::on_button_press_event | ( | GdkEventButton * | ) |
bool ArdourWidgets::ArdourButton::on_button_release_event | ( | GdkEventButton * | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented from CairoWidget.
|
protected |
|
protected |
|
protected |
|
protected |
bool ArdourWidgets::ArdourButton::on_touch_begin_event | ( | GdkEventTouch * | ) |
bool ArdourWidgets::ArdourButton::on_touch_end_event | ( | GdkEventTouch * | ) |
|
protected |
void ArdourWidgets::ArdourButton::remove_elements | ( | Element | ) |
|
protectedvirtual |
Implements Gtkmm2ext::CairoCanvas.
Reimplemented in ArdourWidgets::MetaButton.
void ArdourWidgets::ArdourButton::reset_fixed_colors | ( | ) |
|
inline |
Definition at line 85 of file ardour_button.h.
void ArdourWidgets::ArdourButton::set_active_color | ( | const uint32_t | active_color | ) |
|
virtual |
Reimplemented from CairoWidget.
void ArdourWidgets::ArdourButton::set_alignment | ( | const float | , |
const float | |||
) |
void ArdourWidgets::ArdourButton::set_angle | ( | const double | ) |
|
protected |
void ArdourWidgets::ArdourButton::set_controllable | ( | std::shared_ptr< PBD::Controllable > | c | ) |
void ArdourWidgets::ArdourButton::set_corner_radius | ( | float | ) |
void ArdourWidgets::ArdourButton::set_custom_led_color | ( | const uint32_t | c, |
const bool | useit = true |
||
) |
|
inlinestatic |
Definition at line 75 of file ardour_button.h.
void ArdourWidgets::ArdourButton::set_distinct_led_click | ( | bool | yn | ) |
void ArdourWidgets::ArdourButton::set_elements | ( | Element | ) |
|
inline |
Definition at line 142 of file ardour_button.h.
void ArdourWidgets::ArdourButton::set_fixed_colors | ( | const uint32_t | active_color, |
const uint32_t | inactive_color | ||
) |
void ArdourWidgets::ArdourButton::set_icon | ( | ArdourIcon::Icon | ) |
void ArdourWidgets::ArdourButton::set_icon | ( | rendercallback_t | , |
void * | |||
) |
void ArdourWidgets::ArdourButton::set_image | ( | const Glib::RefPtr< Gdk::Pixbuf > & | ) |
void ArdourWidgets::ArdourButton::set_inactive_color | ( | const uint32_t | inactive_color | ) |
void ArdourWidgets::ArdourButton::set_layout_ellipsize_width | ( | int | w | ) |
void ArdourWidgets::ArdourButton::set_layout_font | ( | const Pango::FontDescription & | ) |
void ArdourWidgets::ArdourButton::set_led_left | ( | bool | yn | ) |
|
virtual |
Reimplemented from Gtkmm2ext::Activatable.
void ArdourWidgets::ArdourButton::set_sizing_text | ( | std::string const & | ) |
void ArdourWidgets::ArdourButton::set_sizing_texts | ( | std::vector< std::string > const & | ) |
void ArdourWidgets::ArdourButton::set_text | ( | const std::string & | , |
bool | markup = false |
||
) |
void ArdourWidgets::ArdourButton::set_text_ellipsize | ( | Pango::EllipsizeMode | ) |
|
protected |
void ArdourWidgets::ArdourButton::set_tweaks | ( | Tweaks | ) |
|
virtual |
Reimplemented from CairoWidget.
void ArdourWidgets::ArdourButton::set_width_padding | ( | float | ) |
|
protected |
|
inline |
Definition at line 77 of file ardour_button.h.
void ArdourWidgets::ArdourButton::watch | ( | ) |
|
protected |
Definition at line 217 of file ardour_button.h.
|
protected |
Definition at line 194 of file ardour_button.h.
|
protected |
Definition at line 218 of file ardour_button.h.
|
protected |
Definition at line 184 of file ardour_button.h.
|
protected |
Definition at line 183 of file ardour_button.h.
|
protected |
Definition at line 182 of file ardour_button.h.
|
protected |
Definition at line 192 of file ardour_button.h.
|
protected |
Definition at line 191 of file ardour_button.h.
|
protected |
Definition at line 186 of file ardour_button.h.
|
protected |
Definition at line 190 of file ardour_button.h.
|
protected |
Definition at line 220 of file ardour_button.h.
|
protected |
Definition at line 172 of file ardour_button.h.
|
protected |
Definition at line 226 of file ardour_button.h.
|
protected |
Definition at line 224 of file ardour_button.h.
|
protected |
Definition at line 223 of file ardour_button.h.
|
protected |
Definition at line 222 of file ardour_button.h.
|
protected |
Definition at line 221 of file ardour_button.h.
|
protected |
Definition at line 173 of file ardour_button.h.
|
protected |
Definition at line 174 of file ardour_button.h.
|
protected |
Definition at line 175 of file ardour_button.h.
|
protected |
Definition at line 167 of file ardour_button.h.
|
protected |
Definition at line 225 of file ardour_button.h.
|
protected |
Definition at line 219 of file ardour_button.h.
|
protected |
Definition at line 215 of file ardour_button.h.
|
protected |
Definition at line 171 of file ardour_button.h.
|
protected |
Definition at line 228 of file ardour_button.h.
|
protected |
Definition at line 168 of file ardour_button.h.
|
protected |
Definition at line 170 of file ardour_button.h.
|
protected |
Definition at line 210 of file ardour_button.h.
|
protected |
Definition at line 169 of file ardour_button.h.
|
protected |
Definition at line 189 of file ardour_button.h.
|
protected |
Definition at line 188 of file ardour_button.h.
|
protected |
Definition at line 176 of file ardour_button.h.
|
protected |
Definition at line 227 of file ardour_button.h.
|
protected |
Definition at line 185 of file ardour_button.h.
|
protected |
Definition at line 195 of file ardour_button.h.
|
protected |
Definition at line 195 of file ardour_button.h.
|
protected |
Definition at line 177 of file ardour_button.h.
|
protected |
Definition at line 213 of file ardour_button.h.
|
protected |
Definition at line 212 of file ardour_button.h.
|
static |
Definition at line 56 of file ardour_button.h.
|
static |
Definition at line 74 of file ardour_button.h.
|
protected |
Definition at line 198 of file ardour_button.h.
|
protected |
Definition at line 197 of file ardour_button.h.
|
static |
Definition at line 58 of file ardour_button.h.
|
protected |
Definition at line 203 of file ardour_button.h.
|
protected |
Definition at line 205 of file ardour_button.h.
|
static |
Definition at line 57 of file ardour_button.h.
|
protected |
Definition at line 204 of file ardour_button.h.
|
protected |
Definition at line 214 of file ardour_button.h.
|
protected |
Definition at line 208 of file ardour_button.h.
sigc::signal<void> ArdourWidgets::ArdourButton::signal_clicked |
Definition at line 122 of file ardour_button.h.
sigc::signal<void, GdkEventButton*> ArdourWidgets::ArdourButton::signal_led_clicked |
Definition at line 121 of file ardour_button.h.
|
protected |
Definition at line 200 of file ardour_button.h.
|
protected |
Definition at line 201 of file ardour_button.h.
|
protected |
Definition at line 206 of file ardour_button.h.
|
protected |
Definition at line 164 of file ardour_button.h.