14 #ifndef WINSTATSLABELSTACK_H 15 #define WINSTATSLABELSTACK_H 34 void setup(HWND parent_window);
36 void set_pos(
int x,
int y,
int width,
int height);
50 int thread_index,
int collector_index,
bool use_fullname);
56 void create_window(HWND parent_window);
57 static void register_window_class(HINSTANCE application);
59 static LONG WINAPI static_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
60 LONG window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
73 static bool _window_class_registered;
74 static const char *
const _window_class_name;
bool is_setup() const
Returns true if the label stack has been set up, false otherwise.
int get_y() const
Returns the y position of the stack on its parent.
void setup(HWND parent_window)
Creates the actual window object.
A text label that will draw in color appropriate for a particular collector.
int get_label_height(int label_index) const
Returns the height of the indicated label.
int get_ideal_width() const
Returns the width the stack would really prefer to be.
A window that contains a stack of labels from bottom to top.
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
void clear_labels()
Removes the set of labels and starts a new set.
This class represents a connection to a PStatsClient and manages the data exchange with the client.
int get_height() const
Returns the height of the stack as we requested it.
int add_label(WinStatsMonitor *monitor, WinStatsGraph *graph, int thread_index, int collector_index, bool use_fullname)
Adds a new label to the top of the stack; returns the new label index.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_label_y(int label_index) const
Returns the y position of the indicated label's bottom edge, relative to the label stack's parent win...
void set_pos(int x, int y, int width, int height)
Sets the position and size of the label stack on its parent.
int get_x() const
Returns the x position of the stack on its parent.
int get_width() const
Returns the width of the stack as we requested it.
void highlight_label(int collector_index)
Draws a highlight around the label representing the indicated collector, and removes the highlight fr...
int get_num_labels() const
Returns the number of labels in the stack.
int get_label_collector_index(int label_index) const
Returns the collector index associated with the indicated label.