Panda3D
|
A text label that will draw in color appropriate for a particular collector. More...
#include "winStatsLabel.h"
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. | |
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.
WinStatsLabel::WinStatsLabel | ( | WinStatsMonitor * | monitor, |
WinStatsGraph * | graph, | ||
int | thread_index, | ||
int | collector_index, | ||
bool | use_fullname ) |
Definition at line 29 of file winStatsLabel.cxx.
WinStatsLabel::~WinStatsLabel | ( | ) |
Definition at line 77 of file winStatsLabel.cxx.
int WinStatsLabel::get_collector_index | ( | ) | const |
Returns the collector this label represents.
Definition at line 166 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 150 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 185 of file winStatsLabel.cxx.
int WinStatsLabel::get_ideal_width | ( | ) | const |
Returns the width the label would really prefer to be.
Definition at line 158 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 142 of file winStatsLabel.cxx.
int WinStatsLabel::get_x | ( | ) | const |
Returns the x position of the label on its parent.
Definition at line 126 of file winStatsLabel.cxx.
int WinStatsLabel::get_y | ( | ) | const |
Returns the y position of the label on its parent.
Definition at line 134 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 174 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 114 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 89 of file winStatsLabel.cxx.
Referenced by WinStatsLabelStack::add_label(), and WinStatsLabelStack::setup().