ardour
Public Member Functions | Public Attributes | Private Attributes | List of all members
ArdourDisplay Class Reference

#include <ardour_display.h>

Inheritance diagram for ArdourDisplay:
ArdourButton CairoWidget Gtkmm2ext::Activatable

Public Member Functions

 ArdourDisplay (Element e=default_elements)
 
virtual ~ArdourDisplay ()
 
boost::shared_ptr
< PBD::Controllable
get_controllable ()
 
void set_controllable (boost::shared_ptr< PBD::Controllable > c)
 
bool on_button_press_event (GdkEventButton *)
 
bool on_scroll_event (GdkEventScroll *ev)
 
void add_controllable_preset (const char *, float)
 
void handle_controllable_preset (float p)
 
void controllable_changed ()
 
- Public Member Functions inherited from ArdourButton
 ArdourButton (Element e=default_elements)
 
 ArdourButton (const std::string &, Element e=default_elements)
 
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)
 
Icon icon () const
 
void set_icon (Icon)
 
void set_corner_radius (float)
 
void set_text (const std::string &)
 
const std::string & get_text ()
 
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)
 
boost::shared_ptr
< PBD::Controllable
get_controllable ()
 
void set_controllable (boost::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 *)
 
void set_image (const Glib::RefPtr< Gdk::Pixbuf > &)
 
void set_fixed_colors (const uint32_t active_color, const uint32_t inactive_color)
 
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_dirty ()
 
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 ()
 
void set_draw_background (bool yn)
 
- Public Member Functions inherited from Gtkmm2ext::Activatable
virtual ~Activatable ()
 
Glib::RefPtr< Gtk::Action > get_related_action ()
 

Public Attributes

PBD::ScopedConnection watch_connection
 
- Public Attributes inherited from ArdourButton
sigc::signal< void > signal_led_clicked
 
sigc::signal< void > signal_clicked
 
- Public Attributes inherited from CairoWidget
sigc::signal< void > StateChanged
 

Private Attributes

Gtk::Menu _menu
 

Additional Inherited Members

- Public Types inherited from ArdourButton
enum  Element {
  Edge = 0x1, Body = 0x2, Text = 0x4, Indicator = 0x8,
  unused = 0x10, Menu = 0x20, Inactive = 0x40, VectorIcon = 0x80
}
 
enum  Icon {
  NoIcon, RecButton, RecTapeMode, CloseCross,
  StripWidth, DinMidi, TransportStop, TransportPlay,
  TransportLoop, TransportRange, TransportStart, TransportEnd,
  TransportPanic, TransportMetronom
}
 
enum  Tweaks { Square = 0x1, TrackHeader = 0x2, unused3 = 0x4 }
 
- Static Public Member Functions inherited from CairoWidget
static void provide_background_for_cairo_widget (Gtk::Widget &w, const Gdk::Color &bg)
 
static void set_flat_buttons (bool yn)
 
static bool flat_buttons ()
 
static void set_widget_prelight (bool yn)
 
static bool widget_prelight ()
 
static void set_source_rgb_a (cairo_t *cr, Gdk::Color, float a=1.0)
 
static void set_focus_handler (sigc::slot< void >)
 
- Static Public Attributes inherited from ArdourButton
static Element default_elements = ArdourButton::Element (ArdourButton::Edge|ArdourButton::Body|ArdourButton::Text)
 
static Element led_default_elements = ArdourButton::Element (ArdourButton::default_elements|ArdourButton::Indicator)
 
static Element just_led_default_elements = ArdourButton::Element (ArdourButton::Edge|ArdourButton::Body|ArdourButton::Indicator)
 
- Protected Member Functions inherited from ArdourButton
void render (cairo_t *, 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_focus_in_event (GdkEventFocus *)
 
bool on_focus_out_event (GdkEventFocus *)
 
bool on_key_release_event (GdkEventKey *)
 
void controllable_changed ()
 
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_size_allocate (Gtk::Allocation &)
 
void on_state_changed (Gtk::StateType)
 
void on_style_changed (const Glib::RefPtr< Gtk::Style > &)
 
bool on_button_press_event (GdkEventButton *)
 
Gdk::Color get_parent_bg ()
 
- Protected Attributes inherited from ArdourButton
PBD::ScopedConnection watch_connection
 
Glib::RefPtr< Pango::Layout > _layout
 
Glib::RefPtr< Gdk::Pixbuf > _pixbuf
 
std::string _text
 
Element _elements
 
Icon _icon
 
Tweaks _tweaks
 
BindingProxy binding_proxy
 
unsigned int _char_pixel_width
 
unsigned int _char_pixel_height
 
float _char_avg_pixel_width
 
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
 
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 _led_left
 
bool _distinct_led_click
 
bool _hovering
 
bool _focused
 
bool _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
 
- Static Protected Attributes inherited from CairoWidget
static bool _flat_buttons = false
 
static bool _widget_prelight = true
 
static sigc::slot< void > focus_handler
 

Detailed Description

Definition at line 32 of file ardour_display.h.

Constructor & Destructor Documentation

ArdourDisplay::ArdourDisplay ( Element  e = default_elements)

Definition at line 53 of file ardour_display.cc.

ArdourDisplay::~ArdourDisplay ( )
virtual

Definition at line 60 of file ardour_display.cc.

Member Function Documentation

void ArdourDisplay::add_controllable_preset ( const char *  txt,
float  val 
)

Definition at line 102 of file ardour_display.cc.

void ArdourDisplay::controllable_changed ( )

Definition at line 138 of file ardour_display.cc.

boost::shared_ptr<PBD::Controllable> ArdourDisplay::get_controllable ( )
inline

Definition at line 39 of file ardour_display.h.

void ArdourDisplay::handle_controllable_preset ( float  p)

Definition at line 113 of file ardour_display.cc.

bool ArdourDisplay::on_button_press_event ( GdkEventButton *  )

Definition at line 65 of file ardour_display.cc.

bool ArdourDisplay::on_scroll_event ( GdkEventScroll *  ev)

Definition at line 72 of file ardour_display.cc.

void ArdourDisplay::set_controllable ( boost::shared_ptr< PBD::Controllable c)

Definition at line 124 of file ardour_display.cc.

Member Data Documentation

Gtk::Menu ArdourDisplay::_menu
private

Definition at line 55 of file ardour_display.h.

PBD::ScopedConnection ArdourDisplay::watch_connection

Definition at line 52 of file ardour_display.h.


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