22 #ifndef FIFE_GUI_WIDGETS_RESIZABLEWINDOW_H 23 #define FIFE_GUI_WIDGETS_RESIZABLEWINDOW_H 28 #include <fifechan.hpp> 171 virtual void focusLost(
const Event& event);
184 virtual void mouseMoved(MouseEvent& mouseEvent);
void setShove(bool shove)
Sets if the widget should be pushed if the size reaches the minimum.
virtual void mousePressed(MouseEvent &mouseEvent)
FIFE::ImagePtr cursorImage
virtual void mouseExited(MouseEvent &mouseEvent)
virtual void mouseReleased(MouseEvent &mouseEvent)
bool isTopResizable() const
Gets if the widget is resizable at top.
std::vector< CursorState > m_cursors
bool isResizable() const
Gets if the widget is resizable.
uint32_t getId(CursorDirections direction) const
Gets the mouse cursor handle for the specified direction.
void setResizableBorderDistance(int32_t border)
Sets the size of the area that is active for resize events.
virtual void mouseMoved(MouseEvent &mouseEvent)
void setBottomResizable(bool resizable)
Sets if the widget is resizable at bottom.
virtual void resizeToContent(bool recursiv=true)
void setResizable(bool resizable)
Sets if the widget is resizable.
virtual void focusLost(const Event &event)
bool isBottomResizable() const
Gets if the widget is resizable at bottom.
bool isLeftResizable() const
Gets if the widget is resizable at left.
MouseCursorType
Defines the type of shown cursor native -> default cursor image -> cursor from image pool animation -...
bool isRightResizable() const
Gets if the widget is resizable at right.
void setTopResizable(bool resizable)
Sets if the widget is resizable at top.
FIFE::AnimationPtr cursorAnimation
FIFE::ImagePtr getImage(CursorDirections direction)
Gets the mouse image for the specified direction.
void setLeftResizable(bool resizable)
Sets if the widget is resizable at left.
FIFE::MouseCursorType cursorType
int32_t getResizableBorderDistance() const
Gets the size of the area that is active for resize events.
Cursor class manages mouse cursor handling.
FIFE::AnimationPtr getAnimation(CursorDirections direction)
Gets the mouse animation for the specified direction.
bool getShove() const
Gets if the widget should be pushed if the size reaches the minimum.
virtual void mouseDragged(MouseEvent &mouseEvent)
virtual void mouseEntered(MouseEvent &mouseEvent)
void setRightResizable(bool resizable)
Sets if the widget is resizable at right.
virtual ~ResizableWindow()
FIFE::MouseCursorType getType(CursorDirections direction) const
Gets the mouse cursor type for the specified direction.