-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitmap_btn_panel.h
44 lines (32 loc) · 1.03 KB
/
bitmap_btn_panel.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
44
#ifndef LTYY_BITMAP_BTN_PANEL_H_
#define LTYY_BITMAP_BTN_PANEL_H_
#include <wx/wx.h>
#include <wx/sizer.h>
#include "side_tab_switcher.h"
class BitmapBtnPanel : public wxPanel {
public:
BitmapBtnPanel(wxFrame* parent, wxString file, wxBitmapType format, wxSize size, wxString text,SideTabSwitcher::Section section);
void PaintEvent(wxPaintEvent & evt);
void PaintNow();
void Render(wxDC& dc);
void MouseDown(wxMouseEvent& event);
DECLARE_EVENT_TABLE()
private:
wxBitmap image_;
wxString text_;
wxSize size_;
SideTabSwitcher::Section section_;
wxFrame* parent_;
// some useful events
/*
void mouseMoved(wxMouseEvent& event);
void mouseDown(wxMouseEvent& event);
void mouseWheelMoved(wxMouseEvent& event);
void mouseReleased(wxMouseEvent& event);
void rightClick(wxMouseEvent& event);
void mouseLeftWindow(wxMouseEvent& event);
void keyPressed(wxKeyEvent& event);
void keyReleased(wxKeyEvent& event);
*/
};
#endif // LTYY_BITMAP_BTN_PANEL_H_