36 enum { ID_MUI_MENU = 21500 };
39 CO_ANIMATION_LINEAR = 0,
40 CO_ANIMATION_QUADRATIC,
42 CO_ANIMATION_CUBIC_BOUNCE_IN,
43 CO_ANIMATION_CUBIC_BACK_IN,
44 CO_ANIMATION_CUBIC_REVERSE,
62 float size_factor = 1.0, wxWindowID
id = wxID_ANY,
63 const wxPoint &pos = wxDefaultPosition,
64 const wxSize &size = wxDefaultSize,
long style = 0,
65 const wxString &name = wxPanelNameStr);
69 void onCanvasOptionsAnimationTimerEvent(wxTimerEvent &event);
71 void SetBestPosition(
void);
72 void UpdateDynamicValues();
73 int GetOrientation() {
return m_orientation; }
74 void ResetCanvasOptions();
75 void SetFollowButtonState(
int state);
77 void SetColorScheme(ColorScheme cs);
78 void SetCanvasENCAvailable(
bool avail);
79 void OnScaleSelected(wxMouseEvent &event);
80 void DrawGL(
ocpnDC &gldc,
double displayScale);
81 void DrawDC(
ocpnDC &dc,
double displayScale);
82 wxRect GetRect(){
return wxRect(m_screenPos, m_size); }
84 bool MouseEvent(wxMouseEvent &event);
85 void PushCanvasOptions();
92 void CreateControls();
93 void PullCanvasOptions();
94 void HandleMenuClick();
95 wxBitmap &CreateBitmap(
double displayScale);
96 void InvalidateBitmap();
97 wxColor &GetBackgroundColor() {
return m_backcolor; }
98 void CaptureCanvasOptionsBitmap();
99 void CaptureCanvasOptionsBitmapChain(wxTimerEvent &event);
112 wxPoint m_targetCOPos;
113 wxPoint m_currentCOPos;
114 wxPoint m_startCOPos;
117 wxSize m_canvasOptionsFullSize;
119 wxTimer m_canvasOptionsAnimationTimer;
123 int m_animationTotalTime;
127 wxBitmap m_animateBitmap;
128 wxBitmap m_backingBitmap;
129 wxTimer CanvasOptionTimer;
131 int m_capture_size_y;
132 wxPoint m_capturePoint;
133 wxPoint m_backingPoint;
134 bool m_coAnimateByBitmaps;
136 bool m_CanvasENCAvail;