[−][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
abi_version | Gets FLTK ABI version |
add_handler | Adds a custom handler for unhandled events |
add_timeout | Adds a one-shot timeout callback. The timeout duration |
api_version | Gets FLTK API version |
awake | Awakens the main UI thread with a callback |
belowmouse | Gets the widget that is below the mouse cursor |
channel | Creates a channel returning a Sender and Receiver structs |
crate_version | Gets FLTK crate version |
delay | Delays the current thread by millis. Because std::thread::sleep isn't accurate on windows! |
delete_widget | Deletes widgets and their children. |
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_inside | Returns whether an event occured within a region |
event_inside_widget | Returns whether an event occured within a widget |
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 |
focus | Gets the widget which has focus |
font_count | Gets the number of loaded fonts |
font_index | Finds the index of a font through its name |
font_name | Gets the name of a font through its index |
fonts | Gets a Vector |
is_event_alt | Returns whether the event is a alt key press |
is_event_command | Returns whether the event is a command key press |
is_event_ctrl | Returns whether the event is a control key press |
is_event_shift | Returns whether the event is a shift press |
lock | Locks the main UI thread |
own_colormap | Makes FLTK use its own colormap. This may make FLTK display better |
paste | Used for widgets implementing the InputExt, pastes content from the clipboard |
program_should_quit | Determines whether a program should quit |
pushed | Gets the widget which was pushed |
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 |
set_focus | Sets the widget which has focus |
should_program_quit | Returns whether a quit signal was sent |
unlock | Unlocks the main UI thread |
unsafe_delete_widget⚠ | Deletes widgets and their children recursively deleting their user data |
version | Gets FLTK version |