| AAX SDK 2.6.1 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 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 {
40 AAX_Point (
41 float v,
42 float h) :
43 vert(v),
44 horz(h)
45 {}
46
47 AAX_Point (
48 void) :
49 vert(0.0f),
50 horz(0.0f)
51 {}
52
53 float vert;
54 float horz;
55 } AAX_Point;
56#include AAX_ALIGN_FILE_BEGIN
57#include AAX_ALIGN_FILE_RESET
58#include AAX_ALIGN_FILE_END
59
60 inline bool operator==(const AAX_Point& p1, const AAX_Point& p2)
61{
62 return ((p1.vert == p2.vert) && (p1.horz == p2.horz));
63}
64
65 inline bool operator!=(const AAX_Point& p1, const AAX_Point& p2)
66{
67 return !(p1 == p2);
68}
69
70 inline 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
75 inline 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
80 inline bool operator>(const AAX_Point& p1, const AAX_Point& p2)
81{
82 return !(p1 <= p2);
83}
84
85 inline 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 {
97 AAX_Rect (
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
108 AAX_Rect (
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;
120 } AAX_Rect;
121#include AAX_ALIGN_FILE_BEGIN
122#include AAX_ALIGN_FILE_RESET
123#include AAX_ALIGN_FILE_END
124
125 inline 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
130 inline bool operator!=(const AAX_Rect& r1, const AAX_Rect& r2)
131{
132 return !(r1 == r2);
133}
134
140 typedef enum AAX_EViewContainer_Type
141{
142 AAX_eViewContainer_Type_NULL = 0,
143 AAX_eViewContainer_Type_NSView = 1,
144 AAX_eViewContainer_Type_UIView = 2,
145 AAX_eViewContainer_Type_HWND = 3
146} AAX_EViewContainer_Type;
147 AAX_ENUM_SIZE_CHECK( AAX_EViewContainer_Type );
148
149#endif //_TMS320C6X
150
152#endif //AAX_GUITYPES_H
operator!=
bool operator!=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:65
operator<=
bool operator<=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:75
operator==
bool operator==(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:60
AAX_EViewContainer_Type
AAX_EViewContainer_Type
Type of view container.
Definition: AAX_GUITypes.h:141
AAX_eViewContainer_Type_NSView
@ AAX_eViewContainer_Type_NSView
Definition: AAX_GUITypes.h:143
AAX_eViewContainer_Type_HWND
@ AAX_eViewContainer_Type_HWND
Definition: AAX_GUITypes.h:145
AAX_eViewContainer_Type_UIView
@ AAX_eViewContainer_Type_UIView
Definition: AAX_GUITypes.h:144
AAX_eViewContainer_Type_NULL
@ AAX_eViewContainer_Type_NULL
Definition: AAX_GUITypes.h:142
operator>=
bool operator>=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:85
operator<
bool operator<(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:70
operator>
bool operator>(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:80
AAX_ENUM_SIZE_CHECK
#define AAX_ENUM_SIZE_CHECK(x)
Macro to ensure enum type consistency across binaries.
Definition: AAX_Enums.h:41
AAX.h
Various utility definitions for AAX.
AAX_Point
Data structure representing a two-dimensional coordinate point.
Definition: AAX_GUITypes.h:39
AAX_Point::AAX_Point
AAX_Point(float v, float h)
Definition: AAX_GUITypes.h:40
AAX_Point::vert
float vert
Definition: AAX_GUITypes.h:53
AAX_Point::AAX_Point
AAX_Point(void)
Definition: AAX_GUITypes.h:47
AAX_Point::horz
float horz
Definition: AAX_GUITypes.h:54
AAX_Rect
Data structure representing a rectangle in a two-dimensional coordinate plane.
Definition: AAX_GUITypes.h:96
AAX_Rect::width
float width
Definition: AAX_GUITypes.h:118
AAX_Rect::left
float left
Definition: AAX_GUITypes.h:117
AAX_Rect::top
float top
Definition: AAX_GUITypes.h:116
AAX_Rect::AAX_Rect
AAX_Rect(float t, float l, float w, float h)
Definition: AAX_GUITypes.h:97
AAX_Rect::AAX_Rect
AAX_Rect(void)
Definition: AAX_GUITypes.h:108
AAX_Rect::height
float height
Definition: AAX_GUITypes.h:119