class

Opal::UI::MaskContainer

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

A container element that renders its child elements under an active MaskMap with optional feathered alpha dithering.

Constructors

new(mask : MaskMap, child : Element | Nil = nil, feather : Bool = true, offset_x : Int32 = 0, offset_y : Int32 = 0)
Source

Instance methods

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

Returns child elements for hierarchical tree traversal and DOM querying

Source
feather=(feather : Bool)
Source
feather?
Source
mask
Source
mask=(mask : MaskMap)
Source
offset_x
Source
offset_x=(offset_x : Int32)
Source
offset_y
Source
offset_y=(offset_y : Int32)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source