Ardour  9.0-pre0-350-gf17a656217
ArdourWidgets::ArdourButton Class Reference

#include <ardour_button.h>

Inheritance diagram for ArdourWidgets::ArdourButton:
[legend]

Public Types

enum  Element {
  Edge = 0x1 , Body = 0x2 , Text = 0x4 , Indicator = 0x8 ,
  ColorBox = 0x18 , Menu = 0x20 , Inactive = 0x40 , VectorIcon = 0x80 ,
  IconRenderCallback = 0x100
}
 
enum  Tweaks {
  Square = 0x1 , TrackHeader = 0x2 , OccasionalText = 0x4 , OccasionalLED = 0x8 ,
  ForceBoxy = 0x10 , ForceFlat = 0x20
}
 
typedef void(* rendercallback_t) (cairo_t *, int, int, uint32_t, void *)
 
- Public Types inherited from Gtk::Container
typedef sigc::slot< void, Widget & > ForeachSlot
 

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)
 
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 set_sizing_texts (std::vector< std::string > const &)
 
std::shared_ptr< PBD::Controllableget_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 *)
 This is a default handler for the signal signal_button_press_event(). More...
 
bool on_button_release_event (GdkEventButton *)
 This is a default handler for the signal signal_button_release_event(). More...
 
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 ()
 
- 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 Gtk::EventBox
virtual ~EventBox ()
 
GtkEventBoxgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkEventBoxgobj () const
 Provides access to the underlying C GtkObject. More...
 
 EventBox ()
 
bool get_visible_window () const
 
void set_visible_window (bool visible_window=true)
 
bool get_above_child () const
 
void set_above_child (bool above_child=true)
 
Glib::PropertyProxy< bool > property_visible_window ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible_window () const
 
Glib::PropertyProxy< bool > property_above_child ()
 
Glib::PropertyProxy_ReadOnly< bool > property_above_child () const
 
- Public Member Functions inherited from Gtk::Bin
virtual ~Bin ()
 
GtkBingobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkBingobj () const
 Provides access to the underlying C GtkObject. More...
 
Gtk::Widgetget_child ()
 
const Gtk::Widgetget_child () const
 
void remove ()
 
void add_label (const Glib::ustring &label, bool mnemonic=false, double x_align=0.5, double y_align=0.5)
 
void add_label (const Glib::ustring &label, bool mnemonic, AlignmentEnum x_align, AlignmentEnum y_align=ALIGN_CENTER)
 
void add_pixmap (const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask)
 
void add_pixlabel (const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask, const Glib::ustring &label, double x_align=0.5, double y_align=0.5)
 
void add_pixlabel (const Glib::ustring &pixfile, const Glib::ustring &label, double x_align=0.5, double y_align=0.5)
 
- Public Member Functions inherited from Gtk::Container
virtual ~Container ()
 
GtkContainergobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkContainergobj () const
 Provides access to the underlying C GtkObject. More...
 
void set_border_width (guint border_width)
 
guint get_border_width () const
 
virtual void add (Widget &widget)
 
void remove (Widget &widget)
 
void set_resize_mode (ResizeMode resize_mode)
 
ResizeMode get_resize_mode () const
 
void check_resize ()
 
void foreach (const ForeachSlot &slot)
 
Glib::ListHandle< Widget * > get_children ()
 (internal) Operate on contained items (see foreach()) More...
 
Glib::ListHandle< const Widget * > get_children () const
 
void propagate_expose (Widget &child, GdkEventExpose *event)
 
void set_focus_chain (const Glib::ListHandle< Widget * > &focusable_widgets)
 
bool has_focus_chain () const
 
Glib::ListHandle< Widget * > get_focus_chain ()
 
Glib::ListHandle< const Widget * > get_focus_chain () const
 
void unset_focus_chain ()
 
void set_reallocate_redraws (bool needs_redraws=true)
 
void set_focus_child (Widget &widget)
 
void set_focus_vadjustment (Adjustment &adjustment)
 
Adjustmentget_focus_vadjustment ()
 
const Adjustmentget_focus_vadjustment () const
 
void set_focus_hadjustment (Adjustment &adjustment)
 
Adjustmentget_focus_hadjustment ()
 
const Adjustmentget_focus_hadjustment () const
 
void resize_children ()
 
GType child_type () const
 
Glib::SignalProxy1< void, Widget * > signal_add ()
 
Glib::SignalProxy1< void, Widget * > signal_remove ()
 
Glib::SignalProxy0< void > signal_check_resize ()
 
Glib::SignalProxy1< void, Widget * > signal_set_focus_child ()
 
void show_all_children (bool recursive=true)
 
- Public Member Functions inherited from Gtk::Widget
virtual ~Widget ()
 
GtkWidgetgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkWidgetgobj () const
 Provides access to the underlying C GtkObject. More...
 
bool set_scroll_adjustments (Adjustment &hadjustment, Adjustment &vadjustment)
 
void show ()
 
void show_now ()
 
void hide ()
 
void show_all ()
 
void hide_all ()
 
void queue_draw ()
 
void queue_draw_area (int x, int y, int width, int height)
 
void queue_resize ()
 
Requisition size_request () const
 
void size_request (const Requisition &requisition)
 
void size_allocate (const Allocation &allocation)
 
void add_accelerator (const Glib::ustring &accel_signal, const Glib::RefPtr< AccelGroup > &accel_group, guint accel_key, Gdk::ModifierType accel_mods, AccelFlags accel_flags)
 
bool remove_accelerator (const Glib::RefPtr< AccelGroup > &accel_group, guint accel_key, Gdk::ModifierType accel_mods)
 
void set_accel_path (const Glib::ustring &accel_path, const Glib::RefPtr< AccelGroup > &accel_group)
 
bool mnemonic_activate (bool group_cycling)
 
bool event (GdkEvent *event)
 
int send_expose (GdkEvent *event)
 
bool send_focus_change (GdkEvent *event)
 
bool activate ()
 
void reparent (Widget &new_parent)
 
bool intersect (const Gdk::Rectangle &area) const
 
bool intersect (const Gdk::Rectangle &area, Gdk::Rectangle &intersection) const
 
Gdk::Region region_intersect (const Gdk::Region &region) const
 
void freeze_child_notify ()
 
void child_notify (const Glib::ustring &child_property)
 
void thaw_child_notify ()
 
void set_can_focus (bool can_focus=true)
 
bool get_can_focus () const
 
bool can_focus () const
 
bool has_focus () const
 
bool is_focus () const
 
void grab_focus ()
 
void set_can_default (bool can_default=true)
 
bool get_can_default () const
 
bool can_default () const
 
bool has_default () const
 
void grab_default ()
 
void set_receives_default (bool receives_default=true)
 
bool get_receives_default () const
 
bool has_grab () const
 
void add_modal_grab ()
 
void remove_modal_grab ()
 
void set_name (const Glib::ustring &name)
 
void unset_name ()
 
Glib::ustring get_name () const
 
void set_state (StateType state)
 
StateType get_state () const
 
void set_sensitive (bool sensitive=true)
 
bool get_sensitive () const
 
bool is_sensitive () const
 
void set_visible (bool visible=true)
 
bool get_visible () const
 
void set_has_window (bool has_window=true)
 
bool get_has_window () const
 
bool get_is_toplevel () const
 
