OpenCPN Partial API docs
Loading...
Searching...
No Matches
ui_utils.h File Reference

GUI library utils and events. More...

#include <wx/window.h>
#include <wx/scrolwin.h>
#include <wx/event.h>

Go to the source code of this file.

Namespaces

namespace  GUI
 Organizes constant variables and methods.
 

Enumerations

enum class  Breakpoint : int {
  kExtraSmall = 1 , kSmall = 480 , kMedium = 767 , kLarge = 1024 ,
  kExtraLarge = 1440
}
 

Functions

 wxDECLARE_EVENT (EVT_LAYOUT_RESIZE, wxCommandEvent)
 
int GUI::GetSpacing (wxWindow *ctx, int factor)
 Multiply default spacing with a factor, and calculate device independent pixels.
 
void GUI::LayoutResizeEvent (wxWindow *ctx)
 Trigger window layout event.
 
Breakpoint GUI::GetScreenSize (wxRect *rect)
 Get screen size breakpoint.
 

Detailed Description

GUI library utils and events.

Definition in file ui_utils.h.