Control
sapp :: Layout :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
app :: View :: defaultinit
app :: Layout :: defaultinit
app :: Control :: defaultinit
app :: CompositeControl :: defaultinit
gtk :: GtkCallable :: defaultinit
core :: Object :: defaultinit
app :: AppComponent :: defaultinit
core :: Finalizable :: defaultinit
app :: AppObserver :: defaultinit
core :: Finalizable :: finalize
Liberate any resources held byself
before the memory holding self
is freed
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
app :: AppComponent :: notify_observers
Propagateevent
to all observers
by calling AppObserver::on_event
app :: AppComponent :: observers
AllAppObserver
notified of events raised by self
app :: AppComponent :: observers=
AllAppObserver
notified of events raised by self
app :: AppComponent :: on_pause
The application leaves the active state but is still partially visibleapp :: AppComponent :: on_restart
The application returns to a visible state from a previouson_stop
app :: AppComponent :: on_restore_state
The application is launching, restore its state from a previouson_save_state
app :: AppComponent :: on_resume
The application enters the active state, it is in the foreground and interactiveapp :: AppComponent :: on_save_state
The application may be destroyed soon, save its state for a futureon_restore_state
app :: AppComponent :: on_start
The application is starting or restarting, it is visible to the usercore :: Object :: output_class_name
Display class name on stdout (debug only).Control
in the control tree
Control
in the control tree
app :: AppComponent
An element of an application that is notified of the application life cyclegtk :: GtkCallable
# A layout to visually organize `Control`s
abstract class Layout
super View
super CompositeControl
end
lib/app/ui.nit:311,1--315,3
redef class Layout
redef type NATIVE: UIStackView
redef var native = new UIStackView
init
do
native.alignment = new UIStackViewAlignment.fill
end
redef fun add(view)
do
super
var native_view = view.native
assert native_view isa UIView
self.native.add_arranged_subview native_view
end
end
lib/ios/ui/ui.nit:230,1--248,3
redef class Layout
redef type NATIVE: NativeViewGroup
redef fun add(item)
do
super
assert item isa View
# FIXME abstract the use either homogeneous or weight to balance views size in a layout
native.add_view_with_weight(item.native, 1.0)
end
redef fun remove(item)
do
super
if item isa View then native.remove_view item.native
end
end
lib/android/ui/ui.nit:139,1--157,3