Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FlowContainer Class Reference

A container that arranges its contents like words on a page. More...

#include <flowcontainer.h>

Inheritance diagram for FlowContainer:
Container

Public Member Functions

 FlowContainer (int boxWidth, int boxHeight)
 
void widgetResized (const gcn::Event &event) override
 Invoked when a widget changes its size.
 
int getBoxWidth () const
 
int getBoxHeight () const
 
void add (gcn::Widget *widget) override
 
- Public Member Functions inherited from Container
 Container ()
 
 ~Container () override
 
void drawFrame (gcn::Graphics *graphics) override
 

Private Attributes

int mBoxWidth
 
int mBoxHeight
 
int mGridWidth = 1
 
int mGridHeight = 1
 

Additional Inherited Members

- Protected Member Functions inherited from Container
LayoutgetLayout ()
 Gets the layout handler for this container.
 
LayoutCellplace (int x, int y, gcn::Widget *wg, int w=1, int h=1)
 Adds a widget to the container and sets it at given cell.
 
ContainerPlacer getPlacer (int x, int y)
 Returns a proxy for adding widgets in an inner table of the layout.
 

Detailed Description

A container that arranges its contents like words on a page.

Definition at line 32 of file flowcontainer.h.

Constructor & Destructor Documentation

◆ FlowContainer()

FlowContainer::FlowContainer ( int  boxWidth,
int  boxHeight 
)

Definition at line 23 of file flowcontainer.cpp.

Member Function Documentation

◆ add()

void FlowContainer::add ( gcn::Widget *  widget)
override

Definition at line 72 of file flowcontainer.cpp.

◆ getBoxHeight()

int FlowContainer::getBoxHeight ( ) const
inline

Definition at line 47 of file flowcontainer.h.

◆ getBoxWidth()

int FlowContainer::getBoxWidth ( ) const
inline

Definition at line 44 of file flowcontainer.h.

◆ widgetResized()

void FlowContainer::widgetResized ( const gcn::Event &  event)
override

Invoked when a widget changes its size.

This is used to determine the new height of the container.

Definition at line 30 of file flowcontainer.cpp.

Member Data Documentation

◆ mBoxHeight

int FlowContainer::mBoxHeight
private

Definition at line 54 of file flowcontainer.h.

◆ mBoxWidth

int FlowContainer::mBoxWidth
private

Definition at line 53 of file flowcontainer.h.

◆ mGridHeight

int FlowContainer::mGridHeight = 1
private

Definition at line 56 of file flowcontainer.h.

◆ mGridWidth

int FlowContainer::mGridWidth = 1
private

Definition at line 55 of file flowcontainer.h.


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