struct V4L2::Rect
- V4L2::Rect
- Struct
- Value
- Object
Overview
Represents rectangular dimensions.
Defined in:
v4l2/rect.crConstructors
- .new(left : Int32, top : Int32, width : UInt32, height : UInt32)
-
.new(rect_struct : Linux::V4L2Rect)
Initializes a V4L2::Rect from a Linux::V4L2Rect struct.
Instance Method Summary
- #clone
- #copy_with(left _left = @left, top _top = @top, width _width = @width, height _height = @height)
- #height : UInt32
- #left : Int32
-
#to_unsafe : Linux::V4L2Rect
Converts the rectangle back into a Linux::V4L2Rect.
- #top : Int32
- #width : UInt32
Constructor Detail
def self.new(rect_struct : Linux::V4L2Rect)
#
Initializes a V4L2::Rect from a Linux::V4L2Rect struct.
Instance Method Detail
def copy_with(left _left = @left, top _top = @top, width _width = @width, height _height = @height)
#