A text label that will draw in color appropriate for a particular collector. More...
#include "gtkStatsLabel.h"
Public Member Functions | |
GtkStatsLabel (GtkStatsMonitor *monitor, GtkStatsGraph *graph, int thread_index, int collector_index, bool use_fullname) | |
int | get_collector_index () const |
Returns the collector this label represents. More... | |
int | get_height () const |
Returns the height of the label as we requested it. More... | |
bool | get_highlight () const |
Returns true if the visual highlight for this label is enabled. More... | |
int | get_thread_index () const |
Returns the thread index. More... | |
GtkWidget * | get_widget () const |
Returns the widget for this label. More... | |
void | set_highlight (bool highlight) |
Enables or disables the visual highlight for this label. More... | |
A text label that will draw in color appropriate for a particular collector.
It also responds when the user double-clicks on it. This is handy for putting colored labels on strip charts.
Definition at line 29 of file gtkStatsLabel.h.
int GtkStatsLabel::get_collector_index | ( | ) | const |
Returns the collector this label represents.
Definition at line 116 of file gtkStatsLabel.cxx.
Referenced by GtkStatsLabelStack::highlight_label().
int GtkStatsLabel::get_height | ( | ) | const |
Returns the height of the label as we requested it.
Definition at line 108 of file gtkStatsLabel.cxx.
bool GtkStatsLabel::get_highlight | ( | ) | const |
Returns true if the visual highlight for this label is enabled.
Definition at line 143 of file gtkStatsLabel.cxx.
int GtkStatsLabel::get_thread_index | ( | ) | const |
Returns the thread index.
Definition at line 124 of file gtkStatsLabel.cxx.
GtkWidget * GtkStatsLabel::get_widget | ( | ) | const |
Returns the widget for this label.
Definition at line 100 of file gtkStatsLabel.cxx.
Referenced by GtkStatsLabelStack::add_label(), and GtkStatsLabelStack::clear_labels().
void GtkStatsLabel::set_highlight | ( | bool | highlight | ) |
Enables or disables the visual highlight for this label.
Definition at line 132 of file gtkStatsLabel.cxx.
Referenced by GtkStatsLabelStack::highlight_label().