struct Protocol::Page::LayoutViewport

Overview

Layout viewport position and dimensions.

Included Modules

Defined in:

protocol/page.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def client_height : Int::Primitive #

Height (CSS pixels), excludes scrollbar if present.


[View source]
def client_width : Int::Primitive #

Width (CSS pixels), excludes scrollbar if present.


[View source]
def page_x : Int::Primitive #

Horizontal offset relative to the document (CSS pixels).


[View source]
def page_y : Int::Primitive #

Vertical offset relative to the document (CSS pixels).


[View source]