openshot-audio  0.1.7
juce_RelativePoint.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
25 #ifndef JUCE_RELATIVEPOINT_H_INCLUDED
26 #define JUCE_RELATIVEPOINT_H_INCLUDED
27 
28 
29 //==============================================================================
36 {
37 public:
39  RelativePoint();
40 
42  RelativePoint (Point<float> absolutePoint);
43 
45  RelativePoint (float absoluteX, float absoluteY);
46 
49 
55  RelativePoint (const String& stringVersion);
56 
57  bool operator== (const RelativePoint&) const noexcept;
58  bool operator!= (const RelativePoint&) const noexcept;
59 
65  Point<float> resolve (const Expression::Scope* evaluationContext) const;
66 
73  void moveToAbsolute (Point<float> newPos, const Expression::Scope* evaluationContext);
74 
80  String toString() const;
81 
83  bool isDynamic() const;
84 
85  // The actual X and Y coords...
87 };
88 
89 
90 #endif // JUCE_RELATIVEPOINT_H_INCLUDED
Definition: juce_RelativeCoordinate.h:70
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_Expression.h:113
Definition: juce_Point.h:39
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_RelativePoint.h:35
RelativeCoordinate y
Definition: juce_RelativePoint.h:86
bool operator==(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:565
bool operator!=(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:566