OpenCPN Partial API docs
Loading...
Searching...
No Matches
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 107 of file styles.h.

Constructor & Destructor Documentation

◆ Style()

Style::Style ( )

Definition at line 728 of file styles.cpp.

◆ ~Style()

Style::~Style ( )

Definition at line 755 of file styles.cpp.

Member Function Documentation

◆ BuildPluginIcon()

wxBitmap Style::BuildPluginIcon ( wxBitmap & bm,
int iconType,
double scale = 1.0 )

Definition at line 510 of file styles.cpp.

◆ DrawToolbarLineEnd()

void Style::DrawToolbarLineEnd ( wxBitmap & bmp,
double scale = 1.0 )

Definition at line 670 of file styles.cpp.

◆ DrawToolbarLineStart()

void Style::DrawToolbarLineStart ( wxBitmap & bmp,
double scale = 1.0 )

Definition at line 654 of file styles.cpp.

◆ GetActiveBG()

wxBitmap Style::GetActiveBG ( )

Definition at line 618 of file styles.cpp.

◆ GetBottomMargin()

int ocpnStyle::Style::GetBottomMargin ( ) const
inline

Definition at line 131 of file styles.h.

◆ GetCompassBottomMargin()

int ocpnStyle::Style::GetCompassBottomMargin ( ) const
inline

Definition at line 137 of file styles.h.

◆ GetCompassCornerRadius()

int ocpnStyle::Style::GetCompassCornerRadius ( ) const
inline

Definition at line 139 of file styles.h.

◆ GetCompassLeftMargin()

int ocpnStyle::Style::GetCompassLeftMargin ( ) const
inline

Definition at line 138 of file styles.h.

◆ GetCompassRightMargin()

int ocpnStyle::Style::GetCompassRightMargin ( ) const
inline

Definition at line 136 of file styles.h.

◆ GetCompassTopMargin()

int ocpnStyle::Style::GetCompassTopMargin ( ) const
inline

Definition at line 135 of file styles.h.

◆ GetCompassXOffset()

int ocpnStyle::Style::GetCompassXOffset ( ) const
inline

Definition at line 140 of file styles.h.

◆ GetCompassYOffset()

int ocpnStyle::Style::GetCompassYOffset ( ) const
inline

Definition at line 141 of file styles.h.

◆ GetIcon()

wxBitmap Style::GetIcon ( const wxString & name,
int width = -1,
int height = -1,
bool bforceReload = false )

Definition at line 244 of file styles.cpp.

◆ GetIconScaled()

wxBitmap Style::GetIconScaled ( const wxString & name,
double scaleFactor,
bool bforceReload = false )

Definition at line 225 of file styles.cpp.

◆ GetLeftMargin()

int ocpnStyle::Style::GetLeftMargin ( ) const
inline

Definition at line 132 of file styles.h.

◆ GetNormalBG()

wxBitmap Style::GetNormalBG ( )

Definition at line 611 of file styles.cpp.

◆ GetOrientation()

int Style::GetOrientation ( )

Definition at line 699 of file styles.cpp.

◆ GetRightMargin()

int ocpnStyle::Style::GetRightMargin ( ) const
inline

Definition at line 130 of file styles.h.

◆ GetToggledBG()

wxBitmap Style::GetToggledBG ( )

Definition at line 625 of file styles.cpp.

◆ GetToggledToolSize()

wxSize ocpnStyle::Style::GetToggledToolSize ( ) const
inline

Definition at line 145 of file styles.h.

◆ GetToolbarCornerRadius()

int Style::GetToolbarCornerRadius ( )

Definition at line 652 of file styles.cpp.

◆ GetToolbarEnd()

wxBitmap Style::GetToolbarEnd ( )

Definition at line 643 of file styles.cpp.

◆ GetToolbarStart()

wxBitmap Style::GetToolbarStart ( )

Definition at line 634 of file styles.cpp.

◆ GetToolIcon()

wxBitmap Style::GetToolIcon ( const wxString & toolname,
int iconType = TOOLICON_NORMAL,
bool rollover = false,
int width = -1,
int height = -1 )

Definition at line 289 of file styles.cpp.

◆ GetToolSeparation()

int ocpnStyle::Style::GetToolSeparation ( ) const
inline

Definition at line 143 of file styles.h.

◆ GetToolSize()

wxSize ocpnStyle::Style::GetToolSize ( ) const
inline

Definition at line 144 of file styles.h.

◆ GetTopMargin()

int ocpnStyle::Style::GetTopMargin ( ) const
inline

Definition at line 129 of file styles.h.

◆ HasBackground() [1/2]

bool ocpnStyle::Style::HasBackground ( ) const
inline

Definition at line 117 of file styles.h.

◆ HasBackground() [2/2]

void ocpnStyle::Style::HasBackground ( bool b)
inline

Definition at line 118 of file styles.h.

◆ HasToolbarEnd()

bool ocpnStyle::Style::HasToolbarEnd ( ) const
inline

Definition at line 152 of file styles.h.

◆ HasToolbarStart()

bool ocpnStyle::Style::HasToolbarStart ( ) const
inline

Definition at line 149 of file styles.h.

◆ NativeToolIconExists()

bool Style::NativeToolIconExists ( const wxString & name)

Definition at line 215 of file styles.cpp.

◆ SetBitmapBrightness()

wxBitmap Style::SetBitmapBrightness ( wxBitmap & bitmap,
ColorScheme cs )
static

Definition at line 570 of file styles.cpp.

◆ SetBitmapBrightnessAbs()

wxBitmap Style::SetBitmapBrightnessAbs ( wxBitmap & bitmap,
double level )
static

Definition at line 590 of file styles.cpp.

◆ SetColorScheme()

void Style::SetColorScheme ( ColorScheme cs)

Definition at line 701 of file styles.cpp.

◆ SetOrientation()

void Style::SetOrientation ( long orient)

Definition at line 691 of file styles.cpp.

◆ Unload()

void Style::Unload ( )

Definition at line 716 of file styles.cpp.

Member Data Documentation

◆ activeBGlocation

wxPoint ocpnStyle::Style::activeBGlocation[2]

Definition at line 187 of file styles.h.

◆ chartStatusIconWidth

int ocpnStyle::Style::chartStatusIconWidth

Definition at line 209 of file styles.h.

◆ chartStatusWindowTransparent

bool ocpnStyle::Style::chartStatusWindowTransparent

Definition at line 210 of file styles.h.

◆ compasscornerRadius

int ocpnStyle::Style::compasscornerRadius

Definition at line 180 of file styles.h.

◆ compassMarginBottom

int ocpnStyle::Style::compassMarginBottom

Definition at line 178 of file styles.h.

◆ compassMarginLeft

int ocpnStyle::Style::compassMarginLeft

Definition at line 179 of file styles.h.

◆ compassMarginRight

int ocpnStyle::Style::compassMarginRight

Definition at line 177 of file styles.h.

◆ compassMarginTop

int ocpnStyle::Style::compassMarginTop

Definition at line 176 of file styles.h.

◆ compassXoffset

int ocpnStyle::Style::compassXoffset

Definition at line 181 of file styles.h.

◆ compassYoffset

int ocpnStyle::Style::compassYoffset

Definition at line 182 of file styles.h.

◆ consoleFontColor

wxColor ocpnStyle::Style::consoleFontColor

Definition at line 196 of file styles.h.

◆ consoleTextBackground

wxBitmap ocpnStyle::Style::consoleTextBackground

Definition at line 203 of file styles.h.

◆ consoleTextBackgroundLoc

wxPoint ocpnStyle::Style::consoleTextBackgroundLoc

Definition at line 197 of file styles.h.

◆ consoleTextBackgroundSize

wxSize ocpnStyle::Style::consoleTextBackgroundSize

Definition at line 198 of file styles.h.

◆ cornerRadius

int ocpnStyle::Style::cornerRadius[2]

Definition at line 175 of file styles.h.

◆ description

wxString ocpnStyle::Style::description

Definition at line 168 of file styles.h.

◆ embossFont

wxString ocpnStyle::Style::embossFont

Definition at line 212 of file styles.h.

◆ embossHeight

int ocpnStyle::Style::embossHeight

Definition at line 213 of file styles.h.

◆ graphics

wxBitmap* ocpnStyle::Style::graphics

Definition at line 194 of file styles.h.

◆ graphicsFile

wxString ocpnStyle::Style::graphicsFile

Definition at line 169 of file styles.h.

◆ iconIndex

intHash ocpnStyle::Style::iconIndex

Definition at line 193 of file styles.h.

◆ icons

wxArrayPtrVoid ocpnStyle::Style::icons

Definition at line 192 of file styles.h.

◆ marginsInvisible

bool ocpnStyle::Style::marginsInvisible

Definition at line 207 of file styles.h.

◆ myConfigFileDir

wxString ocpnStyle::Style::myConfigFileDir

Definition at line 215 of file styles.h.

◆ name

wxString ocpnStyle::Style::name

Definition at line 166 of file styles.h.

◆ normalBGlocation

wxPoint ocpnStyle::Style::normalBGlocation[2]

Definition at line 188 of file styles.h.

◆ sysname

wxString ocpnStyle::Style::sysname

Definition at line 167 of file styles.h.

◆ toggledBGlocation

wxPoint ocpnStyle::Style::toggledBGlocation[2]

Definition at line 186 of file styles.h.

◆ toggledBGSize

wxSize ocpnStyle::Style::toggledBGSize[2]

Definition at line 185 of file styles.h.

◆ toolbarEnd

wxBitmap ocpnStyle::Style::toolbarEnd[2]

Definition at line 205 of file styles.h.

◆ toolbarEndLoc

wxPoint ocpnStyle::Style::toolbarEndLoc[2]

Definition at line 201 of file styles.h.

◆ toolbarEndSize

wxSize ocpnStyle::Style::toolbarEndSize[2]

Definition at line 202 of file styles.h.

◆ toolbarStart

wxBitmap ocpnStyle::Style::toolbarStart[2]

Definition at line 204 of file styles.h.

◆ toolbarStartLoc

wxPoint ocpnStyle::Style::toolbarStartLoc[2]

Definition at line 199 of file styles.h.

◆ toolbarStartSize

wxSize ocpnStyle::Style::toolbarStartSize[2]

Definition at line 200 of file styles.h.

◆ toolIndex

intHash ocpnStyle::Style::toolIndex

Definition at line 191 of file styles.h.

◆ toolMarginBottom

int ocpnStyle::Style::toolMarginBottom[2]

Definition at line 172 of file styles.h.

◆ toolMarginLeft

int ocpnStyle::Style::toolMarginLeft[2]

Definition at line 173 of file styles.h.

◆ toolMarginRight

int ocpnStyle::Style::toolMarginRight[2]

Definition at line 171 of file styles.h.

◆ toolMarginTop

int ocpnStyle::Style::toolMarginTop[2]

Definition at line 170 of file styles.h.

◆ tools

wxArrayPtrVoid ocpnStyle::Style::tools

Definition at line 190 of file styles.h.

◆ toolSeparation

int ocpnStyle::Style::toolSeparation[2]

Definition at line 174 of file styles.h.

◆ toolSize

wxSize ocpnStyle::Style::toolSize[2]

Definition at line 184 of file styles.h.

◆ verticalIconOffset

wxSize ocpnStyle::Style::verticalIconOffset

Definition at line 189 of file styles.h.


The documentation for this class was generated from the following files:
  • /home/runner/work/main/main/opencpn/gui/include/gui/styles.h
  • /home/runner/work/main/main/opencpn/gui/src/styles.cpp