###
#  This file was generated by VCL Generator
#  Copyright 1998 - Morgan Martinet
#  06/07/1999 07:58:54
#  it declares the symbols of the Delphi unit Graphics.pas
###

from System import *
from Classes import *
import _Graphics

# TFontPitch = ( fpDefault, fpVariable, fpFixed );
fpDefault = 0
fpVariable = 1
fpFixed = 2

# TFontStyle = ( fsBold, fsItalic, fsUnderline, fsStrikeOut );
fsBold = 0
fsItalic = 1
fsUnderline = 2
fsStrikeOut = 3

# TPenStyle = ( psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame );
psSolid = 0
psDash = 1
psDot = 2
psDashDot = 3
psDashDotDot = 4
psClear = 5
psInsideFrame = 6

# TPenMode = ( pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy, pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge, pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor );
pmBlack = 0
pmWhite = 1
pmNop = 2
pmNot = 3
pmCopy = 4
pmNotCopy = 5
pmMergePenNot = 6
pmMaskPenNot = 7
pmMergeNotPen = 8
pmMaskNotPen = 9
pmMerge = 10
pmNotMerge = 11
pmMask = 12
pmNotMask = 13
pmXor = 14
pmNotXor = 15

# TBrushStyle = ( bsSolid, bsClear, bsHorizontal, bsVertical, bsFDiagonal, bsBDiagonal, bsCross, bsDiagCross );
bsSolid = 0
bsClear = 1
bsHorizontal = 2
bsVertical = 3
bsFDiagonal = 4
bsBDiagonal = 5
bsCross = 6
bsDiagCross = 7

# TFillStyle = ( fsSurface, fsBorder );
fsSurface = 0
fsBorder = 1

# TFillMode = ( fmAlternate, fmWinding );
fmAlternate = 0
fmWinding = 1

# TCanvasStates = ( csHandleValid, csFontValid, csPenValid, csBrushValid );
csHandleValid = 0
csFontValid = 1
csPenValid = 2
csBrushValid = 3

# TCanvasOrientation = ( coLeftToRight, coRightToLeft );
coLeftToRight = 0
coRightToLeft = 1

# TProgressStage = ( psStarting, psRunning, psEnding );
psStarting = 0
psRunning = 1
psEnding = 2

# TBitmapHandleType = ( bmDIB, bmDDB );
bmDIB = 0
bmDDB = 1

# TPixelFormat = ( pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom );
pfDevice = 0
pf1bit = 1
pf4bit = 2
pf8bit = 3
pf15bit = 4
pf16bit = 5
pf24bit = 6
pf32bit = 7
pfCustom = 8

# TTransparentMode = ( tmAuto, tmFixed );
tmAuto = 0
tmFixed = 1

####################################################
class TGraphicsObject( TPersistent ):
    def Create( Self ):
        return _Graphics.CreateGraphicsObject( Self )

    def __getattr__( Self, Key ):
        return _Graphics.GraphicsObject_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.GraphicsObject_SetAttr( Self, Key, Value )

####################################################
class TFont( TGraphicsObject ):
    def Create( Self ):
        return _Graphics.CreateFont( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Font_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Font_SetAttr( Self, Key, Value )

####################################################
class TPen( TGraphicsObject ):
    def Create( Self ):
        return _Graphics.CreatePen( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Pen_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Pen_SetAttr( Self, Key, Value )

####################################################
class TBrush( TGraphicsObject ):
    def Create( Self ):
        return _Graphics.CreateBrush( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Brush_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Brush_SetAttr( Self, Key, Value )

####################################################
class TCanvas( TPersistent ):
    def Create( Self ):
        return _Graphics.CreateCanvas( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Canvas_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Canvas_SetAttr( Self, Key, Value )

####################################################
class TGraphic( TPersistent ):
    def Create( Self ):
        return _Graphics.CreateGraphic( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Graphic_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Graphic_SetAttr( Self, Key, Value )

####################################################
class TPicture( TPersistent ):
    def Create( Self ):
        return _Graphics.CreatePicture( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Picture_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Picture_SetAttr( Self, Key, Value )

####################################################
class TMetafileCanvas( TCanvas ):
    def Create( Self, AMetafile, ReferenceDevice ):
        return _Graphics.CreateMetafileCanvas( Self, AMetafile, ReferenceDevice )

    def CreateWithComment( Self, AMetafile, ReferenceDevice, CreatedBy, Description ):
        return _Graphics.CreateWithCommentMetafileCanvas( Self, AMetafile, ReferenceDevice, CreatedBy, Description )

    def __getattr__( Self, Key ):
        return _Graphics.MetafileCanvas_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.MetafileCanvas_SetAttr( Self, Key, Value )

####################################################
class TSharedImage(TObject):
    def Create( Self ):
        return _Graphics.CreateSharedImage( Self )

    def __getattr__( Self, Key ):
        return _Graphics.SharedImage_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.SharedImage_SetAttr( Self, Key, Value )

####################################################
class TMetafileImage( TSharedImage ):
    def Create( Self ):
        return _Graphics.CreateMetafileImage( Self )

    def __getattr__( Self, Key ):
        return _Graphics.MetafileImage_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.MetafileImage_SetAttr( Self, Key, Value )

####################################################
class TMetafile( TGraphic ):
    def Create( Self ):
        return _Graphics.CreateMetafile( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Metafile_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Metafile_SetAttr( Self, Key, Value )

####################################################
class TBitmapImage( TSharedImage ):
    def Create( Self ):
        return _Graphics.CreateBitmapImage( Self )

    def __getattr__( Self, Key ):
        return _Graphics.BitmapImage_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.BitmapImage_SetAttr( Self, Key, Value )

####################################################
class TBitmap( TGraphic ):
    def Create( Self ):
        return _Graphics.CreateBitmap( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Bitmap_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Bitmap_SetAttr( Self, Key, Value )

####################################################
class TIconImage( TSharedImage ):
    def Create( Self ):
        return _Graphics.CreateIconImage( Self )

    def __getattr__( Self, Key ):
        return _Graphics.IconImage_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.IconImage_SetAttr( Self, Key, Value )

####################################################
class TIcon( TGraphic ):
    def Create( Self ):
        return _Graphics.CreateIcon( Self )

    def __getattr__( Self, Key ):
        return _Graphics.Icon_GetAttr( Self, Key )

    def __setattr__( Self, Key, Value ):
        return _Graphics.Icon_SetAttr( Self, Key, Value )

