JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
juce::ResizableBorderComponent::Zone Class Reference

Represents the different sections of a resizable border, which allow it to resized in different ways. More...

#include "juce_ResizableBorderComponent.h"

Public Types

enum  Zones {
  centre , left , top , right ,
  bottom
}
 

Public Member Functions

 Zone (int zoneFlags) noexcept
 Creates a Zone from a combination of the flags in zoneFlags.
 
 Zone (const Zone &) noexcept
 
Zoneoperator= (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.
 
bool isDraggingWholeObject () const noexcept
 Returns true if dragging this zone will move the entire object without resizing it.
 
bool isDraggingLeftEdge () const noexcept
 Returns true if dragging this zone will move the object's left edge.
 
bool isDraggingRightEdge () const noexcept
 Returns true if dragging this zone will move the object's right edge.
 
bool isDraggingTopEdge () const noexcept
 Returns true if dragging this zone will move the object's top edge.
 
bool isDraggingBottomEdge () const noexcept
 Returns true if dragging this zone will move the object's bottom edge.
 
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.
 
int getZoneFlags () const noexcept
 Returns the raw flags for this zone.
 

Static Public Member Functions

static Zone fromPositionOnBorder (Rectangle< int > totalSize, 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.
 

Detailed Description

Represents the different sections of a resizable border, which allow it to resized in different ways.

Definition at line 93 of file juce_ResizableBorderComponent.h.

Member Enumeration Documentation

◆ Zones

enum juce::ResizableBorderComponent::Zone::Zones

Definition at line 97 of file juce_ResizableBorderComponent.h.

Constructor & Destructor Documentation

◆ Zone() [1/3]

juce::ResizableBorderComponent::Zone::Zone ( int  zoneFlags)
explicitnoexcept

Creates a Zone from a combination of the flags in zoneFlags.

Definition at line 30 of file juce_ResizableBorderComponent.cpp.

◆ Zone() [2/3]

juce::ResizableBorderComponent::Zone::Zone ( )
noexcept

Definition at line 29 of file juce_ResizableBorderComponent.cpp.

◆ Zone() [3/3]

juce::ResizableBorderComponent::Zone::Zone ( const Zone other)
noexcept

Definition at line 31 of file juce_ResizableBorderComponent.cpp.

Member Function Documentation

◆ fromPositionOnBorder()

ResizableBorderComponent::Zone juce::ResizableBorderComponent::Zone::fromPositionOnBorder ( Rectangle< int totalSize,
BorderSize< int border,
Point< int position 
)
static

Given a point within a rectangle with a resizable border, this returns the zone that the point lies within.

Definition at line 42 of file juce_ResizableBorderComponent.cpp.

◆ getMouseCursor()

MouseCursor juce::ResizableBorderComponent::Zone::getMouseCursor ( ) const
noexcept

Returns an appropriate mouse-cursor for this resize zone.

Definition at line 69 of file juce_ResizableBorderComponent.cpp.

◆ getZoneFlags()

int juce::ResizableBorderComponent::Zone::getZoneFlags ( ) const
noexcept

Returns the raw flags for this zone.

Definition at line 158 of file juce_ResizableBorderComponent.h.

◆ isDraggingBottomEdge()

bool juce::ResizableBorderComponent::Zone::isDraggingBottomEdge ( ) const
noexcept

Returns true if dragging this zone will move the object's bottom edge.

Definition at line 137 of file juce_ResizableBorderComponent.h.

◆ isDraggingLeftEdge()

bool juce::ResizableBorderComponent::Zone::isDraggingLeftEdge ( ) const
noexcept

Returns true if dragging this zone will move the object's left edge.

Definition at line 131 of file juce_ResizableBorderComponent.h.

◆ isDraggingRightEdge()

bool juce::ResizableBorderComponent::Zone::isDraggingRightEdge ( ) const
noexcept

Returns true if dragging this zone will move the object's right edge.

Definition at line 133 of file juce_ResizableBorderComponent.h.

◆ isDraggingTopEdge()

bool juce::ResizableBorderComponent::Zone::isDraggingTopEdge ( ) const
noexcept

Returns true if dragging this zone will move the object's top edge.

Definition at line 135 of file juce_ResizableBorderComponent.h.

◆ isDraggingWholeObject()

bool juce::ResizableBorderComponent::Zone::isDraggingWholeObject ( ) const
noexcept

Returns true if dragging this zone will move the entire object without resizing it.

Definition at line 129 of file juce_ResizableBorderComponent.h.

◆ operator!=()

bool juce::ResizableBorderComponent::Zone::operator!= ( const Zone other) const
noexcept

Definition at line 40 of file juce_ResizableBorderComponent.cpp.

◆ operator=()

ResizableBorderComponent::Zone & juce::ResizableBorderComponent::Zone::operator= ( const Zone other)
noexcept

Definition at line 33 of file juce_ResizableBorderComponent.cpp.

◆ operator==()

bool juce::ResizableBorderComponent::Zone::operator== ( const Zone other) const
noexcept

Definition at line 39 of file juce_ResizableBorderComponent.cpp.

◆ resizeRectangleBy()

template<typename ValueType >
Rectangle< ValueType > juce::ResizableBorderComponent::Zone::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.

Definition at line 143 of file juce_ResizableBorderComponent.h.


The documentation for this class was generated from the following files: