Crate egui_modal
source ·Expand description
egui-modal
Modal library for egui
Structs
- Used for constructing and opening a modal dialog. This can be used to both set the title/body/icon of the modal and open it as a one-time call (as opposed to a continous call in the update loop) at the same time. Make sure to call
DialogBuilder::opento actually open the dialog. - A
Modalis created usingModal::new(). Make sure to use aletbinding when usingModal::new()to ensure you can call things likeModal::open()later on. - Contains styling parameters for the modal, like body margin and button colors.
Enums
- An icon. If used, it will be shown next to the body of the modal.
- The different styles a modal button can take.