pub struct DialogState {
pub is_initialized: bool,
/* private fields */
}Fields§
§is_initialized: boolImplementations§
Source§impl DialogState
impl DialogState
pub fn create_uninitialized() -> Self
pub fn new( initial_screen_provider: WindowScreenProvider, initial_bounds_provider: WindowBoundsProvider, ) -> Self
pub fn with_bounds( initial_position: Option<Vec2>, initial_size: Option<Size>, ) -> Self
pub fn screen_id(&self) -> &str
pub fn bounds_value(&self) -> Rect
pub fn position(&self) -> Vec2
pub fn size(&self) -> Size
pub fn try_screen_id(&self) -> Option<&str>
pub fn try_bounds(&self) -> Option<Rect>
pub fn request_screen(&mut self, p: WindowScreenProvider)
pub fn request_bounds_provider(&mut self, p: WindowBoundsProvider)
pub fn request_bounds_fn<F: Fn(&WindowGeometryProviderScope<'_>) -> Rect + 'static>( &mut self, f: F, )
pub fn request_bounds(&mut self, r: Rect)
pub fn request_position_provider(&mut self, p: WindowPositionProvider)
pub fn request_position(&mut self, pos: Vec2)
pub fn request_position_xy(&mut self, x: f32, y: f32)
pub fn request_size_provider(&mut self, p: WindowSizeProvider)
pub fn request_size(&mut self, sz: Size)
pub fn request_size_xy(&mut self, w: f32, h: f32)
pub fn take_pending_screen(&mut self) -> Option<WindowScreenProvider>
pub fn drain_pending_bounds(&mut self) -> Vec<WindowBoundsProvider>
pub fn apply_pending( &mut self, screen_scope: &WindowScreenProviderScope, geometry_scope: &WindowGeometryProviderScope<'_>, ) -> Option<Rect>
pub fn on_host_bounds_changed(&mut self, bounds: Rect, screen_id: String)
pub fn initialize(&mut self, screen_id: String, bounds: Rect)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DialogState
impl !Send for DialogState
impl !Sync for DialogState
impl !UnwindSafe for DialogState
impl Freeze for DialogState
impl Unpin for DialogState
impl UnsafeUnpin for DialogState
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