|
OpenCPN Partial API docs
|
Custom combobox for selecting waypoint icons. More...
#include <mark_info.h>
Public Member Functions | |
| OCPNIconCombo (wxWindow *parent, wxWindowID id, const wxString &value="", const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=NULL, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name="OCPNIconCombo") | |
| void | OnDrawItem (wxDC &dc, const wxRect &rect, int item, int flags) const |
| wxCoord | OnMeasureItem (size_t item) const |
| wxCoord | OnMeasureItemWidth (size_t item) const |
| int | Append (const wxString &item, wxBitmap bmp) |
| void | Clear () |
Custom combobox for selecting waypoint icons.
Extends wxOwnerDrawnComboBox to provide a combobox with custom-drawn items, specifically for selecting waypoint icons.
Definition at line 151 of file mark_info.h.
| OCPNIconCombo::OCPNIconCombo | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxString & | value = "", |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| int | n = 0, |
||
| const wxString | choices[] = NULL, |
||
| long | style = 0, |
||
| const wxValidator & | validator = wxDefaultValidator, |
||
| const wxString & | name = "OCPNIconCombo" |
||
| ) |
Definition at line 79 of file mark_info.cpp.
| OCPNIconCombo::~OCPNIconCombo | ( | ) |
Definition at line 91 of file mark_info.cpp.
| int OCPNIconCombo::Append | ( | const wxString & | item, |
| wxBitmap | bmp | ||
| ) |
Definition at line 130 of file mark_info.cpp.
| void OCPNIconCombo::Clear | ( | ) |
Definition at line 137 of file mark_info.cpp.
| void OCPNIconCombo::OnDrawItem | ( | wxDC & | dc, |
| const wxRect & | rect, | ||
| int | item, | ||
| int | flags | ||
| ) | const |
Definition at line 93 of file mark_info.cpp.
| wxCoord OCPNIconCombo::OnMeasureItem | ( | size_t | item | ) | const |
Definition at line 122 of file mark_info.cpp.
| wxCoord OCPNIconCombo::OnMeasureItemWidth | ( | size_t | item | ) | const |
Definition at line 128 of file mark_info.cpp.