30static constexpr int GRAB_MARGIN = 4;
38 setTitleBarHeight(getPadding() + GRAB_MARGIN);
46 scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
47 scrollArea->setOpaque(
false);
49 const int border = (getPadding() + content->getFrameSize()) * 2;
void setRowHeight(int n, int h)
LayoutCell & setPadding(int p)
Sets the padding around the cell content.
This class is an helper for setting the position of widgets.
@ AUTO_SET
Uses the share as the new size.
void setMargin(int m)
Sets the margin around the layout.
void registerWindowForReset(Window *window)
Enables the Reset Windows button.
A generic shortcut container.
ShortcutWindow(const std::string &title, ShortcutContainer *content)
void setDefaultVisible(bool save)
Sets whether the window is visible by default.
void setMinHeight(int height)
Sets the minimum height of the window.
Layout & getLayout()
Gets the layout handler for this window.
void setWindowName(const std::string &name)
Sets the name of the window.
void setResizable(bool resize)
Sets whether or not the window can be resized.
void setSaveVisible(bool save)
Sets whether the window will save it's visibility.
LayoutCell & place(int x, int y, gcn::Widget *, int w=1, int h=1)
Adds a widget to the window and sets it at given cell.
void setShowTitle(bool flag)
Sets flag to show a title or not.
void setDefaultSize()
Set the default win pos and size to the current ones.
void loadWindowState()
Reads the position (and the size for resizable windows) in the configuration based on the given strin...
void setMaxHeight(int height)
Sets the minimum height of the window.
void setMinWidth(int width)
Sets the minimum width of the window.
void setMaxWidth(int width)
Sets the maximum width of the window.