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::open to actually open the dialog.
  • A Modal is created using Modal::new(). Make sure to use a let binding when using Modal::new() to ensure you can call things like Modal::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.