bool get_is_drawable () const
 
bool get_realized () const
 
bool get_mapped () const
 
void set_app_paintable (bool app_paintable=true)
 
bool get_app_paintable () const
 
void set_double_buffered (bool double_buffered=true)
 
bool get_double_buffered () const
 
void set_redraw_on_allocate (bool redraw_on_allocate=true)
 
void set_child_visible (bool is_visible=true)
 
bool get_child_visible () const
 
void set_window (const Glib::RefPtr< Gdk::Window > &window)
 
Glib::RefPtr< Gdk::Windowget_window ()
 
Glib::RefPtr< const Gdk::Windowget_window () const
 
Allocation get_allocation () const
 
void set_allocation (const Allocation &allocation)
 
Containerget_parent ()
 
const Containerget_parent () const
 
Glib::RefPtr< Gdk::Windowget_parent_window ()
 
Glib::RefPtr< const Gdk::Windowget_parent_window () const
 
void set_parent_window (const Glib::RefPtr< const Gdk::Window > &parent_window)
 
bool child_focus (DirectionType direction)
 
bool keynav_failed (DirectionType direction)
 
void error_bell ()
 
void set_size_request (int width=-1, int height=-1)
 
void get_size_request (int &width, int &height) const
 
void set_events (Gdk::EventMask events)
 
void add_events (Gdk::EventMask events)
 
void set_extension_events (Gdk::ExtensionMode mode)
 
Gdk::ExtensionMode get_extension_events () const
 
Containerget_toplevel ()
 
const Containerget_toplevel () const
 
Widgetget_ancestor (GType widget_type)
 
const Widgetget_ancestor (GType widget_type) const
 
Glib::RefPtr< Gdk::Colormapget_colormap ()
 
Glib::RefPtr< Gdk::Visualget_visual ()
 
Glib::RefPtr< Gdk::Screenget_screen ()
 
Glib::RefPtr< const Gdk::Screenget_screen () const
 
bool has_screen () const
 
Glib::RefPtr< Gdk::Displayget_display ()
 
Glib::RefPtr< const Gdk::Displayget_display () const
 
Glib::RefPtr< Gdk::Windowget_root_window ()
 
Glib::RefPtr< const Gdk::Windowget_root_window () const
 
Glib::RefPtr< Settingsget_settings ()
 
Glib::RefPtr< Clipboardget_clipboard (const Glib::ustring &selection)
 
Glib::RefPtr< const Clipboardget_clipboard (const Glib::ustring &selection) const
 
Glib::RefPtr< Gdk::Pixmapget_snapshot (Gdk::Rectangle &clip_rect) const
 
Glib::RefPtr< Gdk::Pixmapget_snapshot () const
 
void set_colormap (const Glib::RefPtr< const Gdk::Colormap > &colormap)
 
Gdk::EventMask get_events () const
 
void get_pointer (int &x, int &y) const
 
bool is_ancestor (Widget &ancestor) const
 
bool translate_coordinates (Widget &dest_widget, int src_x, int src_y, int &dest_x, int &dest_y)
 
bool has_rc_style () const
 
void set_style (const Glib::RefPtr< Style > &style)
 
void unset_style ()
 
void ensure_style ()
 
Glib::RefPtr< Styleget_style ()
 
Glib::RefPtr< const Styleget_style () const
 
void modify_style (const Glib::RefPtr< RcStyle > &style)
 
Glib::RefPtr< RcStyleget_modifier_style ()
 
Glib::RefPtr< const RcStyleget_modifier_style () const
 
void modify_fg (StateType state, const Gdk::Color &color)
 
void modify_bg (StateType state, const Gdk::Color &color)
 
void modify_bg_pixmap (StateType state, const Glib::ustring &pixmap_name)
 
void modify_text (StateType state, const Gdk::Color &color)
 
void modify_base (StateType state, const Gdk::Color &color)
 
void modify_cursor (const Gdk::Color &primary, const Gdk::Color &secondary)
 
void unset_cursor ()
 See modify_cursor(). More...
 
void modify_font (const Pango::FontDescription &font_desc)
 
void unset_fg (StateType state)
 
void unset_bg (StateType state)
 
void unset_text (StateType state)
 
void unset_base (StateType state)
 
void unset_font ()
 
template<class PropertyType >
void get_style_property (const Glib::ustring &the_property_name, PropertyType &value) const
 
Glib::RefPtr< Pango::Context > create_pango_context ()
 
Glib::RefPtr< Pango::Context > get_pango_context ()
 
Glib::RefPtr< Pango::Layout > create_pango_layout (const Glib::ustring &text)
 
Glib::RefPtr< Gdk::Pixbufrender_icon (const StockID &stock_id, IconSize size, const Glib::ustring &detail=Glib::ustring())
 
void set_composite_name (const Glib::ustring &name)
 
void unset_composite_name ()
 
Glib::ustring get_composite_name () const
 
void reset_rc_styles ()
 
void set_direction (TextDirection dir)
 
TextDirection get_direction ()
 
TextDirection get_direction () const
 
void shape_combine_mask (const Glib::RefPtr< const Gdk::Bitmap > &shape_mask, int offset_x, int offset_y)
 
void unset_shape_combine_mask ()
 
void input_shape_combine_mask (const Glib::RefPtr< const Gdk::Bitmap > &shape_mask, int offset_x, int offset_y)
 
void unset_input_shape_combine_mask ()
 
void reset_shapes ()
 
void path (Glib::ustring &path, Glib::ustring &path_reversed)
 Compute a widget's path of the form "GtkWindow.MyLabel". More...
 
void class_path (Glib::ustring &path, Glib::ustring &path_reversed)
 
Glib::ListHandle< Widget * > list_mnemonic_labels ()
 
Glib::ListHandle< const Widget * > list_mnemonic_labels () const
 
void add_mnemonic_label (Widget &label)
 
void remove_mnemonic_label (Widget &label)
 
void drag_get_data (const Glib::RefPtr< Gdk::DragContext > &context, Glib::ustring &target, guint32 time)
 
void drag_get_data (const Glib::RefPtr< Gdk::DragContext > &context, const Glib::ustring &target, guint32 time)
 
void drag_highlight ()
 
void drag_unhighlight ()
 
void drag_dest_set (DestDefaults flags=DestDefaults(0), Gdk::DragAction actions=Gdk::DragAction(0))
 
void drag_dest_set (const ArrayHandle_TargetEntry &targets, DestDefaults flags=DEST_DEFAULT_ALL, Gdk::DragAction actions=Gdk::ACTION_COPY)
 
void drag_dest_set_proxy (const Glib::RefPtr< Gdk::Window > &proxy_window, Gdk::DragProtocol protocol, bool use_coordinates)
 
void drag_dest_unset ()
 
Glib::ustring drag_dest_find_target (const Glib::RefPtr< Gdk::DragContext > &context, const Glib::RefPtr< TargetList > &target_list) const
 
Glib::ustring drag_dest_find_target (const Glib::RefPtr< Gdk::DragContext > &context) const
 
Glib::RefPtr< TargetListdrag_dest_get_target_list ()
 
Glib::RefPtr< const TargetListdrag_dest_get_target_list () const
 
void drag_dest_set_target_list (const Glib::RefPtr< TargetList > &target_list)
 
void drag_dest_add_text_targets ()
 
void drag_dest_add_image_targets ()
 
void drag_dest_add_uri_targets ()
 
void drag_source_set (const ArrayHandle_TargetEntry &targets, Gdk::ModifierType start_button_mask=Gdk::MODIFIER_MASK, Gdk::DragAction actions=Gdk::ACTION_COPY)
 
void drag_source_unset ()
 
void drag_source_set_icon (const Glib::RefPtr< Gdk::Colormap > &colormap, const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask)
 
void drag_source_set_icon (const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
 
void drag_source_set_icon (const StockID &stock_id)
 
void drag_source_set_icon (const Glib::ustring &icon_name)
 
void drag_source_add_text_targets ()
 
void drag_source_add_uri_targets ()
 
void drag_source_add_image_targets ()
 
Glib::RefPtr< Gdk::DragContextdrag_begin (const Glib::RefPtr< TargetList > &targets, Gdk::DragAction actions, int button, GdkEvent *event)
 
bool drag_check_threshold (int start_x, int start_y, int current_x, int current_y)
 
void drag_set_as_icon (const Glib::RefPtr< Gdk::DragContext > &context, int hot_x, int hot_y)
 
void queue_resize_no_redraw ()
 
bool get_no_show_all () const
 
void set_no_show_all (bool no_show_all=true)
 
void set_parent (Widget &parent)
 
void unparent ()
 
void map ()
 
void unmap ()
 
void draw_insertion_cursor (Glib::RefPtr< Gdk::Drawable > drawable, const Gdk::Rectangle &area, const Gdk::Rectangle &location, bool is_primary, TextDirection direction, bool draw_arrow=true)
 
void set_tooltip_window (Window &window)
 
Windowget_tooltip_window ()
 
void trigger_tooltip_query ()
 
void set_tooltip_text (const Glib::ustring &text)
 
Glib::ustring get_tooltip_text () const
 
void set_tooltip_markup (const Glib::ustring &markup)
 
Glib::ustring get_tooltip_markup () const
 
void set_has_tooltip (bool has_tooltip=TRUE)
 
bool get_has_tooltip () const
 
bool has_no_window () const
 
bool is_realized () const
 
bool is_mapped () const
 
bool is_toplevel () const
 
bool is_drawable () const
 
bool is_visible () const
 
bool sensitive () const
 
bool app_paintable () const
 
bool receives_default () const
 
bool double_buffered () const
 
bool parent_sensitive () const
 
bool rc_style () const
 
bool is_composite_child () const
 
WidgetFlags get_flags () const
 
void set_flags (WidgetFlags flags)
 
void unset_flags (WidgetFlags flags)
 
Gtk::StateType get_saved_state () const
 
int get_width () const
 
int get_height () const
 
bool is_composited () const
 
Glib::RefPtr< Actionget_action ()
 
Glib::RefPtr< const Actionget_action () const
 
Requisition get_requisition () const
 
Glib::SignalProxy0< void > signal_show ()
 
Glib::SignalProxy0< void > signal_hide ()
 
Glib::SignalProxy0< void > signal_map ()
 Emitted on mapping of a widget to the screen. More...
 
Glib::SignalProxy0< void > signal_unmap ()
 
Glib::SignalProxy0< void > signal_realize ()
 Emitted on realization of a widget. More...
 
Glib::SignalProxy0< void > signal_unrealize ()
 
Glib::SignalProxy1< void, Requisition * > signal_size_request ()
 
Glib::SignalProxy1< void, Allocation & > signal_size_allocate ()
 
Glib::SignalProxy1< void, Gtk::StateTypesignal_state_changed ()
 
Glib::SignalProxy1< void, Widget * > signal_parent_changed ()
 Informs objects that their parent changed. More...
 
Glib::SignalProxy1< void, Widget * > signal_hierarchy_changed ()
 
Glib::SignalProxy1< void, const Glib::RefPtr< Gtk::Style > & > signal_style_changed ()
 
Glib::SignalProxy1< void, TextDirectionsignal_direction_changed ()
 
Glib::SignalProxy1< void, bool > signal_grab_notify ()
 
Glib::SignalProxy1< void, GParamSpec * > signal_child_notify ()
 
Glib::SignalProxy1< bool, bool > signal_mnemonic_activate ()
 
Glib::SignalProxy0< void > signal_grab_focus ()
 
Glib::SignalProxy1< bool, DirectionTypesignal_focus ()
 
Glib::SignalProxy1< bool, GdkEvent * > signal_event ()
 
Glib::SignalProxy1< void, GdkEvent * > signal_event_after ()
 
Glib::SignalProxy1< bool, GdkEventButton * > signal_button_press_event ()
 
Glib::SignalProxy1< bool, GdkEventButton * > signal_button_release_event ()
 
Glib::SignalProxy1< bool, GdkEventScroll * > signal_scroll_event ()
 
Glib::SignalProxy1< bool, GdkEventMotion * > signal_motion_notify_event ()
 
Glib::SignalProxy1< bool, GdkEventAny * > signal_delete_event ()
 
Glib::SignalProxy1< bool, GdkEventExpose * > signal_expose_event ()
 Event triggered by window requiring a refresh. More...
 
Glib::SignalProxy1< bool, GdkEventKey * > signal_key_press_event ()
 
Glib::SignalProxy1< bool, GdkEventKey * > signal_key_release_event ()
 
Glib::SignalProxy1< bool, GdkEventCrossing * > signal_enter_notify_event ()
 
Glib::SignalProxy1< bool, GdkEventCrossing * > signal_leave_notify_event ()
 
Glib::SignalProxy1< bool, GdkEventConfigure * > signal_configure_event ()
 
Glib::SignalProxy1< bool, GdkEventFocus * > signal_focus_in_event ()
 
Glib::SignalProxy1< bool, GdkEventFocus * > signal_focus_out_event ()
 
Glib::SignalProxy1< bool, GdkEventAny * > signal_map_event ()
 
Glib::SignalProxy1< bool, GdkEventAny * > signal_unmap_event ()
 
Glib::SignalProxy1< bool, GdkEventProperty * > signal_property_notify_event ()
 
Glib::SignalProxy1< bool, GdkEventSelection * > signal_selection_clear_event ()
 
Glib::SignalProxy1< bool, GdkEventSelection * > signal_selection_request_event ()
 
Glib::SignalProxy1< bool, GdkEventSelection * > signal_selection_notify_event ()
 
Glib::SignalProxy1< bool, GdkEventProximity * > signal_proximity_in_event ()
 
Glib::SignalProxy1< bool, GdkEventProximity * > signal_proximity_out_event ()
 
Glib::SignalProxy1< bool, GdkEventVisibility * > signal_visibility_notify_event ()
 
Glib::SignalProxy1< bool, GdkEventClient * > signal_client_event ()
 
Glib::SignalProxy1< bool, GdkEventAny * > signal_no_expose_event ()
 
Glib::SignalProxy1< bool, GdkEventWindowState * > signal_window_state_event ()
 
Glib::SignalProxy3< void, SelectionData &, guint, guint > signal_selection_get ()
 
Glib::SignalProxy2< void, const SelectionData &, guint > signal_selection_received ()
 
Glib::SignalProxy1< void, const Glib::RefPtr< Gdk::DragContext > & > signal_drag_begin ()
 
Glib::SignalProxy1< void, const Glib::RefPtr< Gdk::DragContext > & > signal_drag_end ()
 
Glib::SignalProxy4< void, const Glib::RefPtr< Gdk::DragContext > &, SelectionData &, guint, guint > signal_drag_data_get ()
 
Glib::SignalProxy1< void, const Glib::RefPtr< Gdk::DragContext > & > signal_drag_data_delete ()
 
Glib::SignalProxy2< bool, const Glib::RefPtr< Gdk::DragContext > &, DragResultsignal_drag_failed ()
 
Glib::SignalProxy2< void, const Glib::RefPtr< Gdk::DragContext > &, guint > signal_drag_leave ()
 
Glib::SignalProxy4< bool, const Glib::RefPtr< Gdk::DragContext > &, int, int, guint > signal_drag_motion ()
 
Glib::SignalProxy4< bool, const Glib::RefPtr< Gdk::DragContext > &, int, int, guint > signal_drag_drop ()
 
Glib::SignalProxy6< void, const Glib::RefPtr< Gdk::DragContext > &, int, int, const SelectionData &, guint, guint > signal_drag_data_received ()
 
Glib::SignalProxy1< void, const Glib::RefPtr< Gdk::Screen > & > signal_screen_changed ()
 
Glib::SignalProxy0< void > signal_composited_changed ()
 
Glib::SignalProxy0< bool > signal_popup_menu ()
 
Glib::SignalProxy4< bool, int, int, bool, const Glib::RefPtr< Tooltip > & > signal_query_tooltip ()
 
Glib::SignalProxy1< bool, GdkEventGrabBroken * > signal_grab_broken_event ()
 
Glib::SignalProxy1< bool, GdkEventExpose * > signal_damage_event ()
 
Glib::PropertyProxy< Glib::ustring > property_name ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name () const
 
Glib::PropertyProxy< Container * > property_parent ()
 
Glib::PropertyProxy_ReadOnly< Container * > property_parent () const
 
Glib::PropertyProxy< int > property_width_request ()
 
Glib::PropertyProxy_ReadOnly< int > property_width_request () const
 
Glib::PropertyProxy< int > property_height_request ()
 
Glib::PropertyProxy_ReadOnly< int > property_height_request () const
 
Glib::PropertyProxy< bool > property_visible ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible () const
 
Glib::PropertyProxy< bool > property_sensitive ()
 
Glib::PropertyProxy_ReadOnly< bool > property_sensitive () const
 
Glib::PropertyProxy< bool > property_app_paintable ()
 
Glib::PropertyProxy_ReadOnly< bool > property_app_paintable () const
 
Glib::PropertyProxy< bool > property_can_focus ()
 
Glib::PropertyProxy_ReadOnly< bool > property_can_focus () const
 
Glib::PropertyProxy< bool > property_has_focus ()
 
Glib::PropertyProxy_ReadOnly< bool > property_has_focus () const
 
Glib::PropertyProxy< bool > property_is_focus ()
 
Glib::PropertyProxy_ReadOnly< bool > property_is_focus () const
 
Glib::PropertyProxy< bool > property_can_default ()
 
Glib::PropertyProxy_ReadOnly< bool > property_can_default () const
 
Glib::PropertyProxy< bool > property_has_default ()
 
Glib::PropertyProxy_ReadOnly< bool > property_has_default () const
 
Glib::PropertyProxy< bool > property_receives_default ()
 
Glib::PropertyProxy_ReadOnly< bool > property_receives_default () const
 
Glib::PropertyProxy_ReadOnly< bool > property_composite_child () const
 
Glib::PropertyProxy< Glib::RefPtr< Style > > property_style ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Style > > property_style () const
 
Glib::PropertyProxy< Gdk::EventMaskproperty_events ()
 
Glib::PropertyProxy_ReadOnly< Gdk::EventMaskproperty_events () const
 
Glib::PropertyProxy< Gdk::ExtensionModeproperty_extension_events ()
 
Glib::PropertyProxy_ReadOnly< Gdk::ExtensionModeproperty_extension_events () const
 
Glib::PropertyProxy< bool > property_has_tooltip ()
 
Glib::PropertyProxy_ReadOnly< bool > property_has_tooltip () const
 
Glib::PropertyProxy< Glib::ustring > property_tooltip_markup ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tooltip_markup () const
 
Glib::PropertyProxy< Glib::ustring > property_tooltip_text ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_tooltip_text () const
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Window > > property_window () const
 
Glib::PropertyProxy< bool > property_no_show_all ()
 
Glib::PropertyProxy_ReadOnly< bool > property_no_show_all () const
 
Glib::PropertyProxy< bool > property_double_buffered ()
 
Glib::PropertyProxy_ReadOnly< bool > property_double_buffered () const
 
- Public Member Functions inherited from Gtk::Object
virtual ~Object ()
 
GtkObjectgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkObjectgobj () const
 Provides access to the underlying C GtkObject. More...
 
Glib::PropertyProxy< void * > property_user_data ()
 
Glib::PropertyProxy_ReadOnly< void * > property_user_data () const
 
- Public Member Functions inherited from Gtkmm2ext::CairoCanvas
virtual ~CairoCanvas ()
 
- Public Member Functions inherited from Gtkmm2ext::Activatable
virtual ~Activatable ()
 
Glib::RefPtr< Gtk::Actionget_related_action ()
 

Static Public Member Functions

static void set_default_tweaks (Tweaks t)
 
- 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 Gtk::Widget
static Widgetget_current_modal_grab ()
 
static void push_colormap (const Glib::RefPtr< const Gdk::Colormap > &cmap)
 
static void pop_colormap ()
 
static void push_composite_child ()
 
static void pop_composite_child ()
 
static void set_default_colormap (const Glib::RefPtr< const Gdk::Colormap > &colormap)
 
static Glib::RefPtr< Styleget_default_style ()
 
static Glib::RefPtr< Gdk::Colormapget_default_colormap ()
 
static Glib::RefPtr< Gdk::Visualget_default_visual ()
 
static void set_default_direction (TextDirection dir)
 
static TextDirection get_default_direction ()
 
static Widgetdrag_get_source_widget (const Glib::RefPtr< Gdk::DragContext > &context)
 
- 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

sigc::signal< void, GdkEventButton * > signal_led_clicked
 
sigc::signal< void > signal_clicked
 
- Public Attributes inherited from CairoWidget
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)
 This is a default handler for the signal signal_size_request(). More...
 
