|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGColorNumberSelect.hh>
Public Member Functions | |
| RGColorNumberSelect (TGWindow *p, Color_t c=1, Int_t w=3, Int_t sep=4) | |
| virtual | ~RGColorNumberSelect () |
| virtual void | SetState (const Bool_t b=kTRUE) |
| Color_t | GetColorNumber () const |
| Pixel_t | GetColorPixel () const |
| void | SetColorNumber (const Color_t c, const Bool_t emit=kTRUE) |
| void | SetColorPixel (const Pixel_t c, const Bool_t emit=kTRUE) |
| TGNumberEntry * | GetColorNumberWidget () const |
| TGColorSelect * | GetColorSelectWidget () const |
| virtual void | ColorChanged (Color_t c) |
| void | ColorNumberEntryChanged (const char *str) |
| void | ColorPixelSelected (ULong_t pixel) |
| ClassDef (RGColorNumberSelect, 0) | |
Protected Attributes | |
| Color_t | color |
| Color number. | |
| TGNumberEntry * | w_number_entry |
| Pointer to color number entry field. | |
| TGColorSelect * | w_color_select |
| Pointer to color selection widget. | |
Private Member Functions | |
| GObject (RGColorNumberSelect) | |
| RGColorNumberSelect (const RGColorNumberSelect &original) | |
Widget for color selection, from color number or from a selection widget (TGColorSelect).
| RGColorNumberSelect::RGColorNumberSelect | ( | TGWindow * | p, |
| Color_t | c = 1, |
||
| Int_t | w = 3, |
||
| Int_t | sep = 4 |
||
| ) |
Constructor.
| p | parent widget |
| c | initial color number |
| w | numerical field width (number of digits) |
| sep | separation between numerical field and selector |
References color, w_color_select, and w_number_entry.
|
private |
Copy constructor, not implemented.
| original | object to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Set the widget state (active/inactive)
| b | state |
References w_color_select, and w_number_entry.
Referenced by RGFillAttrSelect::SetState(), RGMarkerAttrSelect::SetState(), and RGLineAttrSelect::SetState().
|
inline |
Return selected color number.
References color.
Referenced by RGFillAttrSelect::GetFillColor(), RGLineAttrSelect::GetLineColor(), and RGMarkerAttrSelect::GetMarkerColor().
|
inline |
Return selected color code.
References color.
| void RGColorNumberSelect::SetColorNumber | ( | const Color_t | c, |
| const Bool_t | emit = kTRUE |
||
| ) |
Select a new color from its color number.
| c | color number |
| emit | flag if signal must be emitted |
References color, ColorChanged(), w_color_select, and w_number_entry.
Referenced by RGFillAttrSelect::SetFillColor(), RGLineAttrSelect::SetLineColor(), and RGMarkerAttrSelect::SetMarkerColor().
| void RGColorNumberSelect::SetColorPixel | ( | const Pixel_t | c, |
| const Bool_t | emit = kTRUE |
||
| ) |
Select a new color from its color code.
| c | color code |
| emit | flag if signal must be emitted |
References color, ColorChanged(), w_color_select, and w_number_entry.
Referenced by RGFillAttrSelect::SetFillColorPixel(), RGLineAttrSelect::SetLineColorPixel(), and RGMarkerAttrSelect::SetMarkerColorPixel().
|
inline |
Get the pointer to number entry field widget.
References w_number_entry.
|
inline |
Get the pointer to color selection widget.
References w_color_select.
|
inlinevirtual |
Signal sent when a color is selected.
| c | selected color |
Referenced by ColorNumberEntryChanged(), ColorPixelSelected(), SetColorNumber(), and SetColorPixel().
| void RGColorNumberSelect::ColorNumberEntryChanged | ( | const char * | str | ) |
Slot called when color number is changed.
References color, ColorChanged(), w_color_select, and w_number_entry.
| void RGColorNumberSelect::ColorPixelSelected | ( | ULong_t | pixel | ) |
Slot called when color selection is changed.
References color, ColorChanged(), and w_number_entry.
| RGColorNumberSelect::ClassDef | ( | RGColorNumberSelect | , |
| 0 | |||
| ) |
For ROOT dictionary.