OpenCPN Partial API docs
Loading...
Searching...
No Matches
compass.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2010 by Jean-Eudes Onfray *
3
* Copyright (C) 2010 by David S. Register *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, see <https://www.gnu.org/licenses/>. *
17
**************************************************************************/
18
27
#ifndef Compass_H_
28
#define Compass_H_
29
30
#include <wx/wxprec.h>
31
32
#ifndef WX_PRECOMP
33
#include <wx/wx.h>
34
#endif
35
36
#include "
dial.h
"
37
39
class
DashboardInstrument_Compass
:
public
DashboardInstrument_Dial
{
40
public
:
41
DashboardInstrument_Compass
(wxWindow* parent, wxWindowID
id
, wxString title,
42
InstrumentProperties
* Properties,
43
DASH_CAP
cap_flag);
44
45
~DashboardInstrument_Compass
()
override
=
default
;
46
47
void
SetData(
DASH_CAP
,
double
, wxString)
override
;
48
49
private
:
50
protected
:
51
void
DrawBackground(wxGCDC* dc)
override
;
52
void
DrawForeground(wxGCDC* dc)
override
;
53
};
54
55
#endif
// Compass_H_
DashboardInstrument_Compass
A compass style control.
Definition
compass.h:39
DashboardInstrument_Dial
Definition
dial.h:78
InstrumentProperties
Definition
instrument.h:128
dial.h
Dashboard dial instrument.
DASH_CAP
DASH_CAP
Definition
instrument.h:77
plugins
dashboard_pi
src
compass.h
Generated on Mon Aug 17 2026 02:23:17 for OpenCPN Partial API docs by
1.9.8