#include <gtkStatsLabel.h>
Public Member Functions | |
| GtkStatsLabel (PStatMonitor *monitor, int collector_index, Gdk_Font font) | |
| This constructor automatically figures out the appropriate name and color for the label. | |
| int | get_width () const |
| Returns the width of the widget as we requested it. | |
| int | get_height () const |
| Returns the height of the widget as we requested it. | |
Public Attributes | |
| SigC::Signal1< void, int > | collector_picked |
Private Member Functions | |
| virtual gint | configure_event_impl (GdkEventConfigure *event) |
| Creates a new backing pixmap of the appropriate size. | |
| virtual gint | expose_event_impl (GdkEventExpose *event) |
| Redraw the text. | |
| virtual gint | button_press_event_impl (GdkEventButton *button) |
Private Attributes | |
| int | _collector_index |
| string | _text |
| Gdk_Font | _font |
| Gdk_Color | _fg_color |
| Gdk_Color | _bg_color |
| int | _width |
| int | _height |
| Gdk_GC | _gc |
| Gdk_GC | _reverse_gc |
It also throws a signal when the user double-clicks on it, passing in the collector index. This is handy for putting colored labels on strip charts.
Definition at line 48 of file gtkStatsLabel.h.
|
||||||||||||||||
|
This constructor automatically figures out the appropriate name and color for the label.
Definition at line 39 of file gtkStatsLabel.cxx. References RGBColorf. |
|
|
Definition at line 159 of file gtkStatsLabel.cxx. |
|
|
Creates a new backing pixmap of the appropriate size.
Definition at line 109 of file gtkStatsLabel.cxx. References _font, _gc, _reverse_gc, _text, height, and width. |
|
|
Redraw the text. We don't bother with clipping regions here, but just draw the whole text every time. Definition at line 138 of file gtkStatsLabel.cxx. |
|
|
Returns the height of the widget as we requested it.
Definition at line 96 of file gtkStatsLabel.cxx. References _gc, and _reverse_gc. |
|
|
Returns the width of the widget as we requested it.
Definition at line 83 of file gtkStatsLabel.cxx. References _height. |
|
|
Definition at line 69 of file gtkStatsLabel.h. |
|
|
Definition at line 64 of file gtkStatsLabel.h. |
|
|
Definition at line 68 of file gtkStatsLabel.h. |
|
|
Definition at line 67 of file gtkStatsLabel.h. Referenced by configure_event_impl(). |
|
|
Definition at line 74 of file gtkStatsLabel.h. Referenced by configure_event_impl(), and get_height(). |
|
|
Definition at line 72 of file gtkStatsLabel.h. Referenced by get_width(). |
|
|
Definition at line 75 of file gtkStatsLabel.h. Referenced by configure_event_impl(), and get_height(). |
|
|
Definition at line 66 of file gtkStatsLabel.h. Referenced by configure_event_impl(). |
|
|
Definition at line 71 of file gtkStatsLabel.h. |
|
|
Definition at line 56 of file gtkStatsLabel.h. |
1.3