Panda3D
Public Member Functions

GtkStatsLabel Class Reference

A text label that will draw in color appropriate for a particular collector. More...

#include "gtkStatsLabel.h"

List of all members.

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.
int get_height () const
 Returns the height of the label as we requested it.
bool get_highlight () const
 Returns true if the visual highlight for this label is enabled.
GtkWidget * get_widget () const
 Returns the widget for this label.
void set_highlight (bool highlight)
 Enables or disables the visual highlight for this label.

Detailed Description

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 32 of file gtkStatsLabel.h.


Member Function Documentation

int GtkStatsLabel::get_collector_index ( ) const

Returns the collector this label represents.

Definition at line 127 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 117 of file gtkStatsLabel.cxx.

bool GtkStatsLabel::get_highlight ( ) const

Returns true if the visual highlight for this label is enabled.

Definition at line 152 of file gtkStatsLabel.cxx.

GtkWidget * GtkStatsLabel::get_widget ( ) const

Returns the widget for this label.

Definition at line 107 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 138 of file gtkStatsLabel.cxx.

Referenced by GtkStatsLabelStack::highlight_label().


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