OpenCPN Partial API docs
Loading...
Searching...
No Matches
ocpnCompass Class Reference

Public Member Functions

 ocpnCompass (ChartCanvas *parent, bool bShowGPS=true)
 
bool IsShown () const
 
void Show (bool show)
 
void Paint (ocpnDC &dc)
 
void UpdateStatus (bool newColorScheme=false)
 
bool MouseEvent (wxMouseEvent &event)
 
void SetColorScheme (ColorScheme cs)
 
int GetXOffset (void) const
 
int GetYOffset (void) const
 
float GetScaleFactor ()
 
void SetScaleFactor (float factor)
 
void Move (const wxPoint &pt)
 
wxRect GetRect (void) const
 

Detailed Description

Definition at line 30 of file compass.h.

Constructor & Destructor Documentation

◆ ocpnCompass()

ocpnCompass::ocpnCompass ( ChartCanvas parent,
bool  bShowGPS = true 
)

Definition at line 50 of file compass.cpp.

◆ ~ocpnCompass()

ocpnCompass::~ocpnCompass ( )

Definition at line 78 of file compass.cpp.

Member Function Documentation

◆ GetRect()

wxRect ocpnCompass::GetRect ( void  ) const
inline

Definition at line 49 of file compass.h.

◆ GetScaleFactor()

float ocpnCompass::GetScaleFactor ( )
inline

Definition at line 45 of file compass.h.

◆ GetXOffset()

int ocpnCompass::GetXOffset ( void  ) const
inline

Definition at line 43 of file compass.h.

◆ GetYOffset()

int ocpnCompass::GetYOffset ( void  ) const
inline

Definition at line 44 of file compass.h.

◆ IsShown()

bool ocpnCompass::IsShown ( ) const
inline

Definition at line 35 of file compass.h.

◆ MouseEvent()

bool ocpnCompass::MouseEvent ( wxMouseEvent &  event)

Definition at line 175 of file compass.cpp.

◆ Move()

void ocpnCompass::Move ( const wxPoint &  pt)
inline

Definition at line 48 of file compass.h.

◆ Paint()

void ocpnCompass::Paint ( ocpnDC dc)

Definition at line 89 of file compass.cpp.

◆ SetColorScheme()

void ocpnCompass::SetColorScheme ( ColorScheme  cs)

Definition at line 190 of file compass.cpp.

◆ SetScaleFactor()

void ocpnCompass::SetScaleFactor ( float  factor)

Definition at line 208 of file compass.cpp.

◆ Show()

void ocpnCompass::Show ( bool  show)
inline

Definition at line 36 of file compass.h.

◆ UpdateStatus()

void ocpnCompass::UpdateStatus ( bool  newColorScheme = false)

Definition at line 195 of file compass.cpp.


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