Panda3D
Public Member Functions
GtkStatsLabelStack Class Reference

A widget that contains a stack of labels from bottom to top. More...

#include "gtkStatsLabelStack.h"

List of all members.

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.
void clear_labels (bool delete_widgets=true)
 Removes the set of labels and starts a new set.
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_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.
int get_num_labels () const
 Returns the number of labels in the stack.
GtkWidget * get_widget () const
 Returns the widget for this stack.
void highlight_label (int collector_index)
 Draws a highlight around the label representing the indicated collector, and removes the highlight from any other label.

Detailed Description

A widget that contains a stack of labels from bottom to top.

Definition at line 32 of file gtkStatsLabelStack.h.


Member Function Documentation

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 118 of file gtkStatsLabelStack.cxx.

References GtkStatsLabel::get_widget().

Referenced by GtkStatsStripChart::update_labels().

void GtkStatsLabelStack::clear_labels ( bool  delete_widgets = true)

Removes the set of labels and starts a new set.

Definition at line 99 of file gtkStatsLabelStack.cxx.

References GtkStatsLabel::get_widget().

Referenced by GtkStatsGraph::close(), and GtkStatsStripChart::update_labels().

int GtkStatsLabelStack::get_label_collector_index ( int  label_index) const

Returns the collector index associated with the indicated label.

Definition at line 88 of file gtkStatsLabelStack.cxx.

int GtkStatsLabelStack::get_label_height ( int  label_index) const

Returns the height of the indicated label.

Definition at line 76 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 57 of file gtkStatsLabelStack.cxx.

Returns the number of labels in the stack.

Definition at line 138 of file gtkStatsLabelStack.cxx.

GtkWidget * GtkStatsLabelStack::get_widget ( ) const

Returns the widget for this stack.

Definition at line 46 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 151 of file gtkStatsLabelStack.cxx.

References GtkStatsLabel::get_collector_index(), and GtkStatsLabel::set_highlight().

Referenced by GtkStatsStripChart::handle_motion().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations