Ember
Loading...
Searching...
No Matches
EmberUI::ProportionalLayout Class Reference

Tracks pane proportions and applies them on AUI manager resize. More...

#include <ProportionalLayout.h>

Public Member Functions

void Track (const wxString &paneName, double proportion, double minProportion, bool isWidth)
 Registers a pane to track with given proportion and constraints.
void HandleResize (wxAuiManager *mgr, const wxSize &oldClientSize, const wxSize &newClientSize)
 Updates pane sizes when the managed window is resized.

Private Attributes

std::vector< PaneEntrym_entries

Detailed Description

Tracks pane proportions and applies them on AUI manager resize.

Definition at line 18 of file ProportionalLayout.h.

Member Function Documentation

◆ HandleResize()

void EmberUI::ProportionalLayout::HandleResize ( wxAuiManager * mgr,
const wxSize & oldClientSize,
const wxSize & newClientSize )

Updates pane sizes when the managed window is resized.

Definition at line 19 of file ProportionalLayout.cpp.

◆ Track()

void EmberUI::ProportionalLayout::Track ( const wxString & paneName,
double proportion,
double minProportion,
bool isWidth )

Registers a pane to track with given proportion and constraints.

Definition at line 7 of file ProportionalLayout.cpp.

Member Data Documentation

◆ m_entries

std::vector<PaneEntry> EmberUI::ProportionalLayout::m_entries
private

Definition at line 26 of file ProportionalLayout.h.


The documentation for this class was generated from the following files: