VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
Loading...
Searching...
No Matches
BaseViewLayouter Class Reference

a base class for view layouters More...

#include <baseviewlayouter.h>

+ Inheritance diagram for BaseViewLayouter:

Public Types

using LayoutData = std::vector<BaseViewLayouterEntry>
 
- Public Types inherited from IViewLayouter
using Children = CViewContainer::ViewList
 

Public Member Functions

bool applyLayout (CViewContainer &container, const Children &children, const ViewLayout &layout) override
 apply the previously calculated layout
 
- Public Member Functions inherited from IViewLayouter
virtual std::optional< ViewLayoutcalculateLayout (const CViewContainer &view, const Children &children, const CRect &newSize)=0
 calculate the layout of the view.
 
- Public Member Functions inherited from IReference
virtual void forget ()=0
 decrease refcount and delete object if refcount == 0
 
virtual void remember ()=0
 increase refcount
 

Detailed Description

a base class for view layouters

Member Typedef Documentation

◆ LayoutData

using LayoutData = std::vector<BaseViewLayouterEntry>

Member Function Documentation

◆ applyLayout()

bool applyLayout ( CViewContainer & view,
const Children & children,
const ViewLayout & layout )
inlineoverridevirtual

apply the previously calculated layout

Parameters
viewthe view to apply the layout to
childrenthe children of the view
layoutthe layout to apply
Returns
true if the layout was applied successfully, false otherwise

Implements IViewLayouter.


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