wxArt2D
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members

Filling using a wxbitmap. More...

Inheritance diagram for a2dPatternFillData:
Inheritance graph
[legend]
Collaboration diagram for a2dPatternFillData:
Collaboration graph
[legend]

Public Member Functions

virtual a2dFillType GetType (void) const
 
- Public Member Functions inherited from a2dFillRefData
 a2dFillRefData ()
 constructor
 
 a2dFillRefData (const a2dFillRefData &other)
 

Protected Member Functions

 a2dPatternFillData ()
 constructor
 
 a2dPatternFillData (const a2dPatternFillData &other)
 constructor
 
 a2dPatternFillData (const wxBitmap &stipple, a2dFillStyle style=a2dFILL_STIPPLE)
 constructor More...
 
 a2dPatternFillData (const wxFileName &filename, a2dFillStyle style=a2dFILL_STIPPLE)
 
 ~a2dPatternFillData (void)
 destructor
 
void SetStipple (const wxBitmap &stipple)
 set stipple style
 
const wxBitmap & GetStipple () const
 
wxString GetFileName ()
 can contain the filename if pattern was read froma file More...
 
a2dFillStyle GetStyle () const
 
void SetStyle (a2dFillStyle style)
 
virtual void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 Load settings.
 
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 Save settings.
 
- Protected Member Functions inherited from a2dTwoColourFillData
 a2dTwoColourFillData (void)
 constructor
 
 a2dTwoColourFillData (const a2dTwoColourFillData &fill)
 
 a2dTwoColourFillData (const wxColour &col, const wxColour &col2, a2dFillStyle style)
 constructor
 
 ~a2dTwoColourFillData (void)
 destructor
 
a2dFillStyle GetStyle (void) const
 
void SetStyle (a2dFillStyle style)
 
void SetColour2 (const wxColour &col)
 set colour 2 used for gradient and wxSTIPPLE_MASK_OPAQUE filling.
 
wxColour GetColour2 () const
 return colour 2
 
void SetColour (const wxColour &col)
 set colour used for gradient and wxSTIPPLE_MASK_OPAQUE filling.
 
wxColour GetColour () const
 return colour
 

Protected Attributes

wxBitmap m_stipple
 
wxString m_filename
 
- Protected Attributes inherited from a2dTwoColourFillData
wxColour m_colour1
 used for gradient fill or text background or opaque filling
 
wxColour m_colour2
 used for gradient fill or text background or opaque filling
 
a2dFillStyle m_style
 style of Fill
 

Friends

class a2dFill
 

Additional Inherited Members

- Public Attributes inherited from a2dFillRefData
bool m_fillOn
 if true filling is done, else transparent fill
 

Detailed Description

Filling using a wxbitmap.

To Fill shapes with a bitmap. a2dFILL_STIPPLE In case a wxMask is set, to do transparent stipple drawing use style a2dFILL_STIPPLE_MASK_OPAQUE_TRANSPARENT. The fill colour1 will be used for non Transparent parts in the brush bitmap, while other parts will be transparent. In case a wxMask is set, use style wxSTIPPLE_MASK_OPAQUE to use colour1 and colour2 to fill with the wxMask in those colours.

Definition at line 4321 of file stylebase.cpp.

Constructor & Destructor Documentation

a2dPatternFillData::a2dPatternFillData ( const wxBitmap &  stipple,
a2dFillStyle  style = a2dFILL_STIPPLE 
)
protected

constructor

Parameters
stipplebitmap for stippling the primitive drawn.
stylecan be a2dFILL_STIPPLE a2dFILL_STIPPLE_MASK_OPAQUE, a2dFILL_STIPPLE_MASK_OPAQUE_TRANSPARENT

Definition at line 4387 of file stylebase.cpp.

Member Function Documentation

wxString a2dPatternFillData::GetFileName ( )
inlineprotected

can contain the filename if pattern was read froma file

Certain input formats ( Like CVG ) can hold the path to the pattern.

Definition at line 4361 of file stylebase.cpp.

Member Data Documentation

wxString a2dPatternFillData::m_filename
protected

if the pattern was loaded from a file, this contains the path to this file. a2dGlobals->GetImagePathList() contains the search path for the file.

Definition at line 4376 of file stylebase.cpp.


The documentation for this class was generated from the following file:
a2dPatternFillData Class Reference -- Sun Oct 12 2014 17:04:44 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation