Struct egui::Memory [−][src]
The data that egui persists between frames.
This includes window positions and sizes,
how far the user has scrolled in a ScrollArea etc.
If you want this to persist when closing your app you should serialize Memory and store it.
Fields
options: OptionsImplementations
impl Memory[src]
pub fn layer_id_at(
&self,
pos: Pos2,
resize_interact_radius_side: f32
) -> Option<LayerId>[src]
&self,
pos: Pos2,
resize_interact_radius_side: f32
) -> Option<LayerId>
pub fn request_focus(&mut self, id: Id)[src]
Give keyboard focus to a specific widget
pub fn surrender_focus(&mut self, id: Id)[src]
pub fn stop_text_input(&mut self)[src]
Stop editing of active TextEdit (if any).
pub fn is_anything_being_dragged(&self) -> bool[src]
pub fn is_being_dragged(&self, id: Id) -> bool[src]
pub fn reset_areas(&mut self)[src]
Forget window positions, sizes etc. Can be used to auto-layout windows.
impl Memory[src]
Popups
Popups are things like combo-boxes, color pickers, menus etc. Only one can be be open at a time.
pub fn is_popup_open(&mut self, popup_id: Id) -> bool[src]
pub fn open_popup(&mut self, popup_id: Id)[src]
pub fn close_popup(&mut self)[src]
pub fn toggle_popup(&mut self, popup_id: Id)[src]
pub fn everything_is_visible(&self) -> bool[src]
If true, all windows, menus, tooltips etc are to be visible at once.
This is useful for testing, benchmarking, pre-caching, etc.
Experimental feature!
pub fn set_everything_is_visible(&mut self, value: bool)[src]
If true, all windows, menus, tooltips etc are to be visible at once.
This is useful for testing, benchmarking, pre-caching, etc.
Experimental feature!
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,