void on_size_allocate (Gtk::Allocation &)
 This is a default handler for the signal signal_size_allocate(). More...
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
void on_name_changed ()
 
void on_realize ()
 This is a default handler for the signal signal_realize(). More...
 
bool on_enter_notify_event (GdkEventCrossing *)
 This is a default handler for the signal signal_enter_notify_event(). More...
 
bool on_leave_notify_event (GdkEventCrossing *)
 This is a default handler for the signal signal_leave_notify_event(). More...
 
bool on_grab_broken_event (GdkEventGrabBroken *)
 
bool on_focus_in_event (GdkEventFocus *)
 This is a default handler for the signal signal_focus_in_event(). More...
 
bool on_focus_out_event (GdkEventFocus *)
 This is a default handler for the signal signal_focus_out_event(). More...
 
bool on_key_release_event (GdkEventKey *)
 This is a default handler for the signal signal_key_release_event(). More...
 
bool on_key_press_event (GdkEventKey *)
 This is a default handler for the signal signal_key_press_event(). More...
 
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 ()
 
- Protected Member Functions inherited from CairoWidget
virtual bool on_expose_event (GdkEventExpose *)
 
void on_state_changed (Gtk::StateType)
 This is a default handler for the signal signal_state_changed(). More...
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
Gdk::Color get_parent_bg ()
 
