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

References set_highlight().

Referenced by get_height(), and GtkStatsLabelStack::highlight_label().

◆ get_height()

int GtkStatsLabel::get_height ( ) const

Returns the height of the label as we requested it.

Definition at line 117 of file gtkStatsLabel.cxx.

References get_collector_index().

Referenced by get_widget().

◆ get_highlight()

bool GtkStatsLabel::get_highlight ( ) const

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

Definition at line 152 of file gtkStatsLabel.cxx.

References GtkStatsGraph::clicked_label().

Referenced by set_highlight().

◆ get_widget()

GtkWidget * GtkStatsLabel::get_widget ( ) const

Returns the widget for this label.

Definition at line 107 of file gtkStatsLabel.cxx.

References get_height().

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 138 of file gtkStatsLabel.cxx.

References get_highlight().

Referenced by get_collector_index(), and GtkStatsLabelStack::highlight_label().


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