Vuo
2.0.2
|
Information about a display screen.
Classes | |
struct | VuoScreen |
Information about a display screen. More... | |
Enumerations | |
enum | VuoScreenType { VuoScreenType_Active, VuoScreenType_Primary, VuoScreenType_Secondary, VuoScreenType_MatchId, VuoScreenType_MatchName } |
How the screen should be selected from those available on the running system. More... | |
Functions | |
VuoScreen | VuoScreen_makeFromJson (struct json_object *js) |
Decodes the JSON object js to create a new value. More... | |
struct json_object * | VuoScreen_getJson (const VuoScreen value) |
Encodes value as a JSON object. More... | |
char * | VuoScreen_getSummary (const VuoScreen value) |
Returns a compact string representation of value . More... | |
bool | VuoScreen_areEqual (VuoScreen value1, VuoScreen value2) |
Returns true if the two screen specifications are identical. More... | |
bool | VuoScreen_isLessThan (const VuoScreen a, const VuoScreen b) |
Returns true if the id of a is less than the id of b . More... | |
bool | VuoScreen_realize (VuoScreen screen, VuoScreen *realizedScreen) |
Given any VuoScreen structure: More... | |
static VuoScreen | VuoScreen_makeFromName (VuoText name) __attribute__((const)) |
Returns a screen with the specified name. More... | |
static const char * | VuoScreen_cStringForType (VuoScreenType type) |
Returns a string constant representing type . More... | |
static VuoScreenType | VuoScreen_typeFromCString (const char *typeString) |
Returns the VuoScreenType corresponding with the typeString . More... | |
VuoScreen | VuoScreen_makeFromString (const char *str) |
Automatically generated function. More... | |
char * | VuoScreen_getString (const VuoScreen value) |
Automatically generated function. More... | |
void | VuoScreen_retain (VuoScreen value) |
Automatically generated function. More... | |
void | VuoScreen_release (VuoScreen value) |
Automatically generated function. More... | |
struct VuoScreen |
Class Members | ||
---|---|---|
VuoInteger | displayMask | CGDisplayIDToOpenGLDisplayMask() |
VuoInteger | dpiHorizontal | |
VuoInteger | dpiVertical | |
VuoInteger | height | |
VuoInteger | id | NSScreenNumber. |
bool | isRealized | True if this VuoScreen refers to a specific screen by ID, and the following values are filled in. |
VuoText | name |
e.g., Color LCD for a built-in MacBook Pro display |
VuoPoint2d | topLeft | |
VuoScreenType | type | |
VuoInteger | width |
enum VuoScreenType |
How the screen should be selected from those available on the running system.
Definition at line 32 of file VuoScreen.h.
Returns true if the two screen specifications are identical.
Definition at line 110 of file VuoScreen.c.
|
inlinestatic |
Returns a string constant representing type
.
Definition at line 95 of file VuoScreen.h.
struct json_object* VuoScreen_getJson | ( | const VuoScreen | value | ) |
Encodes value
as a JSON object.
Definition at line 65 of file VuoScreen.c.
char* VuoScreen_getString | ( | const VuoScreen | value | ) |
Automatically generated function.
char* VuoScreen_getSummary | ( | const VuoScreen | value | ) |
Returns a compact string representation of value
.
Definition at line 88 of file VuoScreen.c.
Returns true if the id of a
is less than the id of b
.
Definition at line 127 of file VuoScreen.c.
VuoScreen VuoScreen_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object js
to create a new value.
Definition at line 43 of file VuoScreen.c.
Returns a screen with the specified name.
Definition at line 86 of file VuoScreen.h.
VuoScreen VuoScreen_makeFromString | ( | const char * | str | ) |
Automatically generated function.
Given any VuoScreen structure:
screen
is already realized, copies it into realizedScreen, and returns true.
If a matching screen is found, sets
realizedScreento match it by ID, fills in all the details, and returns true.
If no matching screen is found, returns false, leaving
realizedDevice` unset. Definition at line 139 of file VuoScreen.c.
void VuoScreen_release | ( | VuoScreen | value | ) |
Automatically generated function.
void VuoScreen_retain | ( | VuoScreen | value | ) |
Automatically generated function.
|
inlinestatic |
Returns the VuoScreenType
corresponding with the typeString
.
If none matches, returns VuoScreenType_Primary.
Definition at line 118 of file VuoScreen.h.