void on_map ()
 This is a default handler for the signal signal_map(). More...
 
void on_unmap ()
 This is a default handler for the signal signal_unmap(). More...
 
- Protected Member Functions inherited from Gtk::Bin
 Bin ()
 
- Protected Member Functions inherited from Gtk::Container
virtual void on_add (Widget *widget)
 This is a default handler for the signal signal_add(). More...
 
virtual void on_remove (Widget *widget)
 This is a default handler for the signal signal_remove(). More...
 
virtual void on_check_resize ()
 This is a default handler for the signal signal_check_resize(). More...
 
virtual void on_set_focus_child (Widget *widget)
 This is a default handler for the signal signal_set_focus_child(). More...
 
 Container ()
 
virtual GType child_type_vfunc () const
 
virtual void forall_vfunc (gboolean include_internals, GtkCallback callback, gpointer callback_data)
 
virtual char * composite_name_vfunc (GtkWidget *child)
 
virtual void set_child_property_vfunc (GtkWidget *child, guint property_id, const GValue *value, GParamSpec *pspec)
 
virtual void get_child_property_vfunc (GtkWidget *child, guint property_id, GValue *value, GParamSpec *pspec) const
 
Glib::PropertyProxy< guint > property_border_width ()
 
Glib::PropertyProxy_ReadOnly< guint > property_border_width () const
 
Glib::PropertyProxy< ResizeModeproperty_resize_mode ()
 
Glib::PropertyProxy_ReadOnly< ResizeModeproperty_resize_mode () const
 
Glib::PropertyProxy_WriteOnly< Widget * > property_child ()
 
- Protected Member Functions inherited from Gtk::Widget
virtual void on_show ()
 This is a default handler for the signal signal_show(). More...
 
virtual void on_hide ()
 This is a default handler for the signal signal_hide(). More...
 
virtual void on_unrealize ()
 This is a default handler for the signal signal_unrealize(). More...
 
virtual void on_parent_changed (Widget *previous_parent)
 This is a default handler for the signal signal_parent_changed(). More...
 
virtual void on_hierarchy_changed (Widget *previous_toplevel)
 This is a default handler for the signal signal_hierarchy_changed(). More...
 
virtual void on_style_changed (const Glib::RefPtr< Gtk::Style > &previous_style)
 This is a default handler for the signal signal_style_changed(). More...
 
virtual void on_direction_changed (TextDirection direction)
 This is a default handler for the signal signal_direction_changed(). More...
 
virtual void on_grab_notify (bool was_grabbed)
 This is a default handler for the signal signal_grab_notify(). More...
 
virtual void on_child_notify (GParamSpec *pspec)
 This is a default handler for the signal signal_child_notify(). More...
 
virtual bool on_mnemonic_activate (bool group_cycling)
 This is a default handler for the signal signal_mnemonic_activate(). More...
 
virtual void on_grab_focus ()
 This is a default handler for the signal signal_grab_focus(). More...
 
virtual bool on_focus (DirectionType direction)
 This is a default handler for the signal signal_focus(). More...
 
virtual bool on_event (GdkEvent *event)
 This is a default handler for the signal signal_event(). More...
 
virtual bool on_scroll_event (GdkEventScroll *event)
 This is a default handler for the signal signal_scroll_event(). More...
 
virtual bool on_motion_notify_event (GdkEventMotion *event)
 This is a default handler for the signal signal_motion_notify_event(). More...
 
virtual bool on_delete_event (GdkEventAny *event)
 This is a default handler for the signal signal_delete_event(). More...
 
virtual bool on_configure_event (GdkEventConfigure *event)
 This is a default handler for the signal signal_configure_event(). More...
 
virtual bool on_map_event (GdkEventAny *event)
 This is a default handler for the signal signal_map_event(). More...
 
virtual bool on_unmap_event (GdkEventAny *event)
 This is a default handler for the signal signal_unmap_event(). More...
 
virtual bool on_property_notify_event (GdkEventProperty *event)
 This is a default handler for the signal signal_property_notify_event(). More...
 
virtual bool on_selection_clear_event (GdkEventSelection *event)
 This is a default handler for the signal signal_selection_clear_event(). More...
 
virtual bool on_selection_request_event (GdkEventSelection *event)
 This is a default handler for the signal signal_selection_request_event(). More...
 
virtual bool on_selection_notify_event (GdkEventSelection *event)
 This is a default handler for the signal signal_selection_notify_event(). More...
 
virtual bool on_proximity_in_event (GdkEventProximity *event)
 This is a default handler for the signal signal_proximity_in_event(). More...
 
virtual bool on_proximity_out_event (GdkEventProximity *event)
 This is a default handler for the signal signal_proximity_out_event(). More...
 
virtual bool on_visibility_notify_event (GdkEventVisibility *event)
 This is a default handler for the signal signal_visibility_notify_event(). More...
 
virtual bool on_client_event (GdkEventClient *event)
 This is a default handler for the signal signal_client_event(). More...
 
virtual bool on_no_expose_event (GdkEventAny *event)
 This is a default handler for the signal signal_no_expose_event(). More...
 
virtual bool on_window_state_event (GdkEventWindowState *event)
 This is a default handler for the signal signal_window_state_event(). More...
 
virtual void on_selection_get (SelectionData &selection_data, guint info, guint time)
 This is a default handler for the signal signal_selection_get(). More...
 
virtual void on_selection_received (const SelectionData &selection_data, guint time)
 This is a default handler for the signal signal_selection_received(). More...
 
virtual void on_drag_begin (const Glib::RefPtr< Gdk::DragContext > &context)
 This is a default handler for the signal signal_drag_begin(). More...
 
virtual void on_drag_end (const Glib::RefPtr< Gdk::DragContext > &context)
 This is a default handler for the signal signal_drag_end(). More...
 
virtual void on_drag_data_get (const Glib::RefPtr< Gdk::DragContext > &context, SelectionData &selection_data, guint info, guint time)
 This is a default handler for the signal signal_drag_data_get(). More...
 
virtual void on_drag_data_delete (const Glib::RefPtr< Gdk::DragContext > &context)
 This is a default handler for the signal signal_drag_data_delete(). More...
 
virtual void on_drag_leave (const Glib::RefPtr< Gdk::DragContext > &context, guint time)
 This is a default handler for the signal signal_drag_leave(). More...
 
virtual bool on_drag_motion (const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint time)
 This is a default handler for the signal signal_drag_motion(). More...
 
virtual bool on_drag_drop (const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint time)
 This is a default handler for the signal signal_drag_drop(). More...
 
virtual void on_drag_data_received (const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, const SelectionData &selection_data, guint info, guint time)
 This is a default handler for the signal signal_drag_data_received(). More...
 
virtual bool on_touch_update_event (GdkEventTouch *event)
 
virtual void on_screen_changed (const Glib::RefPtr< Gdk::Screen > &previous_screen)
 This is a default handler for the signal signal_screen_changed(). More...
 
