Panda3D
Public Member Functions

WinStatsLabel Class Reference

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

#include "winStatsLabel.h"

List of all members.

Public Member Functions

 WinStatsLabel (WinStatsMonitor *monitor, WinStatsGraph *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.
int get_ideal_width () const
 Returns the width the label would really prefer to be.
int get_width () const
 Returns the width of the label as we requested it.
int get_x () const
 Returns the x position of the label on its parent.
int get_y () const
 Returns the y position of the label on its parent.
void set_highlight (bool highlight)
 Enables or disables the visual highlight for this label.
void set_pos (int x, int y, int width)
 Sets the position of the label on its parent.
void setup (HWND parent_window)
 Creates the actual window.

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


Member Function Documentation

int WinStatsLabel::get_collector_index ( ) const

Returns the collector this label represents.

Definition at line 189 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::highlight_label().

int WinStatsLabel::get_height ( ) const

Returns the height of the label as we requested it.

Definition at line 169 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::add_label(), and WinStatsLabelStack::set_pos().

bool WinStatsLabel::get_highlight ( ) const

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

Definition at line 214 of file winStatsLabel.cxx.

int WinStatsLabel::get_ideal_width ( ) const

Returns the width the label would really prefer to be.

Definition at line 179 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::add_label(), and WinStatsLabelStack::setup().

int WinStatsLabel::get_width ( ) const

Returns the width of the label as we requested it.

Definition at line 159 of file winStatsLabel.cxx.

int WinStatsLabel::get_x ( ) const

Returns the x position of the label on its parent.

Definition at line 139 of file winStatsLabel.cxx.

int WinStatsLabel::get_y ( ) const

Returns the y position of the label on its parent.

Definition at line 149 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::add_label().

void WinStatsLabel::set_highlight ( bool  highlight)

Enables or disables the visual highlight for this label.

Definition at line 200 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::highlight_label().

void WinStatsLabel::set_pos ( int  x,
int  y,
int  width 
)

Sets the position of the label on its parent.

The position describes the lower-left corner of the rectangle, not the upper-left.

Definition at line 125 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::add_label(), and WinStatsLabelStack::set_pos().

void WinStatsLabel::setup ( HWND  parent_window)

Creates the actual window.

Definition at line 97 of file winStatsLabel.cxx.

Referenced by WinStatsLabelStack::add_label(), and WinStatsLabelStack::setup().


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