class Lcui::Widget
- Lcui::Widget
- Reference
- Object
Defined in:
lcui/widget.crConstructors
Class Method Summary
Instance Method Summary
- #add_class(*cnames : String)
- #append_child(*widgets : Widget)
- #bind_event(event : String, callback : Lcui::EventCallback)
- #bind_event(event : String, &callback : Lcui::EventCallback)
- #destroy
- #finalize
- #get_attr(name : String)
- #has_class(cname : String)
- #id : Int64
- #id=(id : Int64)
- #internal : LibLCUI::LcuiWidget
- #internal=(internal : LibLCUI::LcuiWidget)
- #move(x : LibC::Float, y : LibC::Float)
- #ptr : Pointer(LibLCUI::LcuiWidgetRec)
- #remove_children
- #remove_class(cname : String)
- #resize(width : LibC::Float, height : LibC::Float)
- #set_attr(name : String, value : String)
- #unbind_event(event_id : LibC::Int)
- #unmount_child(widget : Widget)
Constructor Detail
def self.new(internal : LibLCUI::LcuiWidget, classes : Array(String) | Nil = nil, children : Array(Widget) | Nil = nil, indirect : Bool = false, events : Hash(String, Lcui::EventCallback | EventCallback) | Nil = nil)
#