Module action

Source
Expand description

Action functions that can be called anywhere in a Floem application

This module includes a variety of functions that can interact with the window from which the function is being called.

This includes, moving the window, resizing the window, adding context menus and overlays, and running a callback after a specified duration.

Re-exports§

pub use crate::file_action::*;

Structs§

TimerToken
A token associated with a timer

Functions§

add_overlay
Creates a new overlay on the current window.
clear_app_focus
Clear the app focus
debounce_action
Debounce an action
drag_resize_window
If and while the mouse is pressed, allow the window to be resized
drag_window
If and while the mouse is pressed, allow the window to be dragged
exec_after
Execute a callback after a specified duration
focus_window
Focus the window
inspect
Send a message to the application to open the Inspector for this Window
minimize_window
Minimize the window
remove_overlay
Removes an overlay from the current window.
set_ime_allowed
Set whether ime input is shown
set_ime_cursor_area
Set the ime cursor area
set_window_delta
Move the window by a specified delta
set_window_maximized
Set the maximized state of the window
set_window_menu
Set the system window menu
set_window_scale
Set the window scale
set_window_title
Set the title of the window
show_context_menu
Show a system context menu at the specified position
toggle_window_maximized
Toggle whether the window is maximized or not