FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <dockarea.h>
Public Member Functions | |
DockArea () | |
DockArea (bool active) | |
virtual | ~DockArea () |
void | setActiveDockArea (bool active) |
bool | isActiveDockArea () const |
void | setTopSide (bool side) |
bool | isTopSide () const |
void | setRightSide (bool side) |
bool | isRightSide () const |
void | setBottomSide (bool side) |
bool | isBottomSide () const |
void | setLeftSide (bool side) |
bool | isLeftSide () const |
void | dockWidget (Widget *widget) |
void | undockWidget (Widget *widget) |
void | setHighlighted (bool highlighted) |
bool | isHighlighted () const |
void | setHighlightColor (const Color &color) |
Sets the highlight color of the widget. More... | |
const Color & | getHighlightColor () const |
Gets the highlight color. More... | |
void | repositionWidget (Widget *widget) |
virtual void | add (Widget *widget) |
virtual void | remove (Widget *widget) |
virtual void | resizeToContent (bool recursiv=true) |
virtual void | expandContent (bool recursiv=true) |
virtual void | mouseEntered (MouseEvent &mouseEvent) |
virtual void | mouseExited (MouseEvent &mouseEvent) |
virtual void | mousePressed (MouseEvent &mouseEvent) |
virtual void | mouseReleased (MouseEvent &mouseEvent) |
virtual void | mouseMoved (MouseEvent &mouseEvent) |
virtual void | mouseDragged (MouseEvent &mouseEvent) |
Public Member Functions inherited from fcn::ResizableWindow | |
ResizableWindow () | |
ResizableWindow (bool resizable) | |
ResizableWindow (const std::string &caption, bool resizable=true) | |
virtual | ~ResizableWindow () |
void | setResizableBorderDistance (int32_t border) |
Sets the size of the area that is active for resize events. More... | |
int32_t | getResizableBorderDistance () const |
Gets the size of the area that is active for resize events. More... | |
void | setResizable (bool resizable) |
Sets if the widget is resizable. More... | |
bool | isResizable () const |
Gets if the widget is resizable. More... | |
void | setTopResizable (bool resizable) |
Sets if the widget is resizable at top. More... | |
bool | isTopResizable () const |
Gets if the widget is resizable at top. More... | |
void | setRightResizable (bool resizable) |
Sets if the widget is resizable at right. More... | |
bool | isRightResizable () const |
Gets if the widget is resizable at right. More... | |
void | setBottomResizable (bool resizable) |
Sets if the widget is resizable at bottom. More... | |
bool | isBottomResizable () const |
Gets if the widget is resizable at bottom. More... | |
void | setLeftResizable (bool resizable) |
Sets if the widget is resizable at left. More... | |
bool | isLeftResizable () const |
Gets if the widget is resizable at left. More... | |
void | setShove (bool shove) |
Sets if the widget should be pushed if the size reaches the minimum. More... | |
bool | getShove () const |
Gets if the widget should be pushed if the size reaches the minimum. More... | |
void | set (CursorDirections direction, uint32_t cursor_id=0) |
Sets the mouse cursor for the specified direction. More... | |
void | set (CursorDirections direction, FIFE::ImagePtr image) |
Sets the mouse cursor type to image for the specified direction. More... | |
void | set (CursorDirections direction, FIFE::AnimationPtr anim) |
Sets the mouse cursor type to animation for the specified direction. More... | |
FIFE::MouseCursorType | getType (CursorDirections direction) const |
Gets the mouse cursor type for the specified direction. More... | |
uint32_t | getId (CursorDirections direction) const |
Gets the mouse cursor handle for the specified direction. More... | |
FIFE::ImagePtr | getImage (CursorDirections direction) |
Gets the mouse image for the specified direction. More... | |
FIFE::AnimationPtr | getAnimation (CursorDirections direction) |
Gets the mouse animation for the specified direction. More... | |
virtual void | focusLost (const Event &event) |
Protected Member Functions | |
void | repositionDockAreas () |
void | keepInBounds () |
Protected Member Functions inherited from fcn::ResizableWindow | |
void | initCursors () |
void | restoreCursor () |
void | saveCursor () |
Protected Attributes | |
bool | m_activeDockArea |
bool | m_topSide |
bool | m_rightSide |
bool | m_bottomSide |
bool | m_leftSide |
bool | m_highlighted |
Color | m_highlightColor |
Color | m_savedColor |
Protected Attributes inherited from fcn::ResizableWindow | |
FIFE::Cursor * | m_cursor |
int32_t | m_borderDistance |
bool | m_resizable |
bool | m_resizableTop |
bool | m_resizableRight |
bool | m_resizableBottom |
bool | m_resizableLeft |
bool | m_resizing |
bool | m_resizeTop |
bool | m_resizeRight |
bool | m_resizeBottom |
bool | m_resizeLeft |
bool | m_shove |
CursorState | m_saved |
std::vector< CursorState > | m_cursors |
Additional Inherited Members | |
Public Types inherited from fcn::ResizableWindow | |
enum | CursorDirections { CURSOR_DIRECTION_L = 0, CURSOR_DIRECTION_R = 1, CURSOR_DIRECTION_T = 2, CURSOR_DIRECTION_B = 5, CURSOR_DIRECTION_LT = 3, CURSOR_DIRECTION_RT = 4, CURSOR_DIRECTION_LB = 6, CURSOR_DIRECTION_RB = 7 } |
Definition at line 38 of file dockarea.h.
fcn::DockArea::DockArea | ( | ) |
Definition at line 38 of file dockarea.cpp.
References fcn::ResizableWindow::setBottomResizable(), fcn::ResizableWindow::setLeftResizable(), fcn::ResizableWindow::setRightResizable(), and fcn::ResizableWindow::setTopResizable().
fcn::DockArea::DockArea | ( | bool | active | ) |
Definition at line 57 of file dockarea.cpp.
References fcn::ResizableWindow::setBottomResizable(), fcn::ResizableWindow::setLeftResizable(), fcn::ResizableWindow::setRightResizable(), and fcn::ResizableWindow::setTopResizable().
|
virtual |
Definition at line 76 of file dockarea.cpp.
|
virtual |
Definition at line 349 of file dockarea.cpp.
References repositionWidget().
Referenced by dockWidget().
void fcn::DockArea::dockWidget | ( | Widget * | widget | ) |
Definition at line 135 of file dockarea.cpp.
References add().
|
virtual |
Definition at line 381 of file dockarea.cpp.
References isBottomSide(), isRightSide(), fcn::ResizableWindow::m_resizing, and repositionDockAreas().
const Color & fcn::DockArea::getHighlightColor | ( | ) | const |
Gets the highlight color.
Definition at line 163 of file dockarea.cpp.
References m_highlightColor.
bool fcn::DockArea::isActiveDockArea | ( | ) | const |
Definition at line 83 of file dockarea.cpp.
References m_activeDockArea.
bool fcn::DockArea::isBottomSide | ( | ) | const |
Definition at line 119 of file dockarea.cpp.
References m_bottomSide.
Referenced by expandContent(), repositionDockAreas(), and resizeToContent().
bool fcn::DockArea::isHighlighted | ( | ) | const |
Definition at line 155 of file dockarea.cpp.
References m_highlighted.
bool fcn::DockArea::isLeftSide | ( | ) | const |
Definition at line 131 of file dockarea.cpp.
References m_leftSide.
Referenced by repositionDockAreas().
bool fcn::DockArea::isRightSide | ( | ) | const |
Definition at line 107 of file dockarea.cpp.
References m_rightSide.
Referenced by expandContent(), repositionDockAreas(), and resizeToContent().
bool fcn::DockArea::isTopSide | ( | ) | const |
Definition at line 95 of file dockarea.cpp.
References m_topSide.
Referenced by repositionDockAreas().
|
protected |
Definition at line 306 of file dockarea.cpp.
References m_bottomSide, m_leftSide, m_rightSide, and m_topSide.
Referenced by repositionDockAreas().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 431 of file dockarea.cpp.
References m_highlighted, fcn::ResizableWindow::m_resizing, fcn::ResizableWindow::mouseDragged(), and repositionDockAreas().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 398 of file dockarea.cpp.
References m_highlighted, and fcn::ResizableWindow::mouseEntered().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 404 of file dockarea.cpp.
References m_highlighted, and fcn::ResizableWindow::mouseExited().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 425 of file dockarea.cpp.
References m_highlighted, and fcn::ResizableWindow::mouseMoved().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 410 of file dockarea.cpp.
References m_highlighted, and fcn::ResizableWindow::mousePressed().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 416 of file dockarea.cpp.
References m_highlighted, fcn::ResizableWindow::m_resizing, fcn::ResizableWindow::mouseReleased(), and repositionDockAreas().
|
virtual |
Definition at line 359 of file dockarea.cpp.
|
protected |
Definition at line 228 of file dockarea.cpp.
References isBottomSide(), isLeftSide(), isRightSide(), isTopSide(), and keepInBounds().
Referenced by expandContent(), mouseDragged(), mouseReleased(), and resizeToContent().
void fcn::DockArea::repositionWidget | ( | Widget * | widget | ) |
Definition at line 167 of file dockarea.cpp.
Referenced by add(), fcn::Panel::mouseDragged(), and fcn::Panel::mouseReleased().
|
virtual |
Reimplemented from fcn::ResizableWindow.
Definition at line 364 of file dockarea.cpp.
References isBottomSide(), isRightSide(), fcn::ResizableWindow::m_resizing, repositionDockAreas(), and fcn::ResizableWindow::resizeToContent().
void fcn::DockArea::setActiveDockArea | ( | bool | active | ) |
Definition at line 79 of file dockarea.cpp.
References m_activeDockArea.
void fcn::DockArea::setBottomSide | ( | bool | side | ) |
Definition at line 111 of file dockarea.cpp.
References m_bottomSide, and fcn::ResizableWindow::setTopResizable().
void fcn::DockArea::setHighlightColor | ( | const Color & | color | ) |
Sets the highlight color of the widget.
color | The highlight color. |
Definition at line 159 of file dockarea.cpp.
References m_highlightColor.
void fcn::DockArea::setHighlighted | ( | bool | highlighted | ) |
Definition at line 143 of file dockarea.cpp.
References m_highlightColor, m_highlighted, and m_savedColor.
void fcn::DockArea::setLeftSide | ( | bool | side | ) |
Definition at line 123 of file dockarea.cpp.
References m_leftSide, and fcn::ResizableWindow::setRightResizable().
void fcn::DockArea::setRightSide | ( | bool | side | ) |
Definition at line 99 of file dockarea.cpp.
References m_rightSide, and fcn::ResizableWindow::setLeftResizable().
void fcn::DockArea::setTopSide | ( | bool | side | ) |
Definition at line 87 of file dockarea.cpp.
References m_topSide, and fcn::ResizableWindow::setBottomResizable().
void fcn::DockArea::undockWidget | ( | Widget * | widget | ) |
Definition at line 139 of file dockarea.cpp.
|
protected |
Definition at line 109 of file dockarea.h.
Referenced by isActiveDockArea(), and setActiveDockArea().
|
protected |
Definition at line 113 of file dockarea.h.
Referenced by isBottomSide(), keepInBounds(), and setBottomSide().
|
protected |
Definition at line 118 of file dockarea.h.
Referenced by getHighlightColor(), setHighlightColor(), and setHighlighted().
|
protected |
Definition at line 116 of file dockarea.h.
Referenced by isHighlighted(), mouseDragged(), mouseEntered(), mouseExited(), mouseMoved(), mousePressed(), mouseReleased(), and setHighlighted().
|
protected |
Definition at line 114 of file dockarea.h.
Referenced by isLeftSide(), keepInBounds(), and setLeftSide().
|
protected |
Definition at line 112 of file dockarea.h.
Referenced by isRightSide(), keepInBounds(), and setRightSide().
|
protected |
Definition at line 119 of file dockarea.h.
Referenced by setHighlighted().
|
protected |
Definition at line 111 of file dockarea.h.
Referenced by isTopSide(), keepInBounds(), and setTopSide().