public class WindowLayout extends java.lang.Object implements LayoutManager<GuiOutputManager>
Modifier and Type | Field and Description |
---|---|
private boolean |
decorated
Flag indicating if the window has decorations.
|
private GuiDriver<?,?> |
gd
Cached GUI driver.
|
private NativeDimension |
maxSize
Maximum window size.
|
Constructor and Description |
---|
WindowLayout() |
Modifier and Type | Method and Description |
---|---|
void |
doLayout(Container<GuiOutputManager> container)
Place components in specified container.
|
Dimension |
minimumSize(Container<GuiOutputManager> container)
Get the minimum size of the specified container.
|
void |
setDecorated(boolean decorated)
Set the
decorated flag. |
void |
setMaxSize(int width,
int height)
Sets maximum window size.
|
private GuiDriver<?,?> gd
private NativeDimension maxSize
private boolean decorated
public void setMaxSize(int width, int height)
width
- Maximum window width.height
- Maximum window height.public Dimension minimumSize(Container<GuiOutputManager> container)
minimumSize
in interface LayoutManager<GuiOutputManager>
container
- The container.null
.public void setDecorated(boolean decorated)
decorated
flag.decorated
- The window's decorated state.public void doLayout(Container<GuiOutputManager> container)
doLayout
in interface LayoutManager<GuiOutputManager>
container
- Container to process - must be a window.