-
Notifications
You must be signed in to change notification settings - Fork 0
/
svgframe.h
43 lines (34 loc) · 1.25 KB
/
svgframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
///////////////////////////////////////////////////////////////////////////////
// Name: svgframe.h
// Purpose: wxFrame for testing SVG rasterization with NanoSVG and LunaSVG
// Author: PB
// Created: 2024-01-18
// Copyright: (c) 2024 PB
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef TEST_SVG_FRAME_H_DEFINED
#define TEST_SVG_FRAME_H_DEFINED
#include <wx/wx.h>
class wxFileCtrl;
class wxFileCtrlEvent;
class wxBitmapBundlePanel;
class wxTestSVG2Frame : public wxFrame
{
public:
wxTestSVG2Frame();
~wxTestSVG2Frame();
private:
wxString m_lastSVGFolder;
long m_lastRunCount{25};
wxSize m_bitmapSize{128, 128};
wxSlider* m_bitmapSizeSlider{nullptr};
wxFileCtrl* m_fileCtrl{nullptr};
wxBitmapBundlePanel* m_panelNano{nullptr};
wxBitmapBundlePanel* m_panelLuna{nullptr};
void OnBenchmarkFolder(wxCommandEvent&);
void OnChangeFolder(wxCommandEvent&);
void OnFileSelected(wxFileCtrlEvent& event);
void OnFileActivated(wxFileCtrlEvent& event);
void OnBitmapSizeChanged(wxCommandEvent& event);
};
#endif // #ifndef TEST_SVG_FRAME_H_DEFINED