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

#include <led.h>

Inheritance diagram for LED:
CairoWidget

Public Member Functions

 LED ()
 
virtual ~LED ()
 
void set_diameter (float)
 
- Public Member Functions inherited from CairoWidget
 CairoWidget ()
 
virtual ~CairoWidget ()
 
void set_dirty ()
 
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 ()
 
void set_draw_background (bool yn)
 

Protected Member Functions

void render (cairo_t *, 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 > &)
 
bool on_button_press_event (GdkEventButton *)
 
Gdk::Color get_parent_bg ()
 
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_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 >)
 
- Public Attributes inherited from CairoWidget
sigc::signal< void > StateChanged
 
- 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 bool _flat_buttons = false
 
static bool _widget_prelight = true
 
static sigc::slot< void > focus_handler
 

Detailed Description

Definition at line 27 of file led.h.

Constructor & Destructor Documentation

LED::LED ( )

Definition at line 31 of file led.cc.

LED::~LED ( )
virtual

Definition at line 40 of file led.cc.

Member Function Documentation

void LED::on_realize ( )
protected

Definition at line 125 of file led.cc.

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

Definition at line 132 of file led.cc.

void LED::render ( cairo_t *  cr,
cairo_rectangle_t *   
)
protectedvirtual

Implements CairoWidget.

Definition at line 45 of file led.cc.

void LED::set_colors_from_style ( )
private

Definition at line 143 of file led.cc.

void LED::set_diameter ( float  d)

Definition at line 113 of file led.cc.

Member Data Documentation

float LED::_blue
private

Definition at line 44 of file led.h.

float LED::_diameter
private

Definition at line 41 of file led.h.

bool LED::_fixed_diameter
private

Definition at line 45 of file led.h.

float LED::_green
private

Definition at line 43 of file led.h.

float LED::_red
private

Definition at line 42 of file led.h.


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