Expand description
egui-modal
Modal library for egui
Structs§
- Dialog
Builder - 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::open
to actually open the dialog. - Modal
- A
Modal
is created usingModal::new()
. Make sure to use alet
binding when usingModal::new()
to ensure you can call things likeModal::open()
later on. - Modal
Style - Contains styling parameters for the modal, like body margin and button colors.
Enums§
- Icon
- An icon. If used, it will be shown next to the body of the modal.
- Modal
Button Style - The different styles a modal button can take.