43 #include "RConfigure.h"    63                                    int width, 
int height)
    67    gClient->GetColorByName(
"white", white); 
    82    if (pattern != 0 && pattern != 1001)
    84    else if (pattern == 0)
   164    Int_t fasi  = fstyle%1000;
   165    Int_t stn = (fasi >= 1 && fasi <=25) ? fasi : 2;
   177          if (fillPattern != 0) {
   199    for (i = 1; i <= 25; i++)
   205    for (i = 0; i < 27; i++)
   332       if (f && f != 
this) {
   422    gClient->GetColorByName(
"white", white); 
   511       y = fBorderWidth + 1;
   512       h = 
fHeight - fBorderWidth - 1;  
   522       x = 
fWidth - 6 - fBorderWidth - 2;
   533       y = fBorderWidth + 1;
   534       h = 
fHeight - fBorderWidth - 1;  
   542       x = 
fWidth - 6 - fBorderWidth - 2;
   560    points[1].
fX = x + 6;
   562    points[2].
fX = x + 3;
   563    points[2].
fY = y + 3;
   567    points[1].
fX = x + 5;
   569    points[2].
fX = x + 2;
   570    points[2].
fY = y + 3;
   625       gClient->GetColorByName(
"white", white); 
   642       gClient->GetColorByName(
"white", white); 
   678    out <<
"   TGedPatternSelect *";
 
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame. 
 
Cursor_t GetGrabCursor() const
 
TGedPatternFrame * fCe[27]
 
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame. 
 
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle. 
 
void SetForeground(Pixel_t v)
Set foreground color. 
 
static const TGGC & GetHilightGC()
Get highlight color graphics context. 
 
const Mask_t kLeaveWindowMask
 
const TGResourcePool * GetResourcePool() const
 
virtual Bool_t TranslateCoordinates(TGFrame *child, Int_t x, Int_t y, Int_t &fx, Int_t &fy)
Translate coordinates to child frame. 
 
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame. 
 
const Mask_t kGCLineStyle
 
virtual void PatternSelected(Style_t pattern=0)
 
virtual UInt_t GetDefaultHeight() const
 
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse crossing event. 
 
virtual void Layout()
Layout the elements of the composite frame. 
 
virtual void DoRedraw()
Redraw selected pattern. 
 
const Mask_t kPointerMotionMask
 
virtual void DoRedraw()
Redraw the frame. 
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background. 
 
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message according to the user input. 
 
virtual ~TGedPatternSelector()
Delete pattern popup window. 
 
TGedSelect(const TGWindow *p, Int_t id)
Create pattern select button. 
 
const Mask_t kGCLineWidth
 
virtual void SetPopup(TGedPopup *p)
 
virtual void DoRedraw()
Draw selected pattern as current one. 
 
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e. 
 
virtual void DrawBorder()
Draw border. 
 
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class). 
 
void FreeGC(const TGGC *gc)
Free a graphics context. 
 
const TGWindow * fMsgWindow
 
static void SetFillStyle(TGGC *gc, Style_t fstyle)
Set fill area style. 
 
void SetStipple(Pixmap_t v)
Set 1 plane pixmap for stippling. 
 
virtual void Disable()
Clear widget state flag. 
 
const Mask_t kButtonPressMask
 
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
Get frame located at specified point. 
 
virtual UInt_t GetDefaultWidth() const
 
const Mask_t kWASaveUnder
 
TGedPatternFrame(const TGWindow *p, Style_t pattern, Int_t width=40, Int_t height=20)
Pattern select ctor. 
 
void SetFillStyle(Int_t v)
Set fill style (kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled). 
 
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods. 
 
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save the pattern select widget as a C++ statement(s) on output stream out. 
 
void SetPattern(Style_t pattern, Bool_t emit=kTRUE)
Set pattern. 
 
static const TGGC & GetBlackGC()
Get black graphics context. 
 
const unsigned char gStipples[26][32]
 
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message generated by pattern popup window. 
 
virtual void DoRedraw()
Draw separator and arrow. 
 
TGedPatternSelect(const TGWindow *p, Style_t pattern, Int_t id)
Create and pop up pattern select window. 
 
virtual void Enable()
Set widget state flag (kTRUE=enabled, kFALSE=disabled). 
 
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event. 
 
const Mask_t kEnterWindowMask
 
void SetActive(Bool_t in)
 
const Mask_t kGCFillStyle
 
const Mask_t kStructureNotifyMask
 
const Mask_t kButtonReleaseMask
 
const Mask_t kWAOverrideRedirect
 
void DrawTriangle(GContext_t gc, Int_t x, Int_t y)
Draw small triangle. 
 
virtual Bool_t HandleButton(Event_t *)
 
const Mask_t kGCForeground
 
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints. 
 
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame. 
 
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button events in pattern select button. 
 
virtual void UnmapWindow()
 
const Mask_t kGCBackground
 
const TGWindow * GetDefaultRoot() const
Returns the root (i.e. 
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags. 
 
void SetActive(Int_t newat)
Set selected the current style. 
 
virtual ~TGedSelect()
Destructor of pattern select button. 
 
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. 
 
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame. 
 
static const TGGC & GetShadowGC()
Get shadow color graphics context. 
 
static const TGGC & GetBckgndGC()
Get background color graphics context. 
 
const TGWindow * fMsgWindow
 
TGedPatternSelector(const TGWindow *p)
Create pattern popup window.