struct Espresso::FrameSize

Overview

Sizes of each edge of a window.

Defined in:

espresso/frame_size.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(left : Int32, top : Int32, right : Int32, bottom : Int32) #

Creates the size with initial values.


[View source]

Instance Method Detail

def bottom : Int32 #

Size of the bottom edge, in screen coordinates.


[View source]
def left : Int32 #

Size of the left edge, in screen coordinates.


[View source]
def right : Int32 #

Size of the right edge, in screen coordinates.


[View source]
def to_s(io) #

Creates a string representation of the frame size.


[View source]
def top : Int32 #

Size of the top edge, in screen coordinates.


[View source]