struct V4L2::Rect

Overview

Represents rectangular dimensions.

Defined in:

v4l2/rect.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(left : Int32, top : Int32, width : UInt32, height : UInt32) #

[View source]
def self.new(rect_struct : Linux::V4L2Rect) #

Initializes a V4L2::Rect from a Linux::V4L2Rect struct.


[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(left _left = @left, top _top = @top, width _width = @width, height _height = @height) #

[View source]
def height : UInt32 #

def left : Int32 #

def to_unsafe : Linux::V4L2Rect #

Converts the rectangle back into a Linux::V4L2Rect.


[View source]
def top : Int32 #

def width : UInt32 #