#include <fastmeter.h>
|
| FastMeter (long hold_cnt, unsigned long width, Orientation, int len=0, int clr0=0x008800ff, int clr1=0x008800ff, int clr2=0x00ff00ff, int clr3=0x00ff00ff, int clr4=0xffaa00ff, int clr5=0xffaa00ff, int clr6=0xffff00ff, int clr7=0xffff00ff, int clr8=0xff0000ff, int clr9=0xff0000ff, int bgc0=0x333333ff, int bgc1=0x444444ff, int bgh0=0x991122ff, int bgh1=0x551111ff, float stp0=55.0, float stp1=77.5, float stp2=92.5, float stp3=100.0, int styleflags=3) |
|
virtual | ~FastMeter () |
|
void | set (float level, float peak=-1) |
|
void | clear () |
|
float | get_level () |
|
float | get_user_level () |
|
float | get_peak () |
|
long | hold_count () |
|
void | set_hold_count (long) |
|
void | set_highlight (bool) |
|
bool | get_highlight () |
|
| 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) |
|
|
static Cairo::RefPtr
< Cairo::Pattern > | generate_meter_pattern (int, int, int *, float *, int, bool) |
|
static Cairo::RefPtr
< Cairo::Pattern > | request_vertical_meter (int, int, int *, float *, int) |
|
static Cairo::RefPtr
< Cairo::Pattern > | request_horizontal_meter (int, int, int *, float *, int) |
|
static Cairo::RefPtr
< Cairo::Pattern > | generate_meter_background (int, int, int *, bool, bool) |
|
static Cairo::RefPtr
< Cairo::Pattern > | request_vertical_background (int, int, int *, bool) |
|
static Cairo::RefPtr
< Cairo::Pattern > | request_horizontal_background (int, int, int *, bool) |
|
Definition at line 33 of file fastmeter.h.
Enumerator |
---|
Horizontal |
|
Vertical |
|
Definition at line 35 of file fastmeter.h.
FastMeter::FastMeter |
( |
long |
hold_cnt, |
|
|
unsigned long |
width, |
|
|
Orientation |
o, |
|
|
int |
len = 0 , |
|
|
int |
clr0 = 0x008800ff , |
|
|
int |
clr1 = 0x008800ff , |
|
|
int |
clr2 = 0x00ff00ff , |
|
|
int |
clr3 = 0x00ff00ff , |
|
|
int |
clr4 = 0xffaa00ff , |
|
|
int |
clr5 = 0xffaa00ff , |
|
|
int |
clr6 = 0xffff00ff , |
|
|
int |
clr7 = 0xffff00ff , |
|
|
int |
clr8 = 0xff0000ff , |
|
|
int |
clr9 = 0xff0000ff , |
|
|
int |
bgc0 = 0x333333ff , |
|
|
int |
bgc1 = 0x444444ff , |
|
|
int |
bgh0 = 0x991122ff , |
|
|
int |
bgh1 = 0x551111ff , |
|
|
float |
stp0 = 55.0 , |
|
|
float |
stp1 = 77.5 , |
|
|
float |
stp2 = 92.5 , |
|
|
float |
stp3 = 100.0 , |
|
|
int |
styleflags = 3 |
|
) |
| |
FastMeter::~FastMeter |
( |
| ) |
|
|
virtual |
void FastMeter::clear |
( |
| ) |
|
void FastMeter::flush_pattern_cache |
( |
| ) |
|
|
static |
Cairo::RefPtr< Cairo::Pattern > FastMeter::generate_meter_background |
( |
int |
width, |
|
|
int |
height, |
|
|
int * |
clr, |
|
|
bool |
shade, |
|
|
bool |
horiz |
|
) |
| |
|
staticprivate |
Cairo::RefPtr< Cairo::Pattern > FastMeter::generate_meter_pattern |
( |
int |
width, |
|
|
int |
height, |
|
|
int * |
clr, |
|
|
float * |
stp, |
|
|
int |
styleflags, |
|
|
bool |
horiz |
|
) |
| |
|
staticprivate |
bool Gtkmm2ext::FastMeter::get_highlight |
( |
| ) |
|
|
inline |
float Gtkmm2ext::FastMeter::get_level |
( |
| ) |
|
|
inline |
float Gtkmm2ext::FastMeter::get_peak |
( |
| ) |
|
|
inline |
float Gtkmm2ext::FastMeter::get_user_level |
( |
| ) |
|
|
inline |
long Gtkmm2ext::FastMeter::hold_count |
( |
| ) |
|
|
inline |
void FastMeter::horizontal_expose |
( |
cairo_t * |
cr, |
|
|
cairo_rectangle_t * |
area |
|
) |
| |
|
private |
void FastMeter::horizontal_size_allocate |
( |
Gtk::Allocation & |
alloc | ) |
|
|
private |
void FastMeter::horizontal_size_request |
( |
GtkRequisition * |
req | ) |
|
|
private |
void FastMeter::on_size_allocate |
( |
Gtk::Allocation & |
alloc | ) |
|
|
protected |
void FastMeter::on_size_request |
( |
GtkRequisition * |
req | ) |
|
|
protected |
void FastMeter::queue_horizontal_redraw |
( |
const Glib::RefPtr< Gdk::Window > & |
win, |
|
|
float |
old_level |
|
) |
| |
|
private |
void FastMeter::queue_vertical_redraw |
( |
const Glib::RefPtr< Gdk::Window > & |
win, |
|
|
float |
old_level |
|
) |
| |
|
private |
void FastMeter::render |
( |
cairo_t * |
cr, |
|
|
cairo_rectangle_t * |
area |
|
) |
| |
|
protectedvirtual |
Cairo::RefPtr< Cairo::Pattern > FastMeter::request_horizontal_background |
( |
int |
width, |
|
|
int |
height, |
|
|
int * |
bgc, |
|
|
bool |
shade |
|
) |
| |
|
staticprivate |
Cairo::RefPtr< Cairo::Pattern > FastMeter::request_horizontal_meter |
( |
int |
width, |
|
|
int |
height, |
|
|
int * |
clr, |
|
|
float * |
stp, |
|
|
int |
styleflags |
|
) |
| |
|
staticprivate |
Cairo::RefPtr< Cairo::Pattern > FastMeter::request_vertical_background |
( |
int |
width, |
|
|
int |
height, |
|
|
int * |
bgc, |
|
|
bool |
shade |
|
) |
| |
|
staticprivate |
Cairo::RefPtr< Cairo::Pattern > FastMeter::request_vertical_meter |
( |
int |
width, |
|
|
int |
height, |
|
|
int * |
clr, |
|
|
float * |
stp, |
|
|
int |
styleflags |
|
) |
| |
|
staticprivate |
void FastMeter::set |
( |
float |
level, |
|
|
float |
peak = -1 |
|
) |
| |
void FastMeter::set_highlight |
( |
bool |
onoff | ) |
|
void FastMeter::set_hold_count |
( |
long |
val | ) |
|
void FastMeter::vertical_expose |
( |
cairo_t * |
cr, |
|
|
cairo_rectangle_t * |
area |
|
) |
| |
|
private |
void FastMeter::vertical_size_allocate |
( |
Gtk::Allocation & |
alloc | ) |
|
|
private |
void FastMeter::vertical_size_request |
( |
GtkRequisition * |
req | ) |
|
|
private |
int Gtkmm2ext::FastMeter::_bgc[2] |
|
private |
int Gtkmm2ext::FastMeter::_bgh[2] |
|
private |
int Gtkmm2ext::FastMeter::_clr[10] |
|
private |
float Gtkmm2ext::FastMeter::_stp[4] |
|
private |
int Gtkmm2ext::FastMeter::_styleflags |
|
private |
Cairo::RefPtr<Cairo::Pattern> Gtkmm2ext::FastMeter::bgpattern |
|
private |
bool Gtkmm2ext::FastMeter::bright_hold |
|
private |
float Gtkmm2ext::FastMeter::current_level |
|
private |
float Gtkmm2ext::FastMeter::current_peak |
|
private |
float Gtkmm2ext::FastMeter::current_user_level |
|
private |
Cairo::RefPtr<Cairo::Pattern> Gtkmm2ext::FastMeter::fgpattern |
|
private |
bool Gtkmm2ext::FastMeter::highlight |
|
private |
unsigned long Gtkmm2ext::FastMeter::hold_cnt |
|
private |
unsigned long Gtkmm2ext::FastMeter::hold_state |
|
private |
GdkRectangle Gtkmm2ext::FastMeter::last_peak_rect |
|
private |
int FastMeter::max_pattern_metric_size = 1024 |
|
staticprivate |
int FastMeter::min_pattern_metric_size = 16 |
|
staticprivate |
bool FastMeter::no_rgba_overlay = false |
|
staticprivate |
gint Gtkmm2ext::FastMeter::pixheight |
|
private |
GdkRectangle Gtkmm2ext::FastMeter::pixrect |
|
private |
gint Gtkmm2ext::FastMeter::pixwidth |
|
private |
gint Gtkmm2ext::FastMeter::request_height |
|
private |
gint Gtkmm2ext::FastMeter::request_width |
|
private |
The documentation for this class was generated from the following files:
- /usr/local/music/src/ardour/4.0/libs/gtkmm2ext/gtkmm2ext/fastmeter.h
- /usr/local/music/src/ardour/4.0/libs/gtkmm2ext/fastmeter.cc