67 #ifndef GUI_WIDGETS_WINDOW_H
68 #define GUI_WIDGETS_WINDOW_H
82 #include "render/graphics.h"
115 Window(
const std::string &caption,
384 int defaultWidth,
int defaultHeight);
398 const int defaultHeight,
414 const int oldScreenHeight);
467 virtual
void close();
587 virtual void logic();
Graphics::Alignment mAlignment
void safeDraw(Graphics *const graphics)
void adjustSizeToScreen()
void mouseReleased(MouseEvent &event)
void setSaveVisible(const bool save)
bool willSaveVisible() const
void setResizable(const bool resize)
void widgetHidden(const Event &event)
void setMaxWidth(const int width)
void centerHorisontally()
ContainerPlacer getPlacer(const int x, const int y)
virtual void setVisible(Visible visible)
void setAllowClose(const bool b)
bool isWindowVisible() const
bool getOptionBool(const std::string &name, const bool def) const
void setTitlePadding(const int p)
void setContentSize(int width, int height)
int getTitlePadding() const
void adjustPositionAfterResize(const int oldScreenWidth, const int oldScreenHeight)
Window * getParentWindow() const
void reflowLayout(int w, int h)
ImageCollection * mVertexes
static int windowInstances
void setWindowName(const std::string &name)
bool isResizeAllowed(const MouseEvent &event) const
int getOption(const std::string &name, const int def) const
unsigned int getTitleBarHeight() const
void mouseExited(MouseEvent &event)
void mouseDragged(MouseEvent &event)
Window(const std::string &caption, const Modal modal, Window *const parent, std::string skin)
unsigned int mTitleBarHeight
bool isDefaultVisible() const
Rect getWindowArea() const
bool getAlowClose() const
virtual void resetToDefaultSize()
void setSticky(const bool sticky)
void setModal(const Modal modal)
Graphics::Alignment mCaptionAlign
void setCaptionFont(Font *font)
void mouseEntered(MouseEvent &event)
void setCaption(const std::string &caption)
Graphics::Alignment getAlignment() const
void setMinHeight(const int height)
void mouseMoved(MouseEvent &event)
virtual void resizeToContent()
void setAlignment(Graphics::Alignment alignment)
void setMaxHeight(const int height)
void setMinWidth(const int width)
bool getCloseButton() const
void mousePressed(MouseEvent &event)
void enableVisibleSound(bool b)
void widgetResized(const Event &event)
int getResizeHandles(const MouseEvent &event)
void widgetMoved(const Event &event)
void draw(Graphics *const graphics)
const std::string & getWindowName() const
void setShowTitle(bool flag)
static void setWindowContainer(WindowContainer *const windowContainer)
void setCloseButton(const bool flag)
virtual void scheduleDelete()
void setPadding(int padding)
const std::string & getCaption() const
bool isStickyButtonLock() const
void setStickyButtonLock(const bool sticky)
LayoutCell & place(const int x, const int y, Widget *const wg, const int w, const int h)
void setDefaultVisible(const bool save)
void setLocationHorisontallyRelativeTo(const Widget *const widget)
void setLocationRelativeTo(const Widget *const widget)
void setTitleBarHeight(unsigned int height)
void setStickyButton(const bool flag)
void setMovable(Move movable)
static const unsigned resizeBorderWidth
void updateResizeHandler(MouseEvent &event)
#define A_DELETE_COPY(func)
WindowContainer * windowContainer