AAX SDK  2.4.1
Avid Audio Extensions Development Kit
AAX_GUITypes.h
Go to the documentation of this file.
1 /*================================================================================================*/
2 /*
3  *
4  * Copyright 2013-2015, 2019 by Avid Technology, Inc.
5  * All rights reserved.
6  *
7  * CONFIDENTIAL: This document contains confidential information. Do not
8  * read or examine this document unless you are an Avid Technology employee
9  * or have signed a non-disclosure agreement with Avid Technology which protects
10  * the confidentiality of this document. DO NOT DISCLOSE ANY INFORMATION
11  * CONTAINED IN THIS DOCUMENT TO ANY THIRD-PARTY WITHOUT THE PRIOR WRITTEN CONSENT
12  * OF Avid Technology, INC.
13  *
14  */
15 
22 /*================================================================================================*/
23 
24 
26 #ifndef AAX_GUITYPES_H
27 #define AAX_GUITYPES_H
29 
30 #ifndef _TMS320C6X
31 
32 #include "AAX.h"
33 
34 #include AAX_ALIGN_FILE_BEGIN
35 #include AAX_ALIGN_FILE_HOST
36 #include AAX_ALIGN_FILE_END
41  typedef struct AAX_Point
42  {
44  float v,
45  float h) :
46  vert(v),
47  horz(h)
48  {}
49 
51  void) :
52  vert(0.0f),
53  horz(0.0f)
54  {}
55 
56  float vert;
57  float horz;
59 #include AAX_ALIGN_FILE_BEGIN
60 #include AAX_ALIGN_FILE_RESET
61 #include AAX_ALIGN_FILE_END
62 
63 inline bool operator==(const AAX_Point& p1, const AAX_Point& p2)
64 {
65  return ((p1.vert == p2.vert) && (p1.horz == p2.horz));
66 }
67 
68 inline bool operator!=(const AAX_Point& p1, const AAX_Point& p2)
69 {
70  return !(p1 == p2);
71 }
72 
73 inline bool operator<(const AAX_Point& p1, const AAX_Point& p2)
74 {
75  return (p1.vert == p2.vert) ? (p1.horz < p2.horz) : (p1.vert < p2.vert);
76 }
77 
78 inline bool operator<=(const AAX_Point& p1, const AAX_Point& p2)
79 {
80  return (p1.vert == p2.vert) ? (p1.horz <= p2.horz) : (p1.vert < p2.vert);
81 }
82 
83 inline bool operator>(const AAX_Point& p1, const AAX_Point& p2)
84 {
85  return !(p1 <= p2);
86 }
87 
88 inline bool operator>=(const AAX_Point& p1, const AAX_Point& p2)
89 {
90  return !(p1 < p2);
91 }
92 
93 #include AAX_ALIGN_FILE_BEGIN
94 #include AAX_ALIGN_FILE_HOST
95 #include AAX_ALIGN_FILE_END
98  typedef struct AAX_Rect
99  {
101  float t,
102  float l,
103  float w,
104  float h) :
105  top(t),
106  left(l),
107  width(w),
108  height(h)
109  {}
110 
112  void) :
113  top(0.0f),
114  left(0.0f),
115  width(0.0f),
116  height(0.0f)
117  {}
118 
119  float top;
120  float left;
121  float width;
122  float height;
124 #include AAX_ALIGN_FILE_BEGIN
125 #include AAX_ALIGN_FILE_RESET
126 #include AAX_ALIGN_FILE_END
127 
128 inline bool operator==(const AAX_Rect& r1, const AAX_Rect& r2)
129 {
130  return ((r1.top == r2.top) && (r1.left == r2.left) && (r1.width == r2.width) && (r1.height == r2.height));
131 }
132 
133 inline bool operator!=(const AAX_Rect& r1, const AAX_Rect& r2)
134 {
135  return !(r1 == r2);
136 }
137 
144 {
151 
152 #endif //_TMS320C6X
153 
155 #endif //AAX_GUITYPES_H
Various utility definitions for AAX.
bool operator!=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:68
struct AAX_Rect AAX_Rect
Data structure representing a rectangle in a two-dimensional coordinate plane.
bool operator<=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:78
AAX_ENUM_SIZE_CHECK(AAX_EViewContainer_Type)
bool operator==(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:63
AAX_EViewContainer_Type
Type of view container.
Definition: AAX_GUITypes.h:144
@ AAX_eViewContainer_Type_NSView
Definition: AAX_GUITypes.h:146
@ AAX_eViewContainer_Type_HWND
Definition: AAX_GUITypes.h:148
@ AAX_eViewContainer_Type_UIView
Definition: AAX_GUITypes.h:147
@ AAX_eViewContainer_Type_NULL
Definition: AAX_GUITypes.h:145
bool operator>=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:88
struct AAX_Point AAX_Point
Data structure representing a two-dimensional coordinate point.
bool operator<(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:73
bool operator>(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:83
Data structure representing a two-dimensional coordinate point.
Definition: AAX_GUITypes.h:42
AAX_Point(float v, float h)
Definition: AAX_GUITypes.h:43
float vert
Definition: AAX_GUITypes.h:56
AAX_Point(void)
Definition: AAX_GUITypes.h:50
float horz
Definition: AAX_GUITypes.h:57
Data structure representing a rectangle in a two-dimensional coordinate plane.
Definition: AAX_GUITypes.h:99
float width
Definition: AAX_GUITypes.h:121
float left
Definition: AAX_GUITypes.h:120
float top
Definition: AAX_GUITypes.h:119
AAX_Rect(float t, float l, float w, float h)
Definition: AAX_GUITypes.h:100
AAX_Rect(void)
Definition: AAX_GUITypes.h:111
float height
Definition: AAX_GUITypes.h:122