OpenCPN Partial API docs
thumbwin.h
1
/******************************************************************************
2
*
3
* Project: OpenCPN
4
* Purpose: Chart Thumbnail Object
5
* Author: David Register
6
*
7
***************************************************************************
8
* Copyright (C) 2010 by David S. Register *
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
* This program is distributed in the hope that it will be useful, *
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18
* GNU General Public License for more details. *
19
* *
20
* You should have received a copy of the GNU General Public License *
21
* along with this program; if not, write to the *
22
* Free Software Foundation, Inc., *
23
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
24
***************************************************************************
25
*
26
*/
27
28
//
29
30
#ifndef __thumbwin_H__
31
#define __thumbwin_H__
32
33
// Include wxWindows' headers
34
35
#include <wx/wxprec.h>
36
37
#ifndef WX_PRECOMP
38
#include <wx/wx.h>
39
#endif
// precompiled headers
40
41
//#include "ocpn_pixel.h"
42
43
//----------------------------------------------------------------------------
44
// constants
45
//----------------------------------------------------------------------------
46
47
//----------------------------------------------------------------------------
48
// Fwd declarations
49
//----------------------------------------------------------------------------
50
51
class
ChartBase
;
52
53
//----------------------------------------------------------------------------
54
// ThumbWin
55
//----------------------------------------------------------------------------
56
class
ThumbWin
:
public
wxWindow {
57
public
:
58
ThumbWin
();
59
ThumbWin
(wxWindow *parent);
60
virtual
~
ThumbWin
();
61
62
void
Resize(
void
);
63
void
SetMaxSize(wxSize
const
&max_size);
64
const
wxBitmap &GetBitmap(
void
);
65
66
wxBitmap m_bitmap;
67
ChartBase
*pThumbChart;
68
69
private
:
70
void
OnPaint(wxPaintEvent &event);
71
72
wxSize m_max_size;
73
74
DECLARE_EVENT_TABLE()
75
};
76
77
#endif
ChartBase
Definition:
chartbase.h:117
ThumbWin
Definition:
thumbwin.h:56
gui
include
gui
thumbwin.h
Generated on Thu Aug 1 2024 11:18:00 for OpenCPN Partial API docs by
1.9.1