Vuo
1.2.1
|
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. | |
struct json_object * | VuoScreen_getJson (const VuoScreen value) |
Encodes value as a JSON object. | |
char * | VuoScreen_getSummary (const VuoScreen value) |
Returns a compact string representation of value . | |
bool | VuoScreen_areEqual (VuoScreen value1, VuoScreen value2) |
Returns true if the two screen specifications are identical. | |
bool | VuoScreen_realize (VuoScreen screen, VuoScreen *realizedScreen) |
Given any VuoScreen structure: | |
static VuoScreen | VuoScreen_makeFromName (VuoText name) __attribute__((const )) |
Returns a screen with the specified name. | |
static const char * | VuoScreen_cStringForType (VuoScreenType type) |
Returns a string constant representing type . | |
static VuoScreenType | VuoScreen_typeFromCString (const char *typeString) |
Returns the VuoScreenType corresponding with the typeString . | |
VuoScreen | VuoScreen_makeFromString (const char *str) |
Automatically generated function. | |
char * | VuoScreen_getString (const VuoScreen value) |
Automatically generated function. | |
void | VuoScreen_retain (VuoScreen value) |
Automatically generated function. | |
void | VuoScreen_release (VuoScreen value) |
Automatically generated function. | |
struct VuoScreen |
Class Members | ||
---|---|---|
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.
Returns true if the two screen specifications are identical.
|
inlinestatic |
Returns a string constant representing type
.
|
read |
Encodes value
as a JSON object.
char* VuoScreen_getString | ( | const VuoScreen | value | ) |
Automatically generated function.
char* VuoScreen_getSummary | ( | const VuoScreen | value | ) |
Returns a compact string representation of value
.
VuoScreen VuoScreen_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object js
to create a new value.
Returns a screen with the specified name.
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. 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.