//! Module containing all essentials tools to create a Rtop's plugin
/// Trait representing a Widget. Must be implemented on your struct to declare it as a Widget.
pubtraitWidget{/// # Called every time Rtop need to update the widget display
fndisplay(&mutself, height:i32, width:i32)-> String;/// # Called every time `display` is called, Change the title of the window if None is not returned.
fntitle(&mutself)->Option<String>{None}/// # `Event` -- Called three time per second, even if the widget is not focused or not visible for the user.
fnon_update(&mutself){}/// # `Event` -- Called when an user input somethings when the widget is focused<br>
/// ```⚠️ Only called if input is defined to true when creating the widget```
fnon_input(&mutself, _key: String){}/// # Called once when a widget is loaded. Can be used to init some information
fninit(&mutself){}}