class Lcui::Widget

Defined in:

lcui/widget.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]

Class Method Detail

def self.make(**opts) #

[View source]
def self.make_proto(proto_name : String, **opts) #

[View source]
def self.root #

[View source]

Instance Method Detail

def add_class(*cnames : String) #

[View source]
def append_child(*widgets : Widget) #

[View source]
def bind_event(event : String, callback : Lcui::EventCallback) #

[View source]
def bind_event(event : String, &callback : Lcui::EventCallback) #

[View source]
def destroy #

[View source]
def finalize #

[View source]
def get_attr(name : String) #

[View source]
def has_class(cname : String) #

[View source]
def id : Int64 #

[View source]
def id=(id : Int64) #

[View source]
def internal : LibLCUI::LcuiWidget #

[View source]
def internal=(internal : LibLCUI::LcuiWidget) #

[View source]
def move(x : LibC::Float, y : LibC::Float) #

[View source]
def ptr : Pointer(LibLCUI::LcuiWidgetRec) #

[View source]
def remove_children #

[View source]
def remove_class(cname : String) #

[View source]
def resize(width : LibC::Float, height : LibC::Float) #

[View source]
def set_attr(name : String, value : String) #

[View source]
def unbind_event(event_id : LibC::Int) #

[View source]
def unmount_child(widget : Widget) #

[View source]