[−][src]Trait termscp::ui::activities::Activity
Required methods
pub fn on_create(&mut self, context: Context)
[src]
on_create
on_create
is the function which must be called to initialize the activity.
on_create
must initialize all the data structures used by the activity
Context is taken from activity manager and will be released only when activity is destroyed
pub fn on_draw(&mut self)
[src]
on_draw
on_draw
is the function which draws the graphical interface.
This function must be called at each tick to refresh the interface
pub fn on_destroy(&mut self) -> Option<Context>
[src]
on_destroy
on_destroy
is the function which cleans up runtime variables and data before terminating the activity.
This function must be called once before terminating the activity.
This function finally releases the context
Implementors
impl Activity for AuthActivity
[src]
pub fn on_create(&mut self, context: Context)
[src]
on_create
on_create
is the function which must be called to initialize the activity.
on_create
must initialize all the data structures used by the activity
Context is taken from activity manager and will be released only when activity is destroyed
pub fn on_draw(&mut self)
[src]
on_draw
on_draw
is the function which draws the graphical interface.
This function must be called at each tick to refresh the interface
pub fn on_destroy(&mut self) -> Option<Context>
[src]
on_destroy
on_destroy
is the function which cleans up runtime variables and data before terminating the activity.
This function must be called once before terminating the activity.
This function finally releases the context
impl Activity for FileTransferActivity
[src]
Activity Trait Keep it clean :) Use methods instead!
pub fn on_create(&mut self, context: Context)
[src]
on_create
on_create
is the function which must be called to initialize the activity.
on_create
must initialize all the data structures used by the activity
pub fn on_draw(&mut self)
[src]
on_draw
on_draw
is the function which draws the graphical interface.
This function must be called at each tick to refresh the interface
pub fn on_destroy(&mut self) -> Option<Context>
[src]
on_destroy
on_destroy
is the function which cleans up runtime variables and data before terminating the activity.
This function must be called once before terminating the activity.