12#ifndef ROOT_TGedPatternSelect
13#define ROOT_TGedPatternSelect
135 {
Emit(
"PatternSelected(Style_t)", pattern ? pattern :
GetPattern()); }
Handle_t GContext_t
Graphics context handle.
ULong_t Pixel_t
Pixel value.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t SetFillStyle
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
The base class for composite widgets (menu bars, list boxes, etc.).
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Encapsulate a graphics context used in the low level graphics.
ROOT GUI Window base class.
The TGedPatternFrame is a small frame with border showing a specific pattern (fill style.
void SetActive(Bool_t in)
Bool_t HandleCrossing(Event_t *event) override
Handle mouse crossing event.
~TGedPatternFrame() override
const TGWindow * fMsgWindow
Bool_t HandleButton(Event_t *event) override
Handle mouse button event.
void DrawBorder() override
Draw border.
TGToolTip * fTip
tool tip associated with a button
Style_t GetPattern() const
void DoRedraw() override
Redraw selected pattern.
is a button with pattern area with a little down arrow.
void DoRedraw() override
Draw selected pattern as current one.
~TGedPatternSelect() override
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process message according to the user input.
virtual void PatternSelected(Style_t pattern=0)
Style_t GetPattern() const
void SetPattern(Style_t pattern, Bool_t emit=kTRUE)
Set pattern.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save the pattern select widget as a C++ statement(s) on output stream out.
TGDimension GetDefaultSize() const override
default size
The TGedPatternSelector is a composite frame with TGedPatternFrames of all diferent styles.
void SetActive(Int_t newat)
Set selected the current style.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process message generated by pattern popup window.
const TGWindow * fMsgWindow
~TGedPatternSelector() override
Delete pattern popup window.
TGedPatternFrame * fCe[27]
is button that shows popup window when clicked.
void DoRedraw() override
Draw separator and arrow.
void DrawTriangle(GContext_t gc, Int_t x, Int_t y)
Draw small triangle.
virtual void Enable()
Set widget state flag (kTRUE=enabled, kFALSE=disabled).
~TGedSelect() override
Destructor of pattern select button.
Bool_t HandleButton(Event_t *event) override
Handle mouse button events in pattern select button.
virtual void Disable()
Clear widget state flag.
virtual void SetPopup(TGedPopup *p)
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.