OpenCPN Partial API docs
Loading...
Searching...
No Matches
thumbwin.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2010 by David S. Register *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
8
* *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
13
* *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, see <https://www.gnu.org/licenses/>. *
16
**************************************************************************/
17
24
#ifndef thumbwin_H_
25
#define thumbwin_H_
26
27
// Include wxWindows' headers
28
29
#include <wx/wxprec.h>
30
31
#ifndef WX_PRECOMP
32
#include <wx/wx.h>
33
#endif
// precompiled headers
34
35
#include "
chartbase.h
"
36
37
//----------------------------------------------------------------------------
38
// Fwd declarations
39
//----------------------------------------------------------------------------
40
41
class
ThumbWin
;
// forward
42
extern
ThumbWin
*
pthumbwin
;
43
47
class
ThumbWin
:
public
wxWindow {
48
public
:
49
ThumbWin
();
50
ThumbWin
(wxWindow *parent);
51
virtual
~ThumbWin
();
52
53
void
Resize();
54
void
SetMaxSize(wxSize
const
&max_size);
55
const
wxBitmap &GetBitmap();
56
57
wxBitmap m_bitmap;
58
ChartBase
*pThumbChart;
59
60
private
:
61
void
OnPaint(wxPaintEvent &event);
62
63
wxSize m_max_size;
64
65
DECLARE_EVENT_TABLE()
66
};
67
68
#endif
chartbase.h
General chart base definitions.
ChartBase
Base class for all chart types.
Definition
chartbase.h:125
ThumbWin
Window for displaying chart thumbnails.
Definition
thumbwin.h:47
pthumbwin
ThumbWin * pthumbwin
Global instance.
Definition
thumbwin.cpp:40
gui
include
gui
thumbwin.h
Generated on Fri Oct 10 2025 02:28:04 for OpenCPN Partial API docs by
1.9.8