[−][src]Module fltk::app
Re-exports
pub use crate::enums::*; |
Structs
App | Basic Application struct, used to instatiate, set the scheme and run the event loop |
Receiver | Creates a receiver struct |
Sender | Creates a sender struct |
Enums
AppScheme | Set the app scheme |
Functions
add_handler | Adds a custom handler for unhandled events |
add_timeout | Adds a one-shot timeout callback. The timeout duration |
awake | Awakens the main UI thread with a callback |
channel | Creates a channel returning a Sender and Receiver structs |
event | Returns the latest captured event |
event_button | Returns the captured button event |
event_clicks | Returns the number of clicks |
event_coords | Returns the x and y coordinates of the captured event |
event_is_click | Determines whether an event was a click |
event_key | Returns the presed key |
event_length | Returns the duration of an event |
event_state | Returns the state of the event |
event_text | Returns a textual representation of the latest event |
get_font_count | Returns the number of fonts available to the application |
get_font_index | Finds the index of a font through its name |
get_font_name | Gets the name of a font through its index |
get_font_names | Returns a list of available fonts to the application |
lock | Locks the main UI thread |
paste | Used for widgets implementing the InputExt, pastes content from the clipboard |
remove_timeout | Removes a timeout callback |
repeat_timeout | Repeats a timeout callback from the expiration of the previous timeout
You may only call this method inside a timeout callback.
The timeout duration |
screen_size | Returns a pair of the width and height of the screen |
set_callback | Sets the callback of a widget |
unlock | Unlocks the main UI thread |