15 #ifndef GTKSTATSLABEL_H
16 #define GTKSTATSLABEL_H
18 #include "pandatoolbase.h"
35 int thread_index,
int collector_index,
bool use_fullname);
47 void set_mouse_within(
bool mouse_within);
48 static gboolean expose_event_callback(GtkWidget *widget,
49 GdkEventExpose *event, gpointer data);
50 static gboolean enter_notify_event_callback(GtkWidget *widget,
51 GdkEventCrossing *event,
53 static gboolean leave_notify_event_callback(GtkWidget *widget,
54 GdkEventCrossing *event,
56 static gboolean button_press_event_callback(GtkWidget *widget,
57 GdkEventButton *event,
81 static int _left_margin, _right_margin;
82 static int _top_margin, _bottom_margin;
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.
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
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...
GtkWidget * get_widget() const
Returns the widget for this label.
A text label that will draw in color appropriate for a particular collector.
int get_height() const
Returns the height of the label as we requested it.