#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 () |
|
void | render (Cairo::RefPtr< Cairo::Context > const &, cairo_rectangle_t *) |
|
| 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 () |
|
virtual | ~CairoCanvas () |
|
|
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 32 of file fastmeter.h.
◆ Pattern10Map
◆ PatternBgMap
◆ Orientation
Enumerator |
---|
Horizontal | |
Vertical | |
Definition at line 34 of file fastmeter.h.
◆ FastMeter()
ArdourWidgets::FastMeter::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 |
|
) |
| |
◆ ~FastMeter()
virtual ArdourWidgets::FastMeter::~FastMeter |
( |
| ) |
|
|
virtual |
◆ clear()
void ArdourWidgets::FastMeter::clear |
( |
| ) |
|
◆ flush_pattern_cache()
static void ArdourWidgets::FastMeter::flush_pattern_cache |
( |
| ) |
|
|
static |
◆ generate_meter_background()
static Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::generate_meter_background |
( |
int |
, |
|
|
int |
, |
|
|
int * |
, |
|
|
bool |
, |
|
|
bool |
|
|
) |
| |
|
staticprivate |
◆ generate_meter_pattern()
static Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::generate_meter_pattern |
( |
int |
, |
|
|
int |
, |
|
|
int * |
, |
|
|
float * |
, |
|
|
int |
, |
|
|
bool |
|
|
) |
| |
|
staticprivate |
◆ get_highlight()
bool ArdourWidgets::FastMeter::get_highlight |
( |
| ) |
|
|
inline |
◆ get_level()
float ArdourWidgets::FastMeter::get_level |
( |
| ) |
|
|
inline |
◆ get_peak()
float ArdourWidgets::FastMeter::get_peak |
( |
| ) |
|
|
inline |
◆ get_user_level()
float ArdourWidgets::FastMeter::get_user_level |
( |
| ) |
|
|
inline |
◆ hold_count()
long ArdourWidgets::FastMeter::hold_count |
( |
| ) |
|
|
inline |
◆ horizontal_expose()
void ArdourWidgets::FastMeter::horizontal_expose |
( |
cairo_t * |
, |
|
|
cairo_rectangle_t * |
|
|
) |
| |
|
private |
◆ horizontal_size_allocate()
void ArdourWidgets::FastMeter::horizontal_size_allocate |
( |
Gtk::Allocation & |
| ) |
|
|
private |
◆ horizontal_size_request()
void ArdourWidgets::FastMeter::horizontal_size_request |
( |
GtkRequisition * |
| ) |
|
|
private |
◆ on_size_allocate()
void ArdourWidgets::FastMeter::on_size_allocate |
( |
Gtk::Allocation & |
| ) |
|
|
protected |
◆ on_size_request()
void ArdourWidgets::FastMeter::on_size_request |
( |
GtkRequisition * |
| ) |
|
|
protected |
◆ queue_horizontal_redraw()
void ArdourWidgets::FastMeter::queue_horizontal_redraw |
( |
const Glib::RefPtr< Gdk::Window > & |
, |
|
|
float |
|
|
) |
| |
|
private |
◆ queue_vertical_redraw()
void ArdourWidgets::FastMeter::queue_vertical_redraw |
( |
const Glib::RefPtr< Gdk::Window > & |
, |
|
|
float |
|
|
) |
| |
|
private |
◆ render()
void ArdourWidgets::FastMeter::render |
( |
Cairo::RefPtr< Cairo::Context > const & |
, |
|
|
cairo_rectangle_t * |
|
|
) |
| |
|
virtual |
◆ request_horizontal_background()
static Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::request_horizontal_background |
( |
int |
, |
|
|
int |
, |
|
|
int * |
, |
|
|
bool |
|
|
) |
| |
|
staticprivate |
◆ request_horizontal_meter()
static Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::request_horizontal_meter |
( |
int |
, |
|
|
int |
, |
|
|
int * |
, |
|
|
float * |
, |
|
|
int |
|
|
) |
| |
|
staticprivate |
◆ request_vertical_background()
static Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::request_vertical_background |
( |
int |
, |
|
|
int |
, |
|
|
int * |
, |
|
|
bool |
|
|
) |
| |
|
staticprivate |
◆ request_vertical_meter()
static Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::request_vertical_meter |
( |
int |
, |
|
|
int |
, |
|
|
int * |
, |
|
|
float * |
, |
|
|
int |
|
|
) |
| |
|
staticprivate |
◆ set()
void ArdourWidgets::FastMeter::set |
( |
float |
level, |
|
|
float |
peak = -1 |
|
) |
| |
◆ set_highlight()
void ArdourWidgets::FastMeter::set_highlight |
( |
bool |
| ) |
|
◆ set_hold_count()
void ArdourWidgets::FastMeter::set_hold_count |
( |
long |
| ) |
|
◆ vertical_expose()
void ArdourWidgets::FastMeter::vertical_expose |
( |
cairo_t * |
, |
|
|
cairo_rectangle_t * |
|
|
) |
| |
|
private |
◆ vertical_size_allocate()
void ArdourWidgets::FastMeter::vertical_size_allocate |
( |
Gtk::Allocation & |
| ) |
|
|
private |
◆ vertical_size_request()
void ArdourWidgets::FastMeter::vertical_size_request |
( |
GtkRequisition * |
| ) |
|
|
private |
◆ _bgc
int ArdourWidgets::FastMeter::_bgc[2] |
|
private |
◆ _bgh
int ArdourWidgets::FastMeter::_bgh[2] |
|
private |
◆ _clr
int ArdourWidgets::FastMeter::_clr[10] |
|
private |
◆ _stp
float ArdourWidgets::FastMeter::_stp[4] |
|
private |
◆ _styleflags
int ArdourWidgets::FastMeter::_styleflags |
|
private |
◆ bgpattern
Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::bgpattern |
|
private |
◆ bright_hold
bool ArdourWidgets::FastMeter::bright_hold |
|
private |
◆ current_level
float ArdourWidgets::FastMeter::current_level |
|
private |
◆ current_peak
float ArdourWidgets::FastMeter::current_peak |
|
private |
◆ current_user_level
float ArdourWidgets::FastMeter::current_user_level |
|
private |
◆ fgpattern
Cairo::RefPtr<Cairo::Pattern> ArdourWidgets::FastMeter::fgpattern |
|
private |
◆ hb_pattern_cache
◆ highlight
bool ArdourWidgets::FastMeter::highlight |
|
private |
◆ hm_pattern_cache
◆ hold_cnt
unsigned long ArdourWidgets::FastMeter::hold_cnt |
|
private |
◆ hold_state
unsigned long ArdourWidgets::FastMeter::hold_state |
|
private |
◆ last_peak_rect
GdkRectangle ArdourWidgets::FastMeter::last_peak_rect |
|
private |
◆ max_pattern_metric_size
int ArdourWidgets::FastMeter::max_pattern_metric_size |
|
staticprivate |
◆ min_pattern_metric_size
int ArdourWidgets::FastMeter::min_pattern_metric_size |
|
staticprivate |
◆ no_rgba_overlay
bool ArdourWidgets::FastMeter::no_rgba_overlay |
|
staticprivate |
◆ orientation
◆ outline_color
uint32_t ArdourWidgets::FastMeter::outline_color |
|
private |
◆ pixheight
gint ArdourWidgets::FastMeter::pixheight |
|
private |
◆ pixrect
GdkRectangle ArdourWidgets::FastMeter::pixrect |
|
private |
◆ pixwidth
gint ArdourWidgets::FastMeter::pixwidth |
|
private |
◆ request_height
gint ArdourWidgets::FastMeter::request_height |
|
private |
◆ request_width
gint ArdourWidgets::FastMeter::request_width |
|
private |
◆ vb_pattern_cache
◆ vm_pattern_cache
The documentation for this class was generated from the following file: