71#include "RConfigure.h"
152 for (
Int_t i = 0; i < 16; i++)
223 GetDefaultFrameBackground())
284 if (
gVirtualX->InheritsFrom(
"TGWin32")) {
336 if (
f &&
f !=
this) {
685 gClient->GetColorByName(colorname, color);
687 out << std::endl <<
" // color select widget" << std::endl;
688 out <<
" ULong_t " << cvar.
Data() <<
";" << std::endl;
689 out <<
" gClient->GetColorByName(" << quote << colorname << quote
690 <<
", " << cvar.
Data() <<
");" << std::endl;
692 out <<
" TGColorSelect *";
694 <<
", " << cvar.
Data() <<
", " <<
WidgetId() <<
");" << std::endl;
698 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
701 out <<
" " <<
GetName() <<
"->Disable();" << std::endl;
const Mask_t kWAOverrideRedirect
const Mask_t kButtonPressMask
Handle_t Window_t
Window handle.
Handle_t GContext_t
Graphics context handle.
const Mask_t kPointerMotionMask
const Mask_t kStructureNotifyMask
const Mask_t kButtonReleaseMask
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t TranslateCoordinates
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
The color creation and management class.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static const char * PixelAsHexString(ULong_t pixel)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
ULong_t GetPixel() const
Return pixel value corresponding to this color.
A composite frame with 16 TGColorFrames.
void SetActive(Int_t newat)
Set active color frame.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process messages for TG16ColorSelector.
TGColorFrame * fCe[16]
matrix of color cells
Int_t fActive
index of active color cell
virtual ~TG16ColorSelector()
TG16ColorSelector destructor.
const TGWindow * fMsgWindow
window handling container messages
TG16ColorSelector(const TG16ColorSelector &)=delete
Bool_t IsEditable() const
const TGResourcePool * GetResourcePool() const
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
A full featured color selection dialog.
A small frame with border showing a specific color.
Bool_t HandleButton(Event_t *event) override
Handle button events in TGColorFrame.
TGColorFrame(const TGColorFrame &)=delete
GContext_t fGrayGC
Shadow GC.
const TGWindow * fMsgWindow
window handling container messages
void SetActive(Bool_t in)
void DrawBorder() override
Draw TGColorFrame border.
Bool_t fActive
kTRUE if this color cell is active
Pixel_t fPixel
color value of this cell
Pixel_t fColor
returned color value
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
TGColorPopup * fColorPopup
color popup associated
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process messages for TGColorSelect.
virtual void AlphaColorSelected(ULong_t colptr=0)
void DoRedraw() override
Redraw TGColorSelect widget.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a color select widget as a C++ statement(s) on output stream out.
Pixel_t fColor
color value of the button
virtual ~TGColorSelect()
TGColorSelect destructor.
TGColorSelect(const TGColorSelect &)=delete
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
TGPosition fPressPos
position of frame on button press event
Bool_t HandleButton(Event_t *event) override
Handle button events for TGColorSelect.
void Enable(Bool_t on=kTRUE)
Set state of widget as enabled.
virtual void ColorSelected(Pixel_t color=0)
void SetAlphaColor(ULong_t color, Bool_t emit=kTRUE)
Set color.
void Disable()
Set state of widget as disabled.
void DrawTriangle(GContext_t gc, Int_t x, Int_t y)
Draw triangle (arrow) on which user can click to open TGColorPopup.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
UInt_t GetDefaultWidth() const override
TGFrame * GetFrameFromPoint(Int_t x, Int_t y) override
Get frame located at specified point.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
UInt_t GetDefaultHeight() const override
void Layout() override
Layout the elements of the composite frame.
void SetEditDisabled(UInt_t on=1) override
Set edit disable flag for this frame and subframes.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
static const TGGC & GetBlackGC()
Get black graphics context.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fHeight
frame height
virtual UInt_t GetDefaultHeight() const
virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw 3D rectangle on the frame border.
Int_t fBorderWidth
frame border width
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void DoRedraw() override
Redraw the frame.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
virtual void DeleteWindow()
Delete window.
void UnmapWindow() override
unmap window
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual Bool_t HandleButton(Event_t *)
static const TGGC & GetBckgndGC()
Get background color graphics context.
void MapRaised() override
map raised
void SetForeground(Pixel_t v)
Set foreground color.
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
This class describes layout hints used by the layout classes.
This layout managers does not make use of TGLayoutHints.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
const TGGC * GetFrameGC() const
Cursor_t GetGrabCursor() const
Yield an action as soon as it is clicked.
ROOT GUI Window base class.
const TGWindow * fParent
Parent window.
@ kEditDisable
disable edit of this window
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Point structure (maps to the X11 XPoint structure)
Attributes that can be used when creating or changing a window.
Bool_t fOverrideRedirect
boolean value for override-redirect
Mask_t fMask
bit mask specifying which fields are valid