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

A widget container. More...

#include <container.h>

Inheritance diagram for Container:
AbilityEntry AttrDisplay CharacterDisplay DebugInfo DebugSwitches Desktop FlowContainer Popup SetupTab VertContainer WindowContainer WindowMenu

Public Member Functions

 Container ()
 
 ~Container () override
 
void drawFrame (gcn::Graphics *graphics) override
 

Protected Member Functions

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.
 

Private Attributes

LayoutHelpermLayoutHelper = nullptr
 

Detailed Description

A widget container.

The main difference between the standard Guichan container and this one is that children added to this container are automatically deleted when the container is deleted.

This container is also non-opaque by default.

Definition at line 40 of file container.h.

Constructor & Destructor Documentation

◆ Container()

Container::Container ( )

Definition at line 26 of file container.cpp.

◆ ~Container()

Container::~Container ( )
override

Definition at line 31 of file container.cpp.

Member Function Documentation

◆ drawFrame()

void Container::drawFrame ( gcn::Graphics *  graphics)
inlineoverride

Definition at line 47 of file container.h.

◆ getLayout()

Layout & Container::getLayout ( )
protected

Gets the layout handler for this container.

Definition at line 39 of file container.cpp.

◆ getPlacer()

ContainerPlacer Container::getPlacer ( int  x,
int  y 
)
protected

Returns a proxy for adding widgets in an inner table of the layout.

Definition at line 52 of file container.cpp.

◆ place()

LayoutCell & Container::place ( int  x,
int  y,
gcn::Widget *  wg,
int  w = 1,
int  h = 1 
)
protected

Adds a widget to the container and sets it at given cell.

Definition at line 46 of file container.cpp.

Member Data Documentation

◆ mLayoutHelper

LayoutHelper* Container::mLayoutHelper = nullptr
private

Definition at line 66 of file container.h.


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