Divooka Reference

Display Info

13 nodes

On this page 13

Make Display Info

Function

One monitor: where it sits on the virtual desktop, and at what scale.

Signature
DisplayInfo -> Display Info
    Name: Text
    Bounds: Screen Rectangle
    WorkingArea: Screen Rectangle
    IsPrimary: Truth
    DotsPerInch: Integer
DisplayInfo DisplayInfo(
    string Name,
    ScreenRectangle Bounds,
    ScreenRectangle WorkingArea,
    bool IsPrimary,
    int DotsPerInch)

Parameters

nametypedefaultdescription
NameText—The platform's name for the device, for a caller that wants to show a list.
BoundsScreen Rectangle—The whole monitor, in virtual-desktop pixels.
WorkingAreaScreen Rectangle—What is left after the taskbar or dock. Equal to Bounds where the platform does not report one.
IsPrimaryTruth—The one whose top-left corner is the origin.
DotsPerInchInteger—The monitor's effective DPI, 96 meaning unscaled. This is the number a caller needs to convert between a coordinate it computed from a screenshot and a coordinate this package will accept - see the coordinate-space section of the package README, because the answer differs per platform.

Returns

resultDisplay Info
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Deconstruct

Function

This node carries no documentation.

Signature
Deconstruct(Display Info: Display Info) -> (Name: Text, Bounds: Screen Rectangle, WorkingArea: Screen Rectangle, IsPrimary: Truth, DotsPerInch: Integer)
void Deconstruct(
    DisplayInfo Display Info,
    out string Name,
    out ScreenRectangle Bounds,
    out ScreenRectangle WorkingArea,
    out bool IsPrimary,
    out int DotsPerInch)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

NameText
BoundsScreen Rectangle
WorkingAreaScreen Rectangle
IsPrimaryTruth
DotsPerInchInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Display Info
Package
Desktop Automation

Equals

Function

This node carries no documentation.

Overload 1 of 2

Signature
Equals(Display Info: Display Info, obj: Any) -> Truth
bool Equals(DisplayInfo Display Info, object obj)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—
objAny—

Returns

resultTruth

Overload 2 of 2

Signature
Equals(Display Info: Display Info, other: Display Info) -> Truth
bool Equals(DisplayInfo Display Info, DisplayInfo other)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—
otherDisplay Info—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Display Info
Package
Desktop Automation

Bounds

Function

The whole monitor, in virtual-desktop pixels.

Signature
Bounds(Display Info: Display Info) -> Screen Rectangle
ScreenRectangle Bounds(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultScreen Rectangle
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Dots Per Inch

Function

The monitor's effective DPI, 96 meaning unscaled. This is the number a caller needs to convert
between a coordinate it computed from a screenshot and a coordinate this package will accept -
see the coordinate-space section of the package README, because the answer differs per platform.

Signature
DotsPerInch(Display Info: Display Info) -> Integer
int DotsPerInch(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Is Primary

Function

The one whose top-left corner is the origin.

Signature
IsPrimary(Display Info: Display Info) -> Truth
bool IsPrimary(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Name

Function

The platform's name for the device, for a caller that wants to show a list.

Signature
Name(Display Info: Display Info) -> Text
string Name(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Scale Factor

Function

96 DPI is 1.0; a monitor at 150% reports 1.5.

Signature
ScaleFactor(Display Info: Display Info) -> Number
double ScaleFactor(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Working Area

Function

What is left after the taskbar or dock. Equal to Bounds where the platform does not report one.

Signature
WorkingArea(Display Info: Display Info) -> Screen Rectangle
ScreenRectangle WorkingArea(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultScreen Rectangle
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Get Hash Code

Function

This node carries no documentation.

Signature
GetHashCode(Display Info: Display Info) -> Integer
int GetHashCode(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Display Info
Package
Desktop Automation

To String

Function

This node carries no documentation.

Signature
ToString(Display Info: Display Info) -> Text
string ToString(DisplayInfo Display Info)

Parameters

nametypedefaultdescription
Display InfoDisplay Info—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Display Info
Package
Desktop Automation

Op Equality

Function

This node carries no documentation.

Signature
op_Equality(left: Display Info, right: Display Info) -> Truth
bool op_Equality(DisplayInfo left, DisplayInfo right)

Parameters

nametypedefaultdescription
leftDisplay Info—
rightDisplay Info—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation

Op Inequality

Function

This node carries no documentation.

Signature
op_Inequality(left: Display Info, right: Display Info) -> Truth
bool op_Inequality(DisplayInfo left, DisplayInfo right)

Parameters

nametypedefaultdescription
leftDisplay Info—
rightDisplay Info—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Display Info
Package
Desktop Automation