OpenCPN Partial API docs
|
Organizes constant variables and methods. More...
Enumerations | |
enum class | Breakpoint : int { kExtraSmall = 1 , kSmall = 480 , kMedium = 767 , kLarge = 1024 , kExtraLarge = 1440 } |
Functions | |
template<typename T > | |
bool | HasKey (const std::set< int > &set, T key) |
Check if a key exists in a set. | |
int | GetSpacing (wxWindow *ctx, int factor) |
Multiply default spacing with a factor, and calculate device independent pixels. | |
void | LayoutResizeEvent (wxWindow *ctx) |
Trigger window layout event. | |
Breakpoint | GetScreenSize (wxRect *rect) |
Get screen size breakpoint. | |
Organizes constant variables and methods.
|
strong |
Definition at line 40 of file ui_utils.h.
Breakpoint GUI::GetScreenSize | ( | wxRect * | rect | ) |
Get screen size breakpoint.
rect | Display geometry. |
int GUI::GetSpacing | ( | wxWindow * | ctx, |
int | factor | ||
) |
Multiply default spacing with a factor, and calculate device independent pixels.
ctx | Window context. |
int | Scaling factor. |
bool GUI::HasKey | ( | const std::set< int > & | set, |
T | key | ||
) |
Check if a key exists in a set.
set | Set of keys. |
key | An enum class key (to be cast to int). |
Definition at line 60 of file ui_utils.h.
void GUI::LayoutResizeEvent | ( | wxWindow * | ctx | ) |
Trigger window layout event.
ctx | Window context. |