struct Protocol::Browser::Bounds

Overview

Browser window bounds information

Included Modules

Defined in:

protocol/browser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def height : Int::Primitive | Nil #

The window height in pixels.


[View source]
def left : Int::Primitive | Nil #

The offset from the left edge of the screen to the window in pixels.


[View source]
def top : Int::Primitive | Nil #

The offset from the top edge of the screen to the window in pixels.


[View source]
def width : Int::Primitive | Nil #

The window width in pixels.


[View source]
def window_state : WindowState | Nil #

The window state. Default to normal.


[View source]