AAX SDK  2.1.1
Avid Audio Extensions Development Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AAX_GUITypes.h
Go to the documentation of this file.
1 /*================================================================================================*/
2 /*
3  *
4  * Copyright 2013 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 Technolgy, INC.
13  *
14  */
15 
22 /*================================================================================================*/
23 
24 
25 #ifndef AAX_GUITYPES_H
26 #define AAX_GUITYPES_H
27 
28 #ifndef _TMS320C6X
29 
30 #include "AAX.h"
31 
32 #include AAX_ALIGN_FILE_HOST
33 
35  typedef struct AAX_Point
36  {
38  float v,
39  float h) :
40  vert(v),
41  horz(h)
42  {}
43 
45  void) :
46  vert(0.0f),
47  horz(0.0f)
48  {}
49 
50  float vert;
51  float horz;
52  } AAX_Point;
53 #include AAX_ALIGN_FILE_RESET
54 
55 inline bool operator==(const AAX_Point& p1, const AAX_Point& p2)
56 {
57  return ((p1.vert == p2.vert) && (p1.horz == p2.horz));
58 }
59 
60 inline bool operator!=(const AAX_Point& p1, const AAX_Point& p2)
61 {
62  return !(p1 == p2);
63 }
64 
65 #include AAX_ALIGN_FILE_HOST
66 
68  typedef struct AAX_Rect
69  {
71  float t,
72  float l,
73  float w,
74  float h) :
75  top(t),
76  left(l),
77  width(w),
78  height(h)
79  {}
80 
82  void) :
83  top(0.0f),
84  left(0.0f),
85  width(0.0f),
86  height(0.0f)
87  {}
88 
89  float top;
90  float left;
91  float width;
92  float height;
93  } AAX_Rect;
94 #include AAX_ALIGN_FILE_RESET
95 
102 {
109 
110 #endif //_TMS320C6X
111 
112 #endif //AAX_GUITYPES_H
AAX_EViewContainer_Type
Type of view container.
Definition: AAX_GUITypes.h:101
AAX_Rect(void)
Definition: AAX_GUITypes.h:81
Various utility definitions for AAX.
AAX_Point(float v, float h)
Definition: AAX_GUITypes.h:37
struct AAX_Rect AAX_Rect
Data structure representing a rectangle in a two-dimensional coordinate plane.
float height
Definition: AAX_GUITypes.h:92
Definition: AAX_GUITypes.h:106
Data structure representing a two-dimensional coordinate point.
Definition: AAX_GUITypes.h:35
float vert
Definition: AAX_GUITypes.h:50
Definition: AAX_GUITypes.h:103
#define AAX_ENUM_SIZE_CHECK(x)
Macro to ensure enum type consistency across binaries.
Definition: AAX_Enums.h:42
Definition: AAX_GUITypes.h:104
float horz
Definition: AAX_GUITypes.h:51
float left
Definition: AAX_GUITypes.h:90
bool operator!=(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:60
struct AAX_Point AAX_Point
Data structure representing a two-dimensional coordinate point.
AAX_Point(void)
Definition: AAX_GUITypes.h:44
bool operator==(const AAX_Point &p1, const AAX_Point &p2)
Definition: AAX_GUITypes.h:55
float top
Definition: AAX_GUITypes.h:89
float width
Definition: AAX_GUITypes.h:91
Data structure representing a rectangle in a two-dimensional coordinate plane.
Definition: AAX_GUITypes.h:68
Definition: AAX_GUITypes.h:105
AAX_Rect(float t, float l, float w, float h)
Definition: AAX_GUITypes.h:70