14 #ifndef GTKSTATSLABELSTACK_H 15 #define GTKSTATSLABELSTACK_H 36 int get_label_y(
int label_index, GtkWidget *target_widget)
const;
42 int thread_index,
int collector_index,
bool use_fullname);
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.
GtkWidget * get_widget() const
Returns the widget for this stack.
void clear_labels(bool delete_widgets=true)
Removes the set of labels and starts a new set.
void highlight_label(int collector_index)
Draws a highlight around the label representing the indicated collector, and removes the highlight fr...
A widget that contains a stack of labels from bottom to top.
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
This class represents a connection to a PStatsClient and manages the data exchange with the client.
A text label that will draw in color appropriate for a particular collector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_label_collector_index(int label_index) const
Returns the collector index associated with the indicated label.
int get_label_height(int label_index) const
Returns the height of the indicated label.
int get_num_labels() const
Returns the number of labels in the stack.
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.