|
VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
|
grid view layouter More...
#include <gridlayouter.h>
Inheritance diagram for GridLayouter:Public Types | |
| using | LayoutData = std::vector<std::pair<CRect, std::optional<ViewLayout>>> |
Public Types inherited from IViewLayouter | |
| using | Children = CViewContainer::ViewList |
Public Member Functions | |
| GridLayouter (const GridLayoutProperties &props={}) | |
| void | setProperties (const GridLayoutProperties &props) |
| const GridLayoutProperties & | getProperties () const |
| GridLayoutProperties & | getProperties () |
| bool | applyLayout (CViewContainer &container, const Children &children, const ViewLayout &layout) override |
| apply the previously calculated layout | |
| std::optional< ViewLayout > | calculateLayout (const CViewContainer &view, const Children &children, const CRect &newSize) override |
| calculate the layout of the view. | |
Public Member Functions inherited from ReferenceCounted< int32_t > | |
| ReferenceCounted ()=default | |
| virtual | ~ReferenceCounted () noexcept=default |
| ReferenceCounted (const ReferenceCounted &) | |
| ReferenceCounted & | operator= (const ReferenceCounted &) |
| ReferenceCounted ()=default | |
| ReferenceCounted (const ReferenceCounted &) | |
| virtual | ~ReferenceCounted () noexcept=default |
| ReferenceCounted & | operator= (const ReferenceCounted &) |
| void | forget () override |
| decrease refcount and delete object if refcount == 0 | |
| void | remember () override |
| increase refcount | |
| virtual int32_t | getNbReference () const |
| get refcount | |
| void | forget () override |
| decrease refcount and delete object if refcount == 0 | |
| void | remember () override |
| increase refcount | |
| virtual int32_t | getNbReference () const |
| get refcount | |
grid view layouter
| using LayoutData = std::vector<std::pair<CRect, std::optional<ViewLayout>>> |
| GridLayouter | ( | const GridLayoutProperties & | props = {} | ) |
|
overridevirtual |
apply the previously calculated layout
| view | the view to apply the layout to |
| children | the children of the view |
| layout | the layout to apply |
Implements IViewLayouter.
|
overridevirtual |
calculate the layout of the view.
Note that the returned layout may have a different size than the newSize parameter when the layout is not possible with the given size.
| view | the view to calculate the layout for |
| children | the children of the view |
| newSize | the new size of the view |
Implements IViewLayouter.
| GridLayoutProperties & getProperties | ( | ) |
| const GridLayoutProperties & getProperties | ( | ) | const |
| void setProperties | ( | const GridLayoutProperties & | props | ) |