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

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

#include <mui_bar.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 UpdateDynamicValues ()
int GetOrientation ()
void ResetCanvasOptions ()
void SetFollowButtonState (int state)
CanvasOptions * GetCanvasOptions ()
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 60 of file mui_bar.h.

Constructor & Destructor Documentation

◆ MUIBar() [1/2]

MUIBar::MUIBar ( )

Definition at line 716 of file mui_bar.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 718 of file mui_bar.cpp.

◆ ~MUIBar()

MUIBar::~MUIBar ( )

Definition at line 732 of file mui_bar.cpp.

Member Function Documentation

◆ DrawDC()

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

Definition at line 1393 of file mui_bar.cpp.

◆ DrawGL()

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

Definition at line 1274 of file mui_bar.cpp.

◆ GetCanvasOptions()

CanvasOptions * MUIBar::GetCanvasOptions ( )
inline

Definition at line 78 of file mui_bar.h.

◆ GetOrientation()

int MUIBar::GetOrientation ( )
inline

Definition at line 75 of file mui_bar.h.

◆ GetRect()

wxRect MUIBar::GetRect ( )
inline

Definition at line 84 of file mui_bar.h.

◆ MouseEvent()

bool MUIBar::MouseEvent ( wxMouseEvent & event)

Definition at line 795 of file mui_bar.cpp.

◆ onCanvasOptionsAnimationTimerEvent()

void MUIBar::onCanvasOptionsAnimationTimerEvent ( wxTimerEvent & event)

Definition at line 1482 of file mui_bar.cpp.

◆ OnScaleSelected()

void MUIBar::OnScaleSelected ( wxMouseEvent & event)

Definition at line 942 of file mui_bar.cpp.

◆ PushCanvasOptions()

void MUIBar::PushCanvasOptions ( )

Definition at line 1446 of file mui_bar.cpp.

◆ ResetCanvasOptions()

void MUIBar::ResetCanvasOptions ( )

Definition at line 1398 of file mui_bar.cpp.

◆ SetBestPosition()

void MUIBar::SetBestPosition ( )

Definition at line 1067 of file mui_bar.cpp.

◆ SetCanvasENCAvailable()

void MUIBar::SetCanvasENCAvailable ( bool avail)

Definition at line 974 of file mui_bar.cpp.

◆ SetColorScheme()

void MUIBar::SetColorScheme ( ColorScheme cs)

Definition at line 771 of file mui_bar.cpp.

◆ SetFollowButtonState()

void MUIBar::SetFollowButtonState ( int state)

Definition at line 1104 of file mui_bar.cpp.

◆ UpdateDynamicValues()

void MUIBar::UpdateDynamicValues ( )

Definition at line 1087 of file mui_bar.cpp.

Member Data Documentation

◆ m_screenPos

wxPoint MUIBar::m_screenPos

Definition at line 89 of file mui_bar.h.

◆ m_size

wxSize MUIBar::m_size

Definition at line 90 of file mui_bar.h.


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