|
JUCE
|
Represents the different sections of a resizable border, which allow it to resized in different ways. More...
Public Types | |
| enum | Zones { centre = 0, left = 1, top = 2, right = 4, bottom = 8 } |
| Creates a Zone from a combination of the flags in. More... | |
Public Member Functions | |
| Zone (int zoneFlags) noexcept | |
| Zone () noexcept | |
| Zone (const Zone &) noexcept | |
| Zone & | operator= (const Zone &) noexcept |
| bool | operator== (const Zone &) const noexcept |
| bool | operator!= (const Zone &) const noexcept |
| MouseCursor | getMouseCursor () const noexcept |
| Returns an appropriate mouse-cursor for this resize zone. More... | |
| bool | isDraggingWholeObject () const noexcept |
| Returns true if dragging this zone will move the enire object without resizing it. More... | |
| bool | isDraggingLeftEdge () const noexcept |
| Returns true if dragging this zone will move the object's left edge. More... | |
| bool | isDraggingRightEdge () const noexcept |
| Returns true if dragging this zone will move the object's right edge. More... | |
| bool | isDraggingTopEdge () const noexcept |
| Returns true if dragging this zone will move the object's top edge. More... | |
| bool | isDraggingBottomEdge () const noexcept |
| Returns true if dragging this zone will move the object's bottom edge. More... | |
| template<typename ValueType > | |
| Rectangle< ValueType > | resizeRectangleBy (Rectangle< ValueType > original, const Point< ValueType > &distance) const noexcept |
| Resizes this rectangle by the given amount, moving just the edges that this zone applies to. More... | |
| int | getZoneFlags () const noexcept |
| Returns the raw flags for this zone. More... | |
Static Public Member Functions | |
| static Zone | fromPositionOnBorder (const Rectangle< int > &totalSize, const BorderSize< int > &border, Point< int > position) |
| Given a point within a rectangle with a resizable border, this returns the zone that the point lies within. More... | |
Represents the different sections of a resizable border, which allow it to resized in different ways.
Creates a Zone from a combination of the flags in.
| Enumerator | |
|---|---|
| centre | |
| left | |
| top | |
| right | |
| bottom | |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
static |
Given a point within a rectangle with a resizable border, this returns the zone that the point lies within.
|
noexcept |
Returns an appropriate mouse-cursor for this resize zone.
|
noexcept |
Returns true if dragging this zone will move the enire object without resizing it.
|
noexcept |
Returns true if dragging this zone will move the object's left edge.
|
noexcept |
Returns true if dragging this zone will move the object's right edge.
|
noexcept |
Returns true if dragging this zone will move the object's top edge.
|
noexcept |
Returns true if dragging this zone will move the object's bottom edge.
|
noexcept |
Returns the raw flags for this zone.