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

Modern User Interface Control Bar for OpenCPN. More...

#include <MUIBar.h>

Inheritance diagram for MUIBar:

Public Member Functions

 MUIBar (ChartCanvas *parent, int orientation=wxHORIZONTAL, float size_factor=1.0, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr)
 
void onCanvasOptionsAnimationTimerEvent (wxTimerEvent &event)
 
void SetBestPosition (void)
 
void UpdateDynamicValues ()
 
int GetOrientation ()
 
void ResetCanvasOptions ()
 
void SetFollowButtonState (int state)
 
CanvasOptionsGetCanvasOptions ()
 
void SetColorScheme (ColorScheme cs)
 
void SetCanvasENCAvailable (bool avail)
 
void OnScaleSelected (wxMouseEvent &event)
 
void DrawGL (ocpnDC &gldc, double displayScale)
 
void DrawDC (ocpnDC &dc, double displayScale)
 
wxRect GetRect ()
 
bool MouseEvent (wxMouseEvent &event)
 
void PushCanvasOptions ()
 

Public Attributes

wxPoint m_screenPos
 
wxSize m_size
 

Detailed Description

Modern User Interface Control Bar for OpenCPN.

Provides a customizable control bar with various buttons and options for interacting with the chart canvas in OpenCPN.

Definition at line 63 of file MUIBar.h.

Constructor & Destructor Documentation

◆ MUIBar() [1/2]

MUIBar::MUIBar ( )

Definition at line 726 of file MUIBar.cpp.

◆ MUIBar() [2/2]

MUIBar::MUIBar ( ChartCanvas parent,
int  orientation = wxHORIZONTAL,
float  size_factor = 1.0,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxPanelNameStr 
)

Definition at line 728 of file MUIBar.cpp.

◆ ~MUIBar()

MUIBar::~MUIBar ( )

Definition at line 742 of file MUIBar.cpp.

Member Function Documentation

◆ DrawDC()

void MUIBar::DrawDC ( ocpnDC dc,
double  displayScale 
)

Definition at line 1318 of file MUIBar.cpp.

◆ DrawGL()

void MUIBar::DrawGL ( ocpnDC gldc,
double  displayScale 
)

Definition at line 1199 of file MUIBar.cpp.

◆ GetCanvasOptions()

CanvasOptions * MUIBar::GetCanvasOptions ( )
inline

Definition at line 81 of file MUIBar.h.

◆ GetOrientation()

int MUIBar::GetOrientation ( )
inline

Definition at line 78 of file MUIBar.h.

◆ GetRect()

wxRect MUIBar::GetRect ( )
inline

Definition at line 87 of file MUIBar.h.

◆ MouseEvent()

bool MUIBar::MouseEvent ( wxMouseEvent &  event)

Definition at line 805 of file MUIBar.cpp.

◆ onCanvasOptionsAnimationTimerEvent()

void MUIBar::onCanvasOptionsAnimationTimerEvent ( wxTimerEvent &  event)

Definition at line 1407 of file MUIBar.cpp.

◆ OnScaleSelected()

void MUIBar::OnScaleSelected ( wxMouseEvent &  event)

Definition at line 869 of file MUIBar.cpp.

◆ PushCanvasOptions()

void MUIBar::PushCanvasOptions ( )

Definition at line 1371 of file MUIBar.cpp.

◆ ResetCanvasOptions()

void MUIBar::ResetCanvasOptions ( )

Definition at line 1323 of file MUIBar.cpp.

◆ SetBestPosition()

void MUIBar::SetBestPosition ( void  )

Definition at line 992 of file MUIBar.cpp.

◆ SetCanvasENCAvailable()

void MUIBar::SetCanvasENCAvailable ( bool  avail)

Definition at line 897 of file MUIBar.cpp.

◆ SetColorScheme()

void MUIBar::SetColorScheme ( ColorScheme  cs)

Definition at line 781 of file MUIBar.cpp.

◆ SetFollowButtonState()

void MUIBar::SetFollowButtonState ( int  state)

Definition at line 1029 of file MUIBar.cpp.

◆ UpdateDynamicValues()

void MUIBar::UpdateDynamicValues ( )

Definition at line 1012 of file MUIBar.cpp.

Member Data Documentation

◆ m_screenPos

wxPoint MUIBar::m_screenPos

Definition at line 92 of file MUIBar.h.

◆ m_size

wxSize MUIBar::m_size

Definition at line 93 of file MUIBar.h.


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