#include "wx/wx.h"
#include <wx/fontenc.h>
#include <wx/encconv.h>
#include <wx/bitmap.h>
#include "a2dprivate.h"
#include "wx/txtstrm.h"
#include "wx/geometry.h"
#include <map>
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_GLYPH_H>
#include "wx/general/gen.h"
#include "wx/xmlparse/genxmlpars.h"
#include "wx/artbase/artglob.h"
#include "wx/artbase/liner.h"
#include "wx/artbase/afmatrix.h"
#include "wx/artbase/bbox.h"


Go to the source code of this file.
Classes | |
| class | a2dFill |
| class | a2dStroke |
| Base class for all types of strokes, understood by a2dDrawer2D classes. More... | |
| class | a2dCharHash |
| wxChar hashing function, used in hash maps. More... | |
| class | a2dCharEqual |
| wxChar equality class, used in hash maps. More... | |
| struct | a2dGlyph |
| holes one glyph from a freetype font. More... | |
| class | a2dFontInfo |
| Font info class, used as a single element for enumerating fonts. More... | |
| class | a2dFont |
| Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc. More... | |
| class | a2dFreetypeModule |
| initiates Freetype library More... | |
| class | a2dFillProperty |
| property to hold a a2dFill type variable to be associated with a a2dPropObject More... | |
| class | a2dStrokeProperty |
| property to hold a a2dStroke type variable to be associated with a a2dPropObject More... | |
| class | a2dFontProperty |
| property to hold a a2dFont type variable to be associated with a a2dPropObject More... | |
Defines | |
| #define | FTNORMFONT 1000 |
| Normalisation factor used for freetype fonts. | |
| #define | NORMFONT 100 |
| Normalisation factor used for DC fonts. | |
| #define | UNKNOWN_YAXIS 2 |
Typedefs | |
| typedef float | a2dDash |
| typedef int | wxPenJoin |
| typedef int | wxPenCap |
| typedef int | wxPolygonFillMode |
| typedef int | wxRasterOperationMode |
| typedef a2dVertexList ** | a2dStrokeGlyph |
| A list of pointers to vertexlists. Ends with NULL. | |
|
typedef a2dPropertyIdTyped < a2dFill, a2dFillProperty > | a2dPropertyIdFill |
|
typedef a2dPropertyIdTyped < a2dStroke, a2dStrokeProperty > | a2dPropertyIdStroke |
|
typedef a2dPropertyIdTyped < a2dFont, a2dFontProperty > | a2dPropertyIdFont |
Enumerations | |
| enum | a2dFillStyle { a2dFILL_TRANSPARENT, a2dFILL_SOLID, a2dFILL_BDIAGONAL_HATCH, a2dFILL_CROSSDIAG_HATCH, a2dFILL_FDIAGONAL_HATCH, a2dFILL_CROSS_HATCH, a2dFILL_HORIZONTAL_HATCH, a2dFILL_VERTICAL_HATCH, a2dFIRST_HATCH = a2dFILL_BDIAGONAL_HATCH, a2dLAST_HATCH = a2dFILL_VERTICAL_HATCH, a2dFILL_TWOCOL_BDIAGONAL_HATCH, a2dFILL_TWOCOL_CROSSDIAG_HATCH, a2dFILL_TWOCOL_FDIAGONAL_HATCH, a2dFILL_TWOCOL_CROSS_HATCH, a2dFILL_TWOCOL_HORIZONTAL_HATCH, a2dFILL_TWOCOL_VERTICAL_HATCH, a2dFIRST_TWOCOL_HATCH = a2dFILL_TWOCOL_BDIAGONAL_HATCH, a2dLAST_TWOCOL_HATCH = a2dFILL_TWOCOL_VERTICAL_HATCH, a2dFILL_STIPPLE, a2dFILL_STIPPLE_MASK_OPAQUE, a2dFILL_STIPPLE_MASK_OPAQUE_TRANSPARENT, a2dFILL_GRADIENT_FILL_XY_LINEAR, a2dFILL_GRADIENT_FILL_XY_RADIAL, a2dFILL_GRADIENT_FILL_XY_DROP, a2dFILL_INHERIT, a2dFILL_LAYER, a2dFILL_NULLFILL } |
| Filling styles for a2dFill. More... | |
| enum | a2dFillType { a2dFILL_NULL, a2dFILL_ONE_COLOUR, a2dFILL_HATCH_TWO_COLOUR, a2dFILL_GRADIENT_FILL_LINEAR, a2dFILL_GRADIENT_FILL_RADIAL, a2dFILL_BITMAP } |
| for a2dFill to define the type of filling. More... | |
| enum | a2dStrokeStyle { a2dSTROKE_TRANSPARENT, a2dSTROKE_SOLID, a2dSTROKE_DOT, a2dSTROKE_LONG_DASH, a2dSTROKE_SHORT_DASH, a2dSTROKE_DOT_DASH, a2dSTROKE_USER_DASH, a2dSTROKE_BDIAGONAL_HATCH, a2dSTROKE_CROSSDIAG_HATCH, a2dSTROKE_FDIAGONAL_HATCH, a2dSTROKE_CROSS_HATCH, a2dSTROKE_HORIZONTAL_HATCH, a2dSTROKE_VERTICAL_HATCH, a2dSTROKE_STIPPLE, a2dSTROKE_STIPPLE_MASK_OPAQUE, a2dSTROKE_STIPPLE_MASK_OPAQUE_TRANSPARENT, a2dSTROKE_OBJECTS, a2dSTROKE_INHERIT, a2dSTROKE_LAYER, a2dSTROKE_NULLSTROKE } |
| stroke styles for a2dStroke More... | |
| enum | a2dStrokeType { a2dSTROKE_NULL, a2dSTROKE_OBJECT, a2dSTROKE_NORMAL, a2dSTROKE_ONE_COLOUR, a2dSTROKE_BITMAP } |
| enum | wxBrushStyle { wxBRUSHSTYLE_INVALID = -1, wxBRUSHSTYLE_SOLID = wxSOLID, wxBRUSHSTYLE_TRANSPARENT = wxTRANSPARENT, wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE = wxSTIPPLE_MASK_OPAQUE, wxBRUSHSTYLE_STIPPLE_MASK = wxSTIPPLE_MASK, wxBRUSHSTYLE_STIPPLE = wxSTIPPLE, wxBRUSHSTYLE_BDIAGONAL_HATCH = wxBDIAGONAL_HATCH, wxBRUSHSTYLE_CROSSDIAG_HATCH = wxCROSSDIAG_HATCH, wxBRUSHSTYLE_FDIAGONAL_HATCH = wxFDIAGONAL_HATCH, wxBRUSHSTYLE_CROSS_HATCH = wxCROSS_HATCH, wxBRUSHSTYLE_HORIZONTAL_HATCH = wxHORIZONTAL_HATCH, wxBRUSHSTYLE_VERTICAL_HATCH = wxVERTICAL_HATCH, wxBRUSHSTYLE_FIRST_HATCH = wxFIRST_HATCH, wxBRUSHSTYLE_LAST_HATCH = wxLAST_HATCH } |
| enum | a2dFontType { a2dFONT_NULL, a2dFONT_WXDC, a2dFONT_FREETYPE, a2dFONT_STROKED } |
| enum | a2dFontAlignment { wxMINX = wxLEFT, wxMAXX = wxRIGHT, wxMINY = wxBOTTOM, wxMAXY = wxTOP, wxBBOX = 0x100, a2dDEFAULT_ALIGNMENT = wxTOP | wxLEFT | wxBBOX } |
Functions | |
| WX_DECLARE_HASH_MAP_WITH_DECL (wxChar, a2dGlyph, a2dCharHash, a2dCharEqual, a2dGlyphHash, class) | |
| WX_DECLARE_HASH_MAP_WITH_DECL (wxChar, double, a2dCharHash, a2dCharEqual, DcWidthHash, class) | |
| WX_DECLARE_HASH_MAP_WITH_DECL (wxString, double, wxStringHash, wxStringEqual, DcKerningHash, class) | |
| WX_DECLARE_LIST_WITH_DECL (a2dFontInfo, a2dFontInfoList, class) | |
| void | a2dCanvasInitializeStockObjects () |
| to initialize stock style ( a2dStroke a2dFill ) objects. | |
| void | a2dCanvasDeleteStockObjects () |
| to delete stock style ( a2dStroke a2dFill ) objects. | |
Variables | |
| a2dPropertyIdColour | PROPID_colour |
| General colour property id. | |
| const a2dFill * | a2dWHITE_FILL |
| global a2dFill stock object for WHITE filling | |
| const a2dFill * | a2dBLACK_FILL |
| global a2dFill stock object for BLACK filling | |
| const a2dFill * | a2dTRANSPARENT_FILL |
| global a2dFill stock object for TRANSPARENT filling | |
| const a2dFill * | a2dINHERIT_FILL |
| global a2dFill stock object for INHERTED from parent object filling | |
| const a2dFill * | a2dSELECT_FILL |
| global a2dFill stock object for drawing fill of selected objects | |
| const a2dFill * | a2dNullFILL |
| global a2dFill stock object for defining NO filling | |
| const a2dStroke * | a2dBLACK_STROKE |
| global a2dStroke stock object for BLACK stroking | |
| const a2dStroke * | a2dWHITE_STROKE |
| global a2dStroke stock object for WHITE stroking | |
| const a2dStroke * | a2dTRANSPARENT_STROKE |
| global a2dStroke stock object for TRANSPARENT stroking | |
| const a2dStroke * | a2dINHERIT_STROKE |
| global a2dStroke stock object for INHERTED from parent object stroking | |
| const a2dStroke * | a2dNullSTROKE |
| global a2dStroke stock object for NO stroking | |
| const a2dStroke * | a2dLAYER_SELECT_STROKE |
| global a2dStroke stock object for SELECTED object stroking | |
| const a2dFont * | a2dNullFONT |
| global a2dFont stock object for NO font | |
| const a2dFont * | a2dDEFAULT_CANVASFONT |
| global a2dFont stock object for default font | |
| class A2DGENERALDLLEXP | a2dFillProperty |
| class A2DGENERALDLLEXP | a2dStrokeProperty |
| class A2DGENERALDLLEXP | a2dFontProperty |
Holds style classes, derived from a2dObject. All wxDrawer2D understand the style classes which are set as a2dStroke a2dFill to them. Style classes can be added to a2dCanvasObject's as properties, and this is how these object can be drawn colours which are customizable by the user.
Copyright: 2000-2004 (c) Klaas Holwerda
Licence: wxWidgets Licence
RCS-ID:
Definition in file stylebase.h.
| enum a2dStrokeType |
stroke types TODO ( only Xwindows ) a2dPatternStroke(const wxBitmap& stipple, double width); TODO ( only Xwindows ) a2dPatternStroke(const wxBitmap& stipple, int width);
| a2dSTROKE_NORMAL | not using a bitmap or gradient |
| a2dSTROKE_ONE_COLOUR | one colour |
| a2dSTROKE_BITMAP | using a bitmap |
Definition at line 325 of file stylebase.h.