class

Opal::UI::ScissorContainer

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

A container element that clips all child rendering strictly within its bounds using hardware-inspired scissor testing.

Constructors

new(x : Int32, y : Int32, width : Int32, height : Int32, child : Element | Nil = nil)
Source
new(rect : Rect, child : Element | Nil = nil)
Source

Instance methods

child
Source
child=(child : Element | Nil)
Source
children

Returns child elements for hierarchical tree traversal and DOM querying

Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
rect
Source
rect=(rect : Rect)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source