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.  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_ideal_width () const | 
| Returns the width the label would really prefer to be.  More... | |
| int | get_width () const | 
| Returns the width of the label as we requested it.  More... | |
| int | get_x () const | 
| Returns the x position of the label on its parent.  More... | |
| int | get_y () const | 
| Returns the y position of the label on its parent.  More... | |
| void | set_highlight (bool highlight) | 
| Enables or disables the visual highlight for this label.  More... | |
| void | set_pos (int x, int y, int width) | 
| Sets the position of the label on its parent.  More... | |
| void | setup (HWND parent_window) | 
| Creates the actual window.  More... | |
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 winStatsLabel.h.
| int WinStatsLabel::get_collector_index | ( | ) | const | 
Returns the collector this label represents.
Definition at line 167 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 151 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 186 of file winStatsLabel.cxx.
| int WinStatsLabel::get_ideal_width | ( | ) | const | 
Returns the width the label would really prefer to be.
Definition at line 159 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 143 of file winStatsLabel.cxx.
| int WinStatsLabel::get_x | ( | ) | const | 
Returns the x position of the label on its parent.
Definition at line 127 of file winStatsLabel.cxx.
| int WinStatsLabel::get_y | ( | ) | const | 
Returns the y position of the label on its parent.
Definition at line 135 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 175 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 115 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 90 of file winStatsLabel.cxx.
Referenced by WinStatsLabelStack::add_label(), and WinStatsLabelStack::setup().
 1.8.15