14 #ifndef WINSTATSLABEL_H
15 #define WINSTATSLABEL_H
19 #ifndef WIN32_LEAN_AND_MEAN
20 #define WIN32_LEAN_AND_MEAN 1
35 int thread_index,
int collector_index,
bool use_fullname);
38 void setup(HWND parent_window);
39 void set_pos(
int x,
int y,
int width);
53 void set_mouse_within(
bool mouse_within);
55 void create_window(HWND parent_window);
56 static void register_window_class(HINSTANCE application);
58 static LONG WINAPI static_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
59 LONG window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
70 HBRUSH _highlight_brush;
80 static int _left_margin, _right_margin;
81 static int _top_margin, _bottom_margin;
83 static bool _window_class_registered;
84 static const char *
const _window_class_name;
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
A text label that will draw in color appropriate for a particular collector.
void setup(HWND parent_window)
Creates the actual window.
int get_y() const
Returns the y position of the label on its parent.
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.
bool get_highlight() const
Returns true if the visual highlight for this label is enabled.
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.
void set_pos(int x, int y, int width)
Sets the position of the label on its parent.
void set_highlight(bool highlight)
Enables or disables the visual highlight for this label.
This class represents a connection to a PStatsClient and manages the data exchange with the client.