OpenCPN Partial API docs
ocpnStyle::Style Class Reference

Public Member Functions

wxBitmap GetNormalBG ()
 
wxBitmap GetActiveBG ()
 
wxBitmap GetToggledBG ()
 
wxBitmap GetToolbarStart ()
 
wxBitmap GetToolbarEnd ()
 
bool HasBackground () const
 
void HasBackground (bool b)
 
wxBitmap GetIcon (const wxString &name, int width=-1, int height=-1, bool bforceReload=false)
 
wxBitmap GetIconScaled (const wxString &name, double scaleFactor, bool bforceReload=false)
 
wxBitmap GetToolIcon (const wxString &toolname, int iconType=TOOLICON_NORMAL, bool rollover=false, int width=-1, int height=-1)
 
wxBitmap BuildPluginIcon (wxBitmap &bm, int iconType, double scale=1.0)
 
bool NativeToolIconExists (const wxString &name)
 
int GetTopMargin () const
 
int GetRightMargin () const
 
int GetBottomMargin () const
 
int GetLeftMargin () const
 
int GetToolbarCornerRadius ()
 
int GetCompassTopMargin () const
 
int GetCompassRightMargin () const
 
int GetCompassBottomMargin () const
 
int GetCompassLeftMargin () const
 
int GetCompassCornerRadius () const
 
int GetCompassXOffset () const
 
int GetCompassYOffset () const
 
int GetToolSeparation () const
 
wxSize GetToolSize () const
 
wxSize GetToggledToolSize () const
 
bool HasToolbarStart () const
 
bool HasToolbarEnd () const
 
void DrawToolbarLineStart (wxBitmap &bmp, double scale=1.0)
 
void DrawToolbarLineEnd (wxBitmap &bmp, double scale=1.0)
 
void SetOrientation (long orient)
 
int GetOrientation ()
 
void SetColorScheme (ColorScheme cs)
 
void Unload ()
 

Static Public Member Functions

static wxBitmap SetBitmapBrightness (wxBitmap &bitmap, ColorScheme cs)
 
static wxBitmap SetBitmapBrightnessAbs (wxBitmap &bitmap, double level)
 

Public Attributes

wxString name
 
wxString sysname
 
wxString description
 
wxString graphicsFile
 
int toolMarginTop [2]
 
int toolMarginRight [2]
 
int toolMarginBottom [2]
 
int toolMarginLeft [2]
 
int toolSeparation [2]
 
int cornerRadius [2]
 
int compassMarginTop
 
int compassMarginRight
 
int compassMarginBottom
 
int compassMarginLeft
 
int compasscornerRadius
 
int compassXoffset
 
int compassYoffset
 
wxSize toolSize [2]
 
wxSize toggledBGSize [2]
 
wxPoint toggledBGlocation [2]
 
wxPoint activeBGlocation [2]
 
wxPoint normalBGlocation [2]
 
wxSize verticalIconOffset
 
wxArrayPtrVoid tools
 
intHash toolIndex
 
wxArrayPtrVoid icons
 
intHash iconIndex
 
wxBitmap * graphics
 
wxColor consoleFontColor
 
wxPoint consoleTextBackgroundLoc
 
wxSize consoleTextBackgroundSize
 
wxPoint toolbarStartLoc [2]
 
wxSize toolbarStartSize [2]
 
wxPoint toolbarEndLoc [2]
 
wxSize toolbarEndSize [2]
 
wxBitmap consoleTextBackground
 
wxBitmap toolbarStart [2]
 
wxBitmap toolbarEnd [2]
 
bool marginsInvisible
 
int chartStatusIconWidth
 
bool chartStatusWindowTransparent
 
wxString embossFont
 
int embossHeight
 
wxString myConfigFileDir
 

Detailed Description

Definition at line 102 of file styles.h.


The documentation for this class was generated from the following files: