OpenCPN Partial API docs
Loading...
Searching...
No Matches
GUI Namespace Reference

Organizes constant variables and methods. More...

Enumerations

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

Functions

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.
 

Detailed Description

Organizes constant variables and methods.

Enumeration Type Documentation

◆ Breakpoint

enum class GUI::Breakpoint : int
strong

Definition at line 37 of file ui_utils.h.

Function Documentation

◆ GetScreenSize()

Breakpoint GUI::GetScreenSize ( wxRect *  rect)

Get screen size breakpoint.

Parameters
rectDisplay geometry.
Returns
Screen size breakpoint.

◆ GetSpacing()

int GUI::GetSpacing ( wxWindow *  ctx,
int  factor 
)

Multiply default spacing with a factor, and calculate device independent pixels.

Parameters
ctxWindow context.
intScaling factor.
Returns
Scaling in DIP.

◆ LayoutResizeEvent()

void GUI::LayoutResizeEvent ( wxWindow *  ctx)

Trigger window layout event.

Parameters
ctxWindow context.