AAX SDK 2.6.1
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 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * CONFIDENTIAL: this document contains confidential information of Avid. Do
8 * not disclose to any third party. Use of the information contained in this
9 * document is subject to an Avid SDK license.
10 *
11 */
12
19/*================================================================================================*/
20
21
23#ifndef AAX_GUITYPES_H
24#define AAX_GUITYPES_H
26
27#ifndef _TMS320C6X
28
29#include "AAX.h"
30
31#include AAX_ALIGN_FILE_BEGIN
32#include AAX_ALIGN_FILE_HOST
33#include AAX_ALIGN_FILE_END
38 typedef struct AAX_Point
39 {
41 float v,
42 float h) :
43 vert(v),
44 horz(h)
45 {}
46
48 void) :
49 vert(0.0f),
50 horz(0.0f)
51 {}
52
53 float vert;
54 float horz;
56#include AAX_ALIGN_FILE_BEGIN
57#include AAX_ALIGN_FILE_RESET
58#include AAX_ALIGN_FILE_END
59
60inline bool operator==(const AAX_Point& p1, const AAX_Point& p2)
61{
62 return ((p1.vert == p2.vert) && (p1.horz == p2.horz));
63}
64
65inline bool operator!=(const AAX_Point& p1, const AAX_Point& p2)
66{
67 return !(p1 == p2);
68}
69
70inline bool operator<(const AAX_Point& p1, const AAX_Point& p2)
71{
72 return (p1.vert == p2.vert) ? (p1.horz < p2.horz) : (p1.vert < p2.vert);
73}
74
75inline bool operator<=(const AAX_Point& p1, const AAX_Point& p2)
76{
77 return (p1.vert == p2.vert) ? (p1.horz <= p2.horz) : (p1.vert < p2.vert);
78}
79
80inline bool operator>(const AAX_Point& p1, const AAX_Point& p2)
81{
82 return !(p1 <= p2);
83}
84
85inline bool operator>=(const AAX_Point& p1, const AAX_Point& p2)
86{
87 return !(p1 < p2);
88}
89
90#include AAX_ALIGN_FILE_BEGIN
91#include AAX_ALIGN_FILE_HOST
92#include AAX_ALIGN_FILE_END
95 typedef struct AAX_Rect
96 {
98 float t,
99 float l,
100 float w,
101 float h) :
102 top(t),
103 left(l),
104 width(w),
105 height(h)
106 {}
107
109 void) :
110 top(0.0f),
111 left(0.0f),
112 width(0.0f),
113 height(0.0f)
114 {}
115
116 float top;
117 float left;
118 float width;
119 float height;
121#include AAX_ALIGN_FILE_BEGIN
122#include AAX_ALIGN_FILE_RESET
123#include AAX_ALIGN_FILE_END
124
125inline bool operator==(const AAX_Rect& r1, const AAX_Rect& r2)
126{
127 return ((r1.top == r2.top) && (r1.left == r2.left) && (r1.width == r2.width) && (r1.height == r2.height));
128}
129
130inline bool operator!=(const AAX_Rect& r1, const AAX_Rect& r2)
131{
132 return !(r1 == r2);
133}
134
141{
148
149#endif //_TMS320C6X
150
152#endif //AAX_GUITYPES_H
bool operator!=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:65
bool operator<=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:75
bool operator==(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:60
AAX_EViewContainer_Type
Type of view container.
Definition: AAX_GUITypes.h:141
@ AAX_eViewContainer_Type_NSView
Definition: AAX_GUITypes.h:143
@ AAX_eViewContainer_Type_HWND
Definition: AAX_GUITypes.h:145
@ AAX_eViewContainer_Type_UIView
Definition: AAX_GUITypes.h:144
@ AAX_eViewContainer_Type_NULL
Definition: AAX_GUITypes.h:142
bool operator>=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:85
bool operator<(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:70
bool operator>(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:80
#define AAX_ENUM_SIZE_CHECK(x)
Macro to ensure enum type consistency across binaries.
Definition: AAX_Enums.h:41
Various utility definitions for AAX.
Data structure representing a two-dimensional coordinate point.
Definition: AAX_GUITypes.h:39
AAX_Point(float v, float h)
Definition: AAX_GUITypes.h:40
float vert
Definition: AAX_GUITypes.h:53
AAX_Point(void)
Definition: AAX_GUITypes.h:47
float horz
Definition: AAX_GUITypes.h:54
Data structure representing a rectangle in a two-dimensional coordinate plane.
Definition: AAX_GUITypes.h:96
float width
Definition: AAX_GUITypes.h:118
float left
Definition: AAX_GUITypes.h:117
float top
Definition: AAX_GUITypes.h:116
AAX_Rect(float t, float l, float w, float h)
Definition: AAX_GUITypes.h:97
AAX_Rect(void)
Definition: AAX_GUITypes.h:108
float height
Definition: AAX_GUITypes.h:119