14 #ifndef WINSTATSLABEL_H 15 #define WINSTATSLABEL_H 32 int thread_index,
int collector_index,
bool use_fullname);
35 void setup(HWND parent_window);
36 void set_pos(
int x,
int y,
int width);
50 void set_mouse_within(
bool mouse_within);
52 void create_window(HWND parent_window);
53 static void register_window_class(HINSTANCE application);
55 static LONG WINAPI static_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
56 LONG window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
67 HBRUSH _highlight_brush;
77 static int _left_margin, _right_margin;
78 static int _top_margin, _bottom_margin;
80 static bool _window_class_registered;
81 static const char *
const _window_class_name;
int get_x() const
Returns the x position of the label on its parent.
int get_height() const
Returns the height of the label as we requested it.
A text label that will draw in color appropriate for a particular collector.
int get_width() const
Returns the width of the label as we requested it.
void set_highlight(bool highlight)
Enables or disables the visual highlight for this label.
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.
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
This class represents a connection to a PStatsClient and manages the data exchange with the client.
int get_collector_index() const
Returns the collector this label represents.
int get_y() const
Returns the y position of the label on its parent.
void setup(HWND parent_window)
Creates the actual window.
void set_pos(int x, int y, int width)
Sets the position of the label on its parent.