|
LMMS
|
#include <juce_ResizableBorderComponent.h>
Public Types | |
| enum | Zones { centre = 0 , left = 1 , top = 2 , right = 4 , bottom = 8 } |
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 |
| bool | isDraggingWholeObject () const noexcept |
| bool | isDraggingLeftEdge () const noexcept |
| bool | isDraggingRightEdge () const noexcept |
| bool | isDraggingTopEdge () const noexcept |
| bool | isDraggingBottomEdge () const noexcept |
| template<typename ValueType> | |
| Rectangle< ValueType > | resizeRectangleBy (Rectangle< ValueType > original, const Point< ValueType > &distance) const noexcept |
| int | getZoneFlags () const noexcept |
Static Public Member Functions | |
| static Zone | fromPositionOnBorder (Rectangle< int > totalSize, BorderSize< int > border, Point< int > position) |
Private Attributes | |
| int | zone = centre |
Represents the different sections of a resizable border, which allow it to resized in different ways.
|
explicitnoexcept |
Creates a Zone from a combination of the flags in zoneFlags.
|
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.
|
inlinenoexcept |
Returns the raw flags for this zone.
|
inlinenoexcept |
Returns true if dragging this zone will move the object's bottom edge.
|
inlinenoexcept |
Returns true if dragging this zone will move the object's left edge.
|
inlinenoexcept |
Returns true if dragging this zone will move the object's right edge.
|
inlinenoexcept |
Returns true if dragging this zone will move the object's top edge.
|
inlinenoexcept |
Returns true if dragging this zone will move the enire object without resizing it.
|
noexcept |
|
inlinenoexcept |
Resizes this rectangle by the given amount, moving just the edges that this zone applies to.