1 #ifndef LIB_MAC_AXAPI_DATA_TYPES_H_
2 #define LIB_MAC_AXAPI_DATA_TYPES_H_
6 #include <ApplicationServices/ApplicationServices.h>
12 class ScopedCFTypeRef;
63 std::string ValueTypeToString(
ValueType value_type);
72 float x() {
return x_; }
73 float y() {
return y_; }
75 std::string ToString();
78 Point(
float x,
float y) : x_(x), y_(y) {}
91 Size& operator=(
const Size&) =
default;
94 float width() {
return width_; }
95 float height() {
return height_; }
97 std::string ToString();
100 Size(
float width,
float height) : width_(width), height_(height) {}
113 Rect& operator=(
const Rect&) =
default;
116 Point& origin() {
return origin_; }
117 Size& size() {
return size_; }
119 std::string ToString();
122 Rect(
Point origin,
Size size) : origin_(origin), size_(size) {}
123 Rect(
float x,
float y,
float width,
float height)
124 : origin_(x, y), size_(width, height) {}
139 int length() {
return length_; }
140 int location() {
return location_; }
142 std::string ToString();
145 Range(
int length,
int location) : length_(length), location_(location) {}
161 std::vector<std::string> keys();
162 ValueType getValueType(
const std::string& key);
164 std::string getStringValue(
const std::string& key);
165 AXAPINode getNodeValue(
const std::string& node);
168 explicit Dictionary(CFDictionaryRef cf_dictionary);
171 CFDictionaryRef cf_dictionary_{NULL};
Definition: axapi_node.h:63
Definition: mac_data_types.h:152
Definition: mac_data_types.h:65
Definition: mac_data_types.h:132
Definition: mac_data_types.h:109
Definition: axapi_node.h:21
Definition: mac_data_types.h:87
ValueType
Definition: mac_data_types.h:18