A widget that contains a stack of labels from bottom to top. More...
#include "gtkStatsLabelStack.h"
Public Member Functions | |
int | add_label (GtkStatsMonitor *monitor, GtkStatsGraph *graph, int thread_index, int collector_index, bool use_fullname) |
Adds a new label to the top of the stack; returns the new label index. More... | |
void | clear_labels (bool delete_widgets=true) |
Removes the set of labels and starts a new set. More... | |
int | get_label_collector_index (int label_index) const |
Returns the collector index associated with the indicated label. More... | |
int | get_label_height (int label_index) const |
Returns the height of the indicated label. More... | |
int | get_label_y (int label_index, GtkWidget *target_widget) const |
Returns the y position of the indicated label's bottom edge, relative to the indicated target widget. More... | |
int | get_num_labels () const |
Returns the number of labels in the stack. More... | |
GtkWidget * | get_widget () const |
Returns the widget for this stack. More... | |
void | highlight_label (int collector_index) |
Draws a highlight around the label representing the indicated collector, and removes the highlight from any other label. More... | |
A widget that contains a stack of labels from bottom to top.
Definition at line 29 of file gtkStatsLabelStack.h.
int GtkStatsLabelStack::add_label | ( | GtkStatsMonitor * | monitor, |
GtkStatsGraph * | graph, | ||
int | thread_index, | ||
int | collector_index, | ||
bool | use_fullname | ||
) |
Adds a new label to the top of the stack; returns the new label index.
Definition at line 99 of file gtkStatsLabelStack.cxx.
References GtkStatsLabel::get_widget().
void GtkStatsLabelStack::clear_labels | ( | bool | delete_widgets = true | ) |
Removes the set of labels and starts a new set.
Definition at line 83 of file gtkStatsLabelStack.cxx.
References GtkStatsLabel::get_widget().
int GtkStatsLabelStack::get_label_collector_index | ( | int | label_index | ) | const |
Returns the collector index associated with the indicated label.
Definition at line 74 of file gtkStatsLabelStack.cxx.
int GtkStatsLabelStack::get_label_height | ( | int | label_index | ) | const |
Returns the height of the indicated label.
Definition at line 65 of file gtkStatsLabelStack.cxx.
int GtkStatsLabelStack::get_label_y | ( | int | label_index, |
GtkWidget * | target_widget | ||
) | const |
Returns the y position of the indicated label's bottom edge, relative to the indicated target widget.
Definition at line 48 of file gtkStatsLabelStack.cxx.
int GtkStatsLabelStack::get_num_labels | ( | ) | const |
Returns the number of labels in the stack.
Definition at line 117 of file gtkStatsLabelStack.cxx.
GtkWidget * GtkStatsLabelStack::get_widget | ( | ) | const |
Returns the widget for this stack.
Definition at line 39 of file gtkStatsLabelStack.cxx.
void GtkStatsLabelStack::highlight_label | ( | int | collector_index | ) |
Draws a highlight around the label representing the indicated collector, and removes the highlight from any other label.
Specify -1 to remove the highlight from all labels.
Definition at line 127 of file gtkStatsLabelStack.cxx.
References GtkStatsLabel::get_collector_index(), and GtkStatsLabel::set_highlight().