27#include "color_types.h" 
   44  bool IsShown()
 const { 
return m_shown; }
 
   45  void Show(
bool show) { m_shown = show; }
 
   48  void UpdateStatus(
bool newColorScheme = 
false);
 
   50  bool MouseEvent(wxMouseEvent &event);
 
   51  void SetColorScheme(ColorScheme cs);
 
   52  int GetXOffset(
void)
 const { 
return m_xoffset; }
 
   53  int GetYOffset(
void)
 const { 
return m_yoffset; }
 
   54  float GetScaleFactor() { 
return m_scale; }
 
   55  void SetScaleFactor(
float factor);
 
   57  void Move(
const wxPoint &pt) { m_rect.SetPosition(pt); }
 
   63  wxRect 
GetRect(
void)
 const { 
return m_rect; }
 
   71  void CreateBmp(
bool bnew = 
false);
 
   74  void SetToolTip(
const wxString &tooltip);
 
   79  wxStaticBitmap *m_pStatBoxToolStaticBmp;
 
   81  wxString m_lastgpsIconName;
 
   84  wxBitmap _img_compass;
 
  103  unsigned int m_texobj;
 
  104  int m_tex_w, m_tex_h;
 
  105  int m_image_width, m_image_height;
 
 
Generic Chart canvas base.
ChartCanvas - Main chart display and interaction component.
Represents a compass display in the OpenCPN navigation system.
wxRect GetRect(void) const
Return the coordinates of the compass widget, in physical pixels relative to the canvas window.
wxRect GetLogicalRect(void) const
Return the coordinates of the compass widget, in logical pixels.
Device context class that can use either wxDC or OpenGL for drawing.
Layer to use wxDC or opengl.