Ardour  9.0-pre0-822-g12e3bc5c20
LED Class Reference

#include <led.h>

Inheritance diagram for LED:
[legend]

Public Member Functions

 LED ()
 
virtual ~LED ()
 
void set_diameter (float)
 
- 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 ()
 

Protected Member Functions

void render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *)
 
void on_size_request (Gtk::Requisition *req)
 
void on_realize ()
 
- 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

void set_colors_from_style ()
 

Private Attributes

float _diameter
 
float _red
 
float _green
 
float _blue
 
bool _fixed_diameter
 

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 CairoWidget
sigc::signal< void > StateChanged
 
sigc::signal< bool > QueueDraw
 
sigc::signal< bool > QueueResize
 
- 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
 

Detailed Description

Definition at line 28 of file gtk2_ardour/led.h.

Constructor & Destructor Documentation

◆ LED()

LED::LED ( )

◆ ~LED()

virtual LED::~LED ( )
virtual

Member Function Documentation

◆ on_realize()

void LED::on_realize ( )
protected

◆ on_size_request()

void LED::on_size_request ( Gtk::Requisition *  req)
protected

◆ render()

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

◆ set_colors_from_style()

void LED::set_colors_from_style ( )
private

◆ set_diameter()

void LED::set_diameter ( float  )

Member Data Documentation

◆ _blue

float LED::_blue
private

Definition at line 45 of file gtk2_ardour/led.h.

◆ _diameter

float LED::_diameter
private

Definition at line 42 of file gtk2_ardour/led.h.

◆ _fixed_diameter

bool LED::_fixed_diameter
private

Definition at line 46 of file gtk2_ardour/led.h.

◆ _green

float LED::_green
private

Definition at line 44 of file gtk2_ardour/led.h.

◆ _red

float LED::_red
private

Definition at line 43 of file gtk2_ardour/led.h.


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