ButtonPressEvent
app :: Button :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
app :: Button :: defaultinit
app :: TextView :: defaultinit
core :: Finalizable :: defaultinit
gtk :: GtkCallable :: defaultinit
core :: Object :: defaultinit
app :: AppObserver :: defaultinit
app :: AppComponent :: defaultinit
app :: Control :: defaultinit
app :: View :: 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
redef class Button
redef type NATIVE: UIButton
redef var native = new UIButton(new UIButtonType.system)
init do native.set_callback self
redef fun on_ios_event do notify_observers new ButtonPressEvent(self)
redef fun text=(text) do if text != null then native.title = text.to_nsstring
redef fun text do return native.current_title.to_s
redef fun enabled=(enabled) do native.enabled = enabled or else true
redef fun enabled do return native.enabled
redef fun size=(size) do native.title_label.size = ios_points(size)
redef fun align=(align) do native.title_label.align = align or else 0.0
end
lib/ios/ui/ui.nit:401,1--419,3
redef class Button
redef type NATIVE: GtkButton
redef var native = new GtkButton
redef fun text do return native.text
redef fun text=(value) do native.text = (value or else "").to_s
redef fun signal(sender, data) do notify_observers new ButtonPressEvent(self)
init do native.signal_connect("clicked", self, null)
end
lib/linux/ui.nit:240,1--250,3
redef class Button
super Finalizable
redef type NATIVE: NativeButton
redef var native = (new NativeButton(app.native_activity, self)).new_global_ref
private fun on_click do notify_observers new ButtonPressEvent(self)
redef fun finalize do native.delete_global_ref
end
lib/android/ui/ui.nit:317,1--326,3