pub struct DialogFrame { /* private fields */ }Expand description
A centered dialog window with standard styling.
The requested size is the preferred size of the content inside the frame padding: the content area is at least that large, grows with its content, and is never sized beyond the application window.
§Example
use egui::Vec2;
use egui_charts::ui_kit::dialog::{DialogFrame, dialog_header};
DialogFrame::new("Series Settings", Vec2::new(600.0, 500.0))
.show(ctx, |ui| {
if dialog_header(ui, "Series Settings") {
open = false;
}
// content...
});Implementations§
Source§impl DialogFrame
impl DialogFrame
Sourcepub fn new(id: impl Into<String>, size: Vec2) -> Self
pub fn new(id: impl Into<String>, size: Vec2) -> Self
Create a centered dialog with a preferred size.
Sourcepub fn with_width(id: impl Into<String>, width: f32) -> Self
pub fn with_width(id: impl Into<String>, width: f32) -> Self
Create a centered dialog with a preferred width and auto-height.
Auto Trait Implementations§
impl Freeze for DialogFrame
impl RefUnwindSafe for DialogFrame
impl Send for DialogFrame
impl Sync for DialogFrame
impl Unpin for DialogFrame
impl UnsafeUnpin for DialogFrame
impl UnwindSafe for DialogFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more