pub struct DialogState {
pub is_initialized: bool,
/* private fields */
}Fields§
§is_initialized: boolImplementations§
Source§impl DialogState
impl DialogState
pub fn create_uninitialized() -> DialogState
pub fn new( initial_screen_provider: WindowScreenProvider, initial_bounds_provider: WindowBoundsProvider, ) -> DialogState
pub fn with_bounds( initial_position: Option<Vec2>, initial_size: Option<Size>, ) -> DialogState
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>(&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§
Source§impl Default for DialogState
impl Default for DialogState
Source§fn default() -> DialogState
fn default() -> DialogState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DialogState
impl !Send for DialogState
impl !Sync for DialogState
impl !UnwindSafe for DialogState
impl Forget for DialogState
impl Freeze for DialogStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<dyn Fn(&WindowScreenProviderScope) -> Screen> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&WindowScreenProviderScope) -> Screen>>: Freeze,
PhantomData<WindowBoundsProvider>: Freeze,
impl Move for DialogState
impl Unpin for DialogState
impl UnsafeUnpin for DialogStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Fn(&WindowScreenProviderScope) -> Screen> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&WindowScreenProviderScope) -> Screen>>: UnsafeUnpin,
PhantomData<WindowBoundsProvider>: UnsafeUnpin,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.