virtual void dispatch_child_properties_changed_vfunc (guint p1, GParamSpec **p2)
 
virtual void show_all_vfunc ()
 
virtual void hide_all_vfunc ()
 
 Widget ()
 
void realize ()
 
void unrealize ()
 
void set_mapped (bool mapped=true)
 
void set_realized (bool realized=true)
 
void style_attach ()
 
void get_child_requisition (Requisition &requisition) const
 
void get_style_property_value (const Glib::ustring &the_property_name, Glib::ValueBase &value) const
 
void realize_if_needed ()
 

Protected Attributes

PBD::ScopedConnection watch_connection
 
Glib::RefPtr< Pango::Layout > _layout
 
Glib::RefPtr< Gdk::Pixbuf_pixbuf
 
std::string _text
 
std::vector< std::string > _sizing_texts
 
bool _markup
 
Element _elements
 
ArdourIcon::Icon _icon
 
rendercallback_t _icon_render_cb
 
void * _icon_render_cb_data
 
Tweaks _tweaks
 
BindingProxy binding_proxy
 
unsigned int _char_pixel_width
 
unsigned int _char_pixel_height
 
float _char_avg_pixel_width
 
float _width_padding
 
bool _custom_font_set
 
int _text_width
 
int _text_height
 
float _diameter
 
float _corner_radius
 
int _corner_mask
 
double _angle
 
float _xalign
 
float _yalign
 
uint32_t fill_inactive_color
 
uint32_t fill_active_color
 
uint32_t text_active_color
 
uint32_t text_inactive_color
 
uint32_t led_active_color
 
uint32_t led_inactive_color
 
uint32_t led_custom_color
 
bool use_custom_led_color
 
uint32_t outline_color
 
cairo_pattern_t * convex_pattern
 
cairo_pattern_t * concave_pattern
 
cairo_pattern_t * led_inset_pattern
 
cairo_rectangle_t * _led_rect
 
bool _act_on_release
 
bool _auto_toggle
 
bool _led_left
 
bool _distinct_led_click
 
bool _hovering
 
bool _focused
 
int _fixed_colors_set
 
bool _fallthrough_to_parent
 
int _layout_ellipsize_width
 
Pango::EllipsizeMode _ellipsis
 
bool _update_colors
 
int _pattern_height
 
- 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
 

Additional Inherited Members

- Static Protected Attributes inherited from CairoWidget
static sigc::slot< void, Gtk::Widget * > focus_handler
 

Detailed Description

Definition at line 38 of file ardour_button.h.

Member Typedef Documentation

◆ rendercallback_t

typedef void(* ArdourWidgets::ArdourButton::rendercallback_t) (cairo_t *, int, int, uint32_t, void *)

Definition at line 53 of file ardour_button.h.

Member Enumeration Documentation

◆ Element

Enumerator
Edge 
Body 
Text 
Indicator 
ColorBox 
Menu 
Inactive 
VectorIcon 
IconRenderCallback 

Definition at line 41 of file ardour_button.h.

◆ Tweaks

Enumerator
Square 
TrackHeader 
OccasionalText 
OccasionalLED 
ForceBoxy 
ForceFlat 

Definition at line 63 of file ardour_button.h.

Constructor & Destructor Documentation

◆ ArdourButton() [1/2]

ArdourWidgets::ArdourButton::ArdourButton ( Element  e = default_elements,
bool  toggle = false 
)

◆ ArdourButton() [2/2]

ArdourWidgets::ArdourButton::ArdourButton ( const std::string &  ,
Element  e = default_elements,
bool  toggle = false 
)

◆ ~ArdourButton()

virtual ArdourWidgets::ArdourButton::~ArdourButton ( )
virtual

Member Function Documentation

◆ action_sensitivity_changed()

void ArdourWidgets::ArdourButton::action_sensitivity_changed ( )
protected

◆ action_toggled()

void ArdourWidgets::ArdourButton::action_toggled ( )
protected

◆ action_tooltip_changed()

void ArdourWidgets::ArdourButton::action_tooltip_changed ( )
protected

◆ action_visibility_changed()

void ArdourWidgets::ArdourButton::action_visibility_changed ( )
protected

◆ add_elements()

void ArdourWidgets::ArdourButton::add_elements ( Element  )

◆ build_patterns()

void ArdourWidgets::ArdourButton::build_patterns ( )
protected

◆ char_avg_pixel_width()

float ArdourWidgets::ArdourButton::char_avg_pixel_width ( )
inline

Definition at line 141 of file ardour_button.h.

◆ char_pixel_height()

unsigned int ArdourWidgets::ArdourButton::char_pixel_height ( )
inline

Definition at line 140 of file ardour_button.h.

◆ char_pixel_width()

unsigned int ArdourWidgets::ArdourButton::char_pixel_width ( )
inline

Definition at line 139 of file ardour_button.h.

◆ color_handler()

void ArdourWidgets::ArdourButton::color_handler ( )
protected

◆ controllable_changed()

void ArdourWidgets::ArdourButton::controllable_changed ( )
protected

◆ elements()

Element ArdourWidgets::ArdourButton::elements ( ) const
inline

Definition at line 85 of file ardour_button.h.

◆ ensure_layout()

void ArdourWidgets::ArdourButton::ensure_layout ( )
protected

◆ get_alignment()

void ArdourWidgets::ArdourButton::get_alignment ( float &  xa,
float &  ya 
)
inline

Definition at line 100 of file ardour_button.h.

◆ get_controllable()

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

Definition at line 119 of file ardour_button.h.

◆ get_markup()

bool ArdourWidgets::ArdourButton::get_markup ( ) const
inline

Definition at line 97 of file ardour_button.h.

◆ get_text()

const std::string& ArdourWidgets::ArdourButton::get_text ( ) const
inline

Definition at line 96 of file ardour_button.h.

◆ icon()

ArdourIcon::Icon ArdourWidgets::ArdourButton::icon ( ) const
inline

Definition at line 89 of file ardour_button.h.

◆ on_button_press_event()

bool ArdourWidgets::ArdourButton::on_button_press_event ( GdkEventButton event)
virtual

This is a default handler for the signal signal_button_press_event().

Reimplemented from CairoWidget.

Reimplemented in ArdourWidgets::ArdourDropdown.

◆ on_button_release_event()

bool ArdourWidgets::ArdourButton::on_button_release_event ( GdkEventButton event)
virtual

This is a default handler for the signal signal_button_release_event().

Reimplemented from Gtk::Widget.

◆ on_enter_notify_event()

bool ArdourWidgets::ArdourButton::on_enter_notify_event ( GdkEventCrossing event)
protectedvirtual

This is a default handler for the signal signal_enter_notify_event().

Reimplemented from Gtk::Widget.

◆ on_focus_in_event()

bool ArdourWidgets::ArdourButton::on_focus_in_event ( GdkEventFocus event)
protectedvirtual

This is a default handler for the signal signal_focus_in_event().

Reimplemented from Gtk::Widget.

◆ on_focus_out_event()

bool ArdourWidgets::ArdourButton::on_focus_out_event ( GdkEventFocus event)
protectedvirtual

This is a default handler for the signal signal_focus_out_event().

Reimplemented from Gtk::Widget.

◆ on_grab_broken_event()

bool ArdourWidgets::ArdourButton::on_grab_broken_event ( GdkEventGrabBroken )
protected

◆ on_key_press_event()

bool ArdourWidgets::ArdourButton::on_key_press_event ( GdkEventKey event)
protectedvirtual

This is a default handler for the signal signal_key_press_event().

Reimplemented from Gtk::Widget.

◆ on_key_release_event()

bool ArdourWidgets::ArdourButton::on_key_release_event ( GdkEventKey event)
protectedvirtual

This is a default handler for the signal signal_key_release_event().

Reimplemented from Gtk::Widget.

◆ on_leave_notify_event()

bool ArdourWidgets::ArdourButton::on_leave_notify_event ( GdkEventCrossing event)
protectedvirtual

This is a default handler for the signal signal_leave_notify_event().

Reimplemented from Gtk::Widget.

◆ on_name_changed()

void ArdourWidgets::ArdourButton::on_name_changed ( )
protectedvirtual

Reimplemented from CairoWidget.

◆ on_realize()

void ArdourWidgets::ArdourButton::on_realize ( )
protectedvirtual

This is a default handler for the signal signal_realize().

Reimplemented from CairoWidget.

◆ on_size_allocate()

void ArdourWidgets::ArdourButton::on_size_allocate ( Gtk::Allocation allocation)
protectedvirtual

This is a default handler for the signal signal_size_allocate().

Reimplemented from CairoWidget.

◆ on_size_request()

void ArdourWidgets::ArdourButton::on_size_request ( Gtk::Requisition requisition)
protectedvirtual

This is a default handler for the signal signal_size_request().

Reimplemented from Gtk::Widget.

◆ on_style_changed()

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

◆ on_touch_begin_event()

bool ArdourWidgets::ArdourButton::on_touch_begin_event ( GdkEventTouch )
virtual

Reimplemented from Gtk::Widget.

◆ on_touch_end_event()

bool ArdourWidgets::ArdourButton::on_touch_end_event ( GdkEventTouch )
virtual

Reimplemented from Gtk::Widget.

◆ recalc_char_pixel_geometry()

void ArdourWidgets::ArdourButton::recalc_char_pixel_geometry ( )
protected

◆ render()

void ArdourWidgets::ArdourButton::render ( Cairo::RefPtr< Cairo::Context > const &  ,
cairo_rectangle_t *   
)
protectedvirtual

◆ reset_fixed_colors()

void ArdourWidgets::ArdourButton::reset_fixed_colors ( )

◆ set_act_on_release()

void ArdourWidgets::ArdourButton::set_act_on_release ( bool  onRelease)
inline

Definition at line 83 of file ardour_button.h.

◆ set_active_color()

void ArdourWidgets::ArdourButton::set_active_color ( const uint32_t  active_color)

◆ set_active_state()

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

Reimplemented from CairoWidget.

◆ set_alignment()

void ArdourWidgets::ArdourButton::set_alignment ( const float  ,
const float   
)

◆ set_angle()

void ArdourWidgets::ArdourButton::set_angle ( const double  )

◆ set_colors()

void ArdourWidgets::ArdourButton::set_colors ( )
protected

◆ set_controllable()

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

◆ set_corner_radius()

void ArdourWidgets::ArdourButton::set_corner_radius ( float  )

◆ set_custom_led_color()

void ArdourWidgets::ArdourButton::set_custom_led_color ( const uint32_t  c,
const bool  useit = true 
)

◆ set_default_tweaks()

static void ArdourWidgets::ArdourButton::set_default_tweaks ( Tweaks  t)
inlinestatic

Definition at line 73 of file ardour_button.h.

◆ set_distinct_led_click()

void ArdourWidgets::ArdourButton::set_distinct_led_click ( bool  yn)

◆ set_elements()

void ArdourWidgets::ArdourButton::set_elements ( Element  )

◆ set_fallthrough_to_parent()

void ArdourWidgets::ArdourButton::set_fallthrough_to_parent ( bool  fall)
inline

Definition at line 137 of file ardour_button.h.

◆ set_fixed_colors()

void ArdourWidgets::ArdourButton::set_fixed_colors ( const uint32_t  active_color,
const uint32_t  inactive_color 
)

◆ set_icon() [1/2]

void ArdourWidgets::ArdourButton::set_icon ( ArdourIcon::Icon  )

◆ set_icon() [2/2]

void ArdourWidgets::ArdourButton::set_icon ( rendercallback_t  ,
void *   
)

◆ set_image()

void ArdourWidgets::ArdourButton::set_image ( const Glib::RefPtr< Gdk::Pixbuf > &  )

◆ set_inactive_color()

void ArdourWidgets::ArdourButton::set_inactive_color ( const uint32_t  inactive_color)

◆ set_layout_ellipsize_width()

void ArdourWidgets::ArdourButton::set_layout_ellipsize_width ( int  w)

◆ set_layout_font()

void ArdourWidgets::ArdourButton::set_layout_font ( const Pango::FontDescription &  )

◆ set_led_left()

void ArdourWidgets::ArdourButton::set_led_left ( bool  yn)

◆ set_related_action()

void ArdourWidgets::ArdourButton::set_related_action ( Glib::RefPtr< Gtk::Action )
virtual

Reimplemented from Gtkmm2ext::Activatable.

◆ set_sizing_text()

void ArdourWidgets::ArdourButton::set_sizing_text ( std::string const &  )

◆ set_sizing_texts()

void ArdourWidgets::ArdourButton::set_sizing_texts ( std::vector< std::string > const &  )

◆ set_text()

void ArdourWidgets::ArdourButton::set_text ( const std::string &  ,
bool  markup = false 
)

◆ set_text_ellipsize()

void ArdourWidgets::ArdourButton::set_text_ellipsize ( Pango::EllipsizeMode  )

◆ set_text_internal()

void ArdourWidgets::ArdourButton::set_text_internal ( )
protected

◆ set_tweaks()

void ArdourWidgets::ArdourButton::set_tweaks ( Tweaks  )

◆ set_visual_state()

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

Reimplemented from CairoWidget.

◆ set_width_padding()

void ArdourWidgets::ArdourButton::set_width_padding ( float  )

◆ setup_led_rect()

void ArdourWidgets::ArdourButton::setup_led_rect ( )
protected

◆ tweaks()

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

Definition at line 75 of file ardour_button.h.

◆ watch()

void ArdourWidgets::ArdourButton::watch ( )

Member Data Documentation

◆ _act_on_release

bool ArdourWidgets::ArdourButton::_act_on_release
protected

Definition at line 211 of file ardour_button.h.

◆ _angle

double ArdourWidgets::ArdourButton::_angle
protected

Definition at line 189 of file ardour_button.h.

◆ _auto_toggle

bool ArdourWidgets::ArdourButton::_auto_toggle
protected

Definition at line 212 of file ardour_button.h.

◆ _char_avg_pixel_width

float ArdourWidgets::ArdourButton::_char_avg_pixel_width
protected

Definition at line 179 of file ardour_button.h.

◆ _char_pixel_height

unsigned int ArdourWidgets::ArdourButton::_char_pixel_height
protected

Definition at line 178 of file ardour_button.h.

◆ _char_pixel_width

unsigned int ArdourWidgets::ArdourButton::_char_pixel_width
protected

Definition at line 177 of file ardour_button.h.

◆ _corner_mask

int ArdourWidgets::ArdourButton::_corner_mask
protected

Definition at line 187 of file ardour_button.h.

◆ _corner_radius

float ArdourWidgets::ArdourButton::_corner_radius
protected

Definition at line 186 of file ardour_button.h.

◆ _custom_font_set

bool ArdourWidgets::ArdourButton::_custom_font_set
protected

Definition at line 181 of file ardour_button.h.

◆ _diameter

float ArdourWidgets::ArdourButton::_diameter
protected

Definition at line 185 of file ardour_button.h.

◆ _distinct_led_click

bool ArdourWidgets::ArdourButton::_distinct_led_click
protected

Definition at line 214 of file ardour_button.h.

◆ _elements

Element ArdourWidgets::ArdourButton::_elements
protected

Definition at line 167 of file ardour_button.h.

◆ _ellipsis

Pango::EllipsizeMode ArdourWidgets::ArdourButton::_ellipsis
protected

Definition at line 220 of file ardour_button.h.

◆ _fallthrough_to_parent

bool ArdourWidgets::ArdourButton::_fallthrough_to_parent
protected

Definition at line 218 of file ardour_button.h.

◆ _fixed_colors_set

int ArdourWidgets::ArdourButton::_fixed_colors_set
protected

Definition at line 217 of file ardour_button.h.

◆ _focused

bool ArdourWidgets::ArdourButton::_focused
protected

Definition at line 216 of file ardour_button.h.

◆ _hovering

bool ArdourWidgets::ArdourButton::_hovering
protected

Definition at line 215 of file ardour_button.h.

◆ _icon

ArdourIcon::Icon ArdourWidgets::ArdourButton::_icon
protected

Definition at line 168 of file ardour_button.h.

◆ _icon_render_cb

rendercallback_t ArdourWidgets::ArdourButton::_icon_render_cb
protected

Definition at line 169 of file ardour_button.h.

◆ _icon_render_cb_data

void* ArdourWidgets::ArdourButton::_icon_render_cb_data
protected

Definition at line 170 of file ardour_button.h.

◆ _layout

Glib::RefPtr<Pango::Layout> ArdourWidgets::ArdourButton::_layout
protected

Definition at line 162 of file ardour_button.h.

◆ _layout_ellipsize_width

int ArdourWidgets::ArdourButton::_layout_ellipsize_width
protected

Definition at line 219 of file ardour_button.h.

◆ _led_left

bool ArdourWidgets::ArdourButton::_led_left
protected

Definition at line 213 of file ardour_button.h.

◆ _led_rect

cairo_rectangle_t* ArdourWidgets::ArdourButton::_led_rect
protected

Definition at line 209 of file ardour_button.h.

◆ _markup

bool ArdourWidgets::ArdourButton::_markup
protected

Definition at line 166 of file ardour_button.h.

◆ _pattern_height

int ArdourWidgets::ArdourButton::_pattern_height
protected

Definition at line 222 of file ardour_button.h.

◆ _pixbuf

Glib::RefPtr<Gdk::Pixbuf> ArdourWidgets::ArdourButton::_pixbuf
protected

Definition at line 163 of file ardour_button.h.

◆ _sizing_texts

std::vector<std::string> ArdourWidgets::ArdourButton::_sizing_texts
protected

Definition at line 165 of file ardour_button.h.

◆ _text

std::string ArdourWidgets::ArdourButton::_text
protected

Definition at line 164 of file ardour_button.h.

◆ _text_height

int ArdourWidgets::ArdourButton::_text_height
protected

Definition at line 184 of file ardour_button.h.

◆ _text_width

int ArdourWidgets::ArdourButton::_text_width
protected

Definition at line 183 of file ardour_button.h.

◆ _tweaks

Tweaks ArdourWidgets::ArdourButton::_tweaks
protected

Definition at line 171 of file ardour_button.h.

◆ _update_colors

bool ArdourWidgets::ArdourButton::_update_colors
protected

Definition at line 221 of file ardour_button.h.

◆ _width_padding

float ArdourWidgets::ArdourButton::_width_padding
protected

Definition at line 180 of file ardour_button.h.

◆ _xalign

float ArdourWidgets::ArdourButton::_xalign
protected

Definition at line 190 of file ardour_button.h.

◆ _yalign

float ArdourWidgets::ArdourButton::_yalign
protected

Definition at line 190 of file ardour_button.h.

◆ binding_proxy

BindingProxy ArdourWidgets::ArdourButton::binding_proxy
protected

Definition at line 172 of file ardour_button.h.

◆ concave_pattern

cairo_pattern_t* ArdourWidgets::ArdourButton::concave_pattern
protected

Definition at line 207 of file ardour_button.h.

◆ convex_pattern

cairo_pattern_t* ArdourWidgets::ArdourButton::convex_pattern
protected

Definition at line 206 of file ardour_button.h.

◆ default_elements

Element ArdourWidgets::ArdourButton::default_elements
static

Definition at line 55 of file ardour_button.h.

◆ default_tweaks

Tweaks ArdourWidgets::ArdourButton::default_tweaks
static

Definition at line 72 of file ardour_button.h.

◆ fill_active_color

uint32_t ArdourWidgets::ArdourButton::fill_active_color
protected

Definition at line 193 of file ardour_button.h.

◆ fill_inactive_color

uint32_t ArdourWidgets::ArdourButton::fill_inactive_color
protected

Definition at line 192 of file ardour_button.h.

◆ just_led_default_elements

Element ArdourWidgets::ArdourButton::just_led_default_elements
static

Definition at line 57 of file ardour_button.h.

◆ led_active_color

uint32_t ArdourWidgets::ArdourButton::led_active_color
protected

Definition at line 198 of file ardour_button.h.

◆ led_custom_color

uint32_t ArdourWidgets::ArdourButton::led_custom_color
protected

Definition at line 200 of file ardour_button.h.

◆ led_default_elements

Element ArdourWidgets::ArdourButton::led_default_elements
static

Definition at line 56 of file ardour_button.h.

◆ led_inactive_color

uint32_t ArdourWidgets::ArdourButton::led_inactive_color
protected

Definition at line 199 of file ardour_button.h.

◆ led_inset_pattern

cairo_pattern_t* ArdourWidgets::ArdourButton::led_inset_pattern
protected

Definition at line 208 of file ardour_button.h.

◆ outline_color

uint32_t ArdourWidgets::ArdourButton::outline_color
protected

Definition at line 203 of file ardour_button.h.

◆ signal_clicked

sigc::signal<void> ArdourWidgets::ArdourButton::signal_clicked

Definition at line 117 of file ardour_button.h.

◆ signal_led_clicked

sigc::signal<void, GdkEventButton*> ArdourWidgets::ArdourButton::signal_led_clicked

Definition at line 116 of file ardour_button.h.

◆ text_active_color

uint32_t ArdourWidgets::ArdourButton::text_active_color
protected

Definition at line 195 of file ardour_button.h.

◆ text_inactive_color

uint32_t ArdourWidgets::ArdourButton::text_inactive_color
protected

Definition at line 196 of file ardour_button.h.

◆ use_custom_led_color

bool ArdourWidgets::ArdourButton::use_custom_led_color
protected

Definition at line 201 of file ardour_button.h.

◆ watch_connection

PBD::ScopedConnection ArdourWidgets::ArdourButton::watch_connection
protected

Definition at line 159 of file ardour_button.h.


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