module Glimmer::LibUI::Parent
Parent
controls and shapes who have children and add child post_initialize_child
Public Instance Methods
children()
click to toggle source
# File lib/glimmer/libui/parent.rb, line 31 def children @children ||= [] end
post_initialize_child(child, add_child: true)
click to toggle source
Subclasses can override and must call super (passing add_child: false to cancel adding child to children)
# File lib/glimmer/libui/parent.rb, line 27 def post_initialize_child(child, add_child: true) children << child if add_child end