| AAX SDK 2.8.0 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

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 {
53 AAX_Point (
54 float v,
55 float h) :
56 vert(v),
57 horz(h)
58 {}
59
60 AAX_Point (
61 void) :
62 vert(0.0f),
63 horz(0.0f)
64 {}
65
66 float vert;
67 float horz;
68 } AAX_Point;
69#include AAX_ALIGN_FILE_BEGIN
70#include AAX_ALIGN_FILE_RESET
71#include AAX_ALIGN_FILE_END
72
73 inline bool operator==(const AAX_Point& p1, const AAX_Point& p2)
74{
75 return ((p1.vert == p2.vert) && (p1.horz == p2.horz));
76}
77
78 inline bool operator!=(const AAX_Point& p1, const AAX_Point& p2)
79{
80 return !(p1 == p2);
81}
82
83 inline 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
88 inline 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
93 inline bool operator>(const AAX_Point& p1, const AAX_Point& p2)
94{
95 return !(p1 <= p2);
96}
97
98 inline 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 {
110 AAX_Rect (
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
121 AAX_Rect (
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;
133 } AAX_Rect;
134#include AAX_ALIGN_FILE_BEGIN
135#include AAX_ALIGN_FILE_RESET
136#include AAX_ALIGN_FILE_END
137
138 inline 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
143 inline bool operator!=(const AAX_Rect& r1, const AAX_Rect& r2)
144{
145 return !(r1 == r2);
146}
147
153 typedef enum AAX_EViewContainer_Type
154{
155 AAX_eViewContainer_Type_NULL = 0,
156 AAX_eViewContainer_Type_NSView = 1,
157 AAX_eViewContainer_Type_UIView = 2,
158 AAX_eViewContainer_Type_HWND = 3
159} AAX_EViewContainer_Type;
160 AAX_ENUM_SIZE_CHECK( AAX_EViewContainer_Type );
161
162#endif //_TMS320C6X
163
165#endif //AAX_GUITYPES_H
operator!=
bool operator!=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:78
operator<=
bool operator<=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:88
operator==
bool operator==(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:73
AAX_EViewContainer_Type
AAX_EViewContainer_Type
Type of view container.
Definition: AAX_GUITypes.h:154
AAX_eViewContainer_Type_NSView
@ AAX_eViewContainer_Type_NSView
Definition: AAX_GUITypes.h:156
AAX_eViewContainer_Type_HWND
@ AAX_eViewContainer_Type_HWND
Definition: AAX_GUITypes.h:158
AAX_eViewContainer_Type_UIView
@ AAX_eViewContainer_Type_UIView
Definition: AAX_GUITypes.h:157
AAX_eViewContainer_Type_NULL
@ AAX_eViewContainer_Type_NULL
Definition: AAX_GUITypes.h:155
operator>=
bool operator>=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:98
operator<
bool operator<(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:83
operator>
bool operator>(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:93
AAX_ENUM_SIZE_CHECK
#define AAX_ENUM_SIZE_CHECK(x)
Macro to ensure enum type consistency across binaries.
Definition: AAX_Enums.h:54
AAX.h
Various utility definitions for AAX.
AAX_Point
Data structure representing a two-dimensional coordinate point.
Definition: AAX_GUITypes.h:52
AAX_Point::AAX_Point
AAX_Point(float v, float h)
Definition: AAX_GUITypes.h:53
AAX_Point::vert
float vert
Definition: AAX_GUITypes.h:66
AAX_Point::AAX_Point
AAX_Point(void)
Definition: AAX_GUITypes.h:60
AAX_Point::horz
float horz
Definition: AAX_GUITypes.h:67
AAX_Rect
Data structure representing a rectangle in a two-dimensional coordinate plane.
Definition: AAX_GUITypes.h:109
AAX_Rect::width
float width
Definition: AAX_GUITypes.h:131
AAX_Rect::left
float left
Definition: AAX_GUITypes.h:130
AAX_Rect::top
float top
Definition: AAX_GUITypes.h:129
AAX_Rect::AAX_Rect
AAX_Rect(float t, float l, float w, float h)
Definition: AAX_GUITypes.h:110
AAX_Rect::AAX_Rect
AAX_Rect(void)
Definition: AAX_GUITypes.h:121
AAX_Rect::height
float height
Definition: AAX_GUITypes.h:132