Panda3D
Public Member Functions | List of all members
GtkStatsLabel Class Reference

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...
 

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

Member Function Documentation

◆ get_collector_index()

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().

◆ get_height()

int GtkStatsLabel::get_height ( ) const

Returns the height of the label as we requested it.

Definition at line 108 of file gtkStatsLabel.cxx.

◆ get_highlight()

bool GtkStatsLabel::get_highlight ( ) const

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

Definition at line 143 of file gtkStatsLabel.cxx.

◆ get_thread_index()

int GtkStatsLabel::get_thread_index ( ) const

Returns the thread index.

Definition at line 124 of file gtkStatsLabel.cxx.

◆ get_widget()

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().

◆ set_highlight()

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().


The documentation for this class was generated from the following files: