openshot-audio  0.1.2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ResizableBorderComponent::Zone Class Reference

#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
 
Zoneoperator= (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 (const Rectangle< int > &totalSize, const BorderSize< int > &border, Point< int > position)
 

Detailed Description

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

Member Enumeration Documentation

Creates a Zone from a combination of the flags in.

Enumerator
centre 
left 
top 
right 
bottom 

Constructor & Destructor Documentation

ResizableBorderComponent::Zone::Zone ( int  zoneFlags)
explicitnoexcept
ResizableBorderComponent::Zone::Zone ( )
noexcept
ResizableBorderComponent::Zone::Zone ( const Zone other)
noexcept

Member Function Documentation

ResizableBorderComponent::Zone ResizableBorderComponent::Zone::fromPositionOnBorder ( const Rectangle< int > &  totalSize,
const 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.

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

Returns an appropriate mouse-cursor for this resize zone.

int ResizableBorderComponent::Zone::getZoneFlags ( ) const
inlinenoexcept

Returns the raw flags for this zone.

bool ResizableBorderComponent::Zone::isDraggingBottomEdge ( ) const
inlinenoexcept

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

bool ResizableBorderComponent::Zone::isDraggingLeftEdge ( ) const
inlinenoexcept

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

bool ResizableBorderComponent::Zone::isDraggingRightEdge ( ) const
inlinenoexcept

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

bool ResizableBorderComponent::Zone::isDraggingTopEdge ( ) const
inlinenoexcept

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

bool ResizableBorderComponent::Zone::isDraggingWholeObject ( ) const
inlinenoexcept

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

bool ResizableBorderComponent::Zone::operator!= ( const Zone other) const
noexcept
ResizableBorderComponent::Zone & ResizableBorderComponent::Zone::operator= ( const Zone other)
noexcept
bool ResizableBorderComponent::Zone::operator== ( const Zone other) const
noexcept
template<typename ValueType >
Rectangle<ValueType> ResizableBorderComponent::Zone::resizeRectangleBy ( Rectangle< ValueType >  original,
const Point< ValueType > &  distance 
) const
inlinenoexcept

Resizes this rectangle by the given amount, moving just the edges that this zone applies to.


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