AAX SDK 2.8.0
Avid Audio Extensions Development Kit
Loading...
Searching...
No Matches
AAX_GUITypes.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 *
4 * Copyright 2013-2015, 2019, 2023-2024 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * This file is part of the Avid AAX SDK.
8 *
9 * The AAX SDK is subject to commercial or open-source licensing.
10 *
11 * By using the AAX SDK, you agree to the terms of both the Avid AAX SDK License
12 * Agreement and Avid Privacy Policy.
13 *
14 * AAX SDK License: https://developer.avid.com/aax
15 * Privacy Policy: https://www.avid.com/legal/privacy-policy-statement
16 *
17 * Or: You may also use this code under the terms of the GPL v3 (see
18 * www.gnu.org/licenses).
19 *
20 * THE AAX SDK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21 * EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22 * DISCLAIMED.
23 *
24 */
25
32/*================================================================================================*/
33
34
36#ifndef AAX_GUITYPES_H
37#define AAX_GUITYPES_H
39
40#ifndef _TMS320C6X
41
42#include "AAX.h"
43
44#include AAX_ALIGN_FILE_BEGIN
45#include AAX_ALIGN_FILE_HOST
46#include AAX_ALIGN_FILE_END
51 typedef struct AAX_Point
52 {
54 float v,
55 float h) :
56 vert(v),
57 horz(h)
58 {}
59
61 void) :
62 vert(0.0f),
63 horz(0.0f)
64 {}
65
66 float vert;
67 float horz;
69#include AAX_ALIGN_FILE_BEGIN
70#include AAX_ALIGN_FILE_RESET
71#include AAX_ALIGN_FILE_END
72
73inline bool operator==(const AAX_Point& p1, const AAX_Point& p2)
74{
75 return ((p1.vert == p2.vert) && (p1.horz == p2.horz));
76}
77
78inline bool operator!=(const AAX_Point& p1, const AAX_Point& p2)
79{
80 return !(p1 == p2);
81}
82
83inline bool operator<(const AAX_Point& p1, const AAX_Point& p2)
84{
85 return (p1.vert == p2.vert) ? (p1.horz < p2.horz) : (p1.vert < p2.vert);
86}
87
88inline bool operator<=(const AAX_Point& p1, const AAX_Point& p2)
89{
90 return (p1.vert == p2.vert) ? (p1.horz <= p2.horz) : (p1.vert < p2.vert);
91}
92
93inline bool operator>(const AAX_Point& p1, const AAX_Point& p2)
94{
95 return !(p1 <= p2);
96}
97
98inline bool operator>=(const AAX_Point& p1, const AAX_Point& p2)
99{
100 return !(p1 < p2);
101}
102
103#include AAX_ALIGN_FILE_BEGIN
104#include AAX_ALIGN_FILE_HOST
105#include AAX_ALIGN_FILE_END
108 typedef struct AAX_Rect
109 {
111 float t,
112 float l,
113 float w,
114 float h) :
115 top(t),
116 left(l),
117 width(w),
118 height(h)
119 {}
120
122 void) :
123 top(0.0f),
124 left(0.0f),
125 width(0.0f),
126 height(0.0f)
127 {}
128
129 float top;
130 float left;
131 float width;
132 float height;
134#include AAX_ALIGN_FILE_BEGIN
135#include AAX_ALIGN_FILE_RESET
136#include AAX_ALIGN_FILE_END
137
138inline bool operator==(const AAX_Rect& r1, const AAX_Rect& r2)
139{
140 return ((r1.top == r2.top) && (r1.left == r2.left) && (r1.width == r2.width) && (r1.height == r2.height));
141}
142
143inline bool operator!=(const AAX_Rect& r1, const AAX_Rect& r2)
144{
145 return !(r1 == r2);
146}
147
154{
161
162#endif //_TMS320C6X
163
165#endif //AAX_GUITYPES_H
bool operator!=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:78
bool operator<=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:88
bool operator==(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:73
AAX_EViewContainer_Type
Type of view container.
Definition: AAX_GUITypes.h:154
@ AAX_eViewContainer_Type_NSView
Definition: AAX_GUITypes.h:156
@ AAX_eViewContainer_Type_HWND
Definition: AAX_GUITypes.h:158
@ AAX_eViewContainer_Type_UIView
Definition: AAX_GUITypes.h:157
@ AAX_eViewContainer_Type_NULL
Definition: AAX_GUITypes.h:155
bool operator>=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:98
bool operator<(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:83
bool operator>(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:93
#define AAX_ENUM_SIZE_CHECK(x)
Macro to ensure enum type consistency across binaries.
Definition: AAX_Enums.h:54
Various utility definitions for AAX.
Data structure representing a two-dimensional coordinate point.
Definition: AAX_GUITypes.h:52
AAX_Point(float v, float h)
Definition: AAX_GUITypes.h:53
float vert
Definition: AAX_GUITypes.h:66
AAX_Point(void)
Definition: AAX_GUITypes.h:60
float horz
Definition: AAX_GUITypes.h:67
Data structure representing a rectangle in a two-dimensional coordinate plane.
Definition: AAX_GUITypes.h:109
float width
Definition: AAX_GUITypes.h:131
float left
Definition: AAX_GUITypes.h:130
float top
Definition: AAX_GUITypes.h:129
AAX_Rect(float t, float l, float w, float h)
Definition: AAX_GUITypes.h:110
AAX_Rect(void)
Definition: AAX_GUITypes.h:121
float height
Definition: AAX_GUITypes.h:132