#include <resizeoverlay.h>
Inheritance diagram for RectangularOverlay:


Public Slots | |
| void | slotUpdateResizeHandles () |
Public Member Functions | |
| RectangularOverlay (Item *item, int xsnap=1, int ysnap=1) | |
| void | removeTopMiddle () |
| void | removeBotMiddle () |
| QRect | getSizeRect (bool *ok=0, bool *widthOk=0, bool *heightOk=0) const |
| virtual bool | isValidXPos (ResizeHandle *rh) |
| virtual bool | isValidYPos (ResizeHandle *rh) |
Protected Slots | |
| virtual void | slotResizeHandleMoved (int id, double dx, double dy) |
Protected Attributes | |
| ResizeHandle * | m_tl |
| ResizeHandle * | m_tm |
| ResizeHandle * | m_tr |
| ResizeHandle * | m_mr |
| ResizeHandle * | m_br |
| ResizeHandle * | m_bm |
| ResizeHandle * | m_bl |
| ResizeHandle * | m_ml |
Definition at line 219 of file resizeoverlay.h.
| QRect RectangularOverlay::getSizeRect | ( | bool * | ok = 0, |
|
| bool * | widthOk = 0, |
|||
| bool * | heightOk = 0 | |||
| ) | const |
Get the size rectangle from the position of the handles. If the size is invalid (e.g. the parent Item does not consider it a valid size, then *ok is set to false; otherwise to true.
Definition at line 331 of file resizeoverlay.cpp.
References m_br, m_tl, Item::minimumSize(), and ResizeOverlay::p_item.
Referenced by isValidXPos(), isValidYPos(), and slotResizeHandleMoved().
| bool RectangularOverlay::isValidXPos | ( | ResizeHandle * | rh | ) | [virtual] |
Reinherit this function to determine whether the X coordinate of the spot that the resize handle has moved into is valid or not
Reimplemented from ResizeOverlay.
Definition at line 297 of file resizeoverlay.cpp.
References getSizeRect().
| bool RectangularOverlay::isValidYPos | ( | ResizeHandle * | rh | ) | [virtual] |
Reinherit this function to determine whether the Y coordinate of the spot that the resize handle has moved into is valid or not
Reimplemented from ResizeOverlay.
Definition at line 306 of file resizeoverlay.cpp.
References getSizeRect().
1.5.1