TGGC


class description - source file - inheritance tree

class TGGC : public TObject


    protected:
void UpdateValues(GCValues_t* v) public:
TGGC TGGC(GCValues_t* values = 0) TGGC TGGC(const TGGC& g) virtual void ~TGGC() static TClass* Class() GContext_t GetGC() const virtual TClass* IsA() const GContext_t operator()() const TGGC& operator=(const TGGC& rhs) void SetArcMode(Int_t v) void SetAttributes(GCValues_t* values) void SetBackground(ULong_t v) void SetCapStyle(Int_t v) void SetClipMask(Pixmap_t v) void SetClipXOrigin(Int_t v) void SetClipYOrigin(Int_t v) void SetDashList(const char* v, Int_t len) void SetDashOffset(Int_t v) void SetFillRule(Int_t v) void SetFillStyle(Int_t v) void SetFont(FontH_t v) void SetForeground(ULong_t v) void SetFunction(EGraphicsFunction v) void SetGraphicsExposures(Bool_t v) void SetJoinStyle(Int_t v) void SetLineStyle(Int_t v) void SetLineWidth(Int_t v) void SetPlaneMask(ULong_t v) void SetStipple(Pixmap_t v) void SetSubwindowMode(Int_t v) void SetTile(Pixmap_t v) void SetTileStipXOrigin(Int_t v) void SetTileStipYOrigin(Int_t v) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
GCValues_t fValues graphics context values + mask GContext_t fContext graphics context handle Bool_t fDelete if true delete graphics context

Class Description

                                                                      
 TGGC and TGGCPool                                                    
                                                                      
 Encapsulate a graphics context used in the low level graphics.       
 TGGCPool provides a pool of graphics contexts.                       
                                                                      


TGGC(GCValues_t *values)
 Create a graphics context.

TGGC(const TGGC &g) : TObject(g)
 Copy a graphics context.

~TGGC()
 Delete graphics context.

void UpdateValues(GCValues_t *values)
 Update values + mask.

void SetAttributes(GCValues_t *values)
 Set attributes as specified in the values structure.

void SetFunction(EGraphicsFunction v)
 Set graphics context drawing function.

void SetPlaneMask(ULong_t v)
 Set plane mask.

void SetForeground(ULong_t v)
 Set foreground color.

void SetBackground(ULong_t v)
 Set background color.

void SetLineWidth(Int_t v)
 Set line width.

void SetLineStyle(Int_t v)
 Set line style (kLineSolid, kLineOnOffDash, kLineDoubleDash).

void SetCapStyle(Int_t v)
 Set cap style (kCapNotLast, kCapButt, kCapRound, kCapProjecting).

void SetJoinStyle(Int_t v)
 Set line join style (kJoinMiter, kJoinRound, kJoinBevel).

void SetFillStyle(Int_t v)
 Set fill style (kFillSolid, kFillTiled, kFillStippled,
 kFillOpaeueStippled).

void SetFillRule(Int_t v)
 Set fill rule (kEvenOddRule, kWindingRule).

void SetTile(Pixmap_t v)
 Set tile pixmap for tiling operations.

void SetStipple(Pixmap_t v)
 Set 1 plane pixmap for stippling.

void SetTileStipXOrigin(Int_t v)
 X offset for tile or stipple operations.

void SetTileStipYOrigin(Int_t v)
 Y offset for tile or stipple operations.

void SetFont(FontH_t v)
 Set font.

void SetSubwindowMode(Int_t v)
 Set sub window mode (kClipByChildren, kIncludeInferiors).

void SetGraphicsExposures(Bool_t v)
 True if graphics exposure should be generated.

void SetClipXOrigin(Int_t v)
 X origin for clipping.

void SetClipYOrigin(Int_t v)
 Y origin for clipping.

void SetClipMask(Pixmap_t v)
 Bitmap for clipping.

void SetDashOffset(Int_t v)
 Patterned/dashed line offset.

void SetDashList(const char v[], Int_t len)
 Set dash pattern. First use SetDashOffset() if not 0.

void SetArcMode(Int_t v)
 Set arc mode (kArcChord, kArcPieSlice).



Inline Functions


              TGGC& operator=(const TGGC& rhs)
         GContext_t GetGC() const
         GContext_t operator()() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Fons Rademakers 20/9/2000
Last update: root/gui:$Name: $:$Id: TGGC.cxx,v 1.4 2001/06/22 16:10:17 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.