50#ifndef HEADER_INCLUDED__SAGA_API_dc_helper_H
51#define HEADER_INCLUDED__SAGA_API_dc_helper_H
65#include <wx/settings.h>
124#define SG_DC_TEXTALIGN_LEFT 0x01
125#define SG_DC_TEXTALIGN_XCENTER 0x02
126#define SG_DC_TEXTALIGN_RIGHT 0x04
127#define SG_DC_TEXTALIGN_TOP 0x08
128#define SG_DC_TEXTALIGN_YCENTER 0x10
129#define SG_DC_TEXTALIGN_BOTTOM 0x20
131#define SG_DC_TEXTALIGN_TOPLEFT (SG_DC_TEXTALIGN_TOP |SG_DC_TEXTALIGN_LEFT)
132#define SG_DC_TEXTALIGN_TOPCENTER (SG_DC_TEXTALIGN_TOP |SG_DC_TEXTALIGN_XCENTER)
133#define SG_DC_TEXTALIGN_TOPRIGHT (SG_DC_TEXTALIGN_TOP |SG_DC_TEXTALIGN_RIGHT)
134#define SG_DC_TEXTALIGN_CENTERLEFT (SG_DC_TEXTALIGN_YCENTER|SG_DC_TEXTALIGN_LEFT)
135#define SG_DC_TEXTALIGN_CENTER (SG_DC_TEXTALIGN_YCENTER|SG_DC_TEXTALIGN_XCENTER)
136#define SG_DC_TEXTALIGN_CENTERRIGHT (SG_DC_TEXTALIGN_YCENTER|SG_DC_TEXTALIGN_RIGHT)
137#define SG_DC_TEXTALIGN_BOTTOMLEFT (SG_DC_TEXTALIGN_BOTTOM |SG_DC_TEXTALIGN_LEFT)
138#define SG_DC_TEXTALIGN_BOTTOMCENTER (SG_DC_TEXTALIGN_BOTTOM |SG_DC_TEXTALIGN_XCENTER)
139#define SG_DC_TEXTALIGN_BOTTOMRIGHT (SG_DC_TEXTALIGN_BOTTOM |SG_DC_TEXTALIGN_RIGHT)
141#define SG_DC_TEXTEFFECT_NONE 0x00
142#define SG_DC_TEXTEFFECT_TOP 0x01
143#define SG_DC_TEXTEFFECT_TOPLEFT 0x02
144#define SG_DC_TEXTEFFECT_LEFT 0x04
145#define SG_DC_TEXTEFFECT_BOTTOMLEFT 0x08
146#define SG_DC_TEXTEFFECT_BOTTOM 0x10
147#define SG_DC_TEXTEFFECT_BOTTOMRIGHT 0x20
148#define SG_DC_TEXTEFFECT_RIGHT 0x40
149#define SG_DC_TEXTEFFECT_TOPRIGHT 0x80
150#define SG_DC_TEXTEFFECT_FRAME (SG_DC_TEXTEFFECT_TOPLEFT|SG_DC_TEXTEFFECT_BOTTOMLEFT|SG_DC_TEXTEFFECT_BOTTOMRIGHT|SG_DC_TEXTEFFECT_TOPRIGHT)
157SAGA_API_DLL_EXPORT void SG_DC_Draw_Text (wxDC &dc,
int Align,
int x,
int y,
double Angle,
const wxString &Text,
int Effect, wxColour Effect_Color,
int Effect_Size = 1);
167#define SG_DC_SCALE_HORIZONTAL 0x00
168#define SG_DC_SCALE_VERTICAL 0x01
171#define SG_DC_SCALE_TICK_NONE 0x00
172#define SG_DC_SCALE_TICK_TOP 0x01
173#define SG_DC_SCALE_TICK_BOTTOM 0x02
176#define SG_DC_SCALE_STYLE_DEFAULT 0x00
177#define SG_DC_SCALE_STYLE_DESCENDENT 0x02
178#define SG_DC_SCALE_STYLE_LINECONN 0x04
179#define SG_DC_SCALE_STYLE_BLACKWHITE 0x08
180#define SG_DC_SCALE_STYLE_GLOOMING 0x10
181#define SG_DC_SCALE_STYLE_UNIT_ABOVE 0x20
182#define SG_DC_SCALE_STYLE_UNIT_BELOW 0x40
186SAGA_API_DLL_EXPORT void SG_DC_Draw_Scale (wxDC &dc,
const wxRect &r,
double min_Value,
double max_Value,
bool bHorizontal,
bool bAscendent,
bool bTickAtTop,
const wxString &Unit =
"",
bool bUseDCFont =
false);
188SAGA_API_DLL_EXPORT bool SG_DC_Draw_Ruler (wxDC &dc,
const wxRect &r,
bool bHorizontal,
double zMin,
double zMax,
bool bAscendent =
true,
int FontSize = 7,
const wxColour &Colour = wxColour(127, 127, 127));
#define SAGA_API_DLL_EXPORT
#define SG_DC_SCALE_STYLE_DEFAULT
SAGA_API_DLL_EXPORT bool SG_DC_Draw_Ruler(wxDC &dc, const wxRect &r, bool bHorizontal, double zMin, double zMax, bool bAscendent=true, int FontSize=7, const wxColour &Colour=wxColour(127, 127, 127))
#define SG_DC_SCALE_HORIZONTAL
SAGA_API_DLL_EXPORT void SG_DC_Draw_Rect(wxDC &dc, wxColour Color, int ax, int ay, int bx, int by)
SAGA_API_DLL_EXPORT wxColour SG_Get_wxColor(int Color)
#define SG_DC_SCALE_TICK_NONE
SAGA_API_DLL_EXPORT wxFont SG_Get_wxFont(CSG_Parameter *pFont)
SAGA_API_DLL_EXPORT void SG_DC_Draw_Edge(wxDC &dc, int Edge_Style, int ax, int ay, int bx, int by)
SAGA_API_DLL_EXPORT wxColour SG_System_Get_Color_Foreground(int Mode=0)
@ SG_DC_EDGE_STYLE_SIMPLE
@ SG_DC_EDGE_STYLE_SUNKEN
@ SG_DC_EDGE_STYLE_RAISED
@ SG_DC_EDGE_STYLE_STATIC
SAGA_API_DLL_EXPORT void SG_DC_Draw_FillRect(wxDC &dc, wxColour Color, int ax, int ay, int bx, int by)
SAGA_API_DLL_EXPORT void SG_DC_Draw_Text(wxDC &dc, int Align, int x, int y, const wxString &Text)
SAGA_API_DLL_EXPORT wxColour SG_System_Get_Color(wxSystemColour index)
SAGA_API_DLL_EXPORT bool SG_Set_Font(CSG_Parameter *pFont, wxFont &Font, wxColour &Colour)
SAGA_API_DLL_EXPORT void SG_DC_Draw_Scale(wxDC &dc, const wxRect &r, double min_Value, double max_Value, int Orientation=SG_DC_SCALE_HORIZONTAL, int Tick=SG_DC_SCALE_TICK_NONE, int Style=SG_DC_SCALE_STYLE_DEFAULT, const wxString &Unit="", bool bUseDCFont=false)
SAGA_API_DLL_EXPORT int SG_Get_Color(const wxColour &Color)
SAGA_API_DLL_EXPORT wxColour SG_System_Get_Color_Background(int Mode=0)