Struct egui::text_selection::label_text_selection::CurrentSelection
source · struct CurrentSelection {
pub layer_id: LayerId,
pub primary: WidgetTextCursor,
pub secondary: WidgetTextCursor,
}
Fields§
§layer_id: LayerId
The selection is in this layer.
This is to constrain a selection to a single Window.
primary: WidgetTextCursor
When selecting with a mouse, this is where the mouse was released. When moving with e.g. shift+arrows, this is what moves. Note that the two ends can come in any order, and also be equal (no selection).
secondary: WidgetTextCursor
When selecting with a mouse, this is where the mouse was first pressed. This part of the cursor does not move when shift is down.
Trait Implementations§
source§impl Clone for CurrentSelection
impl Clone for CurrentSelection
source§fn clone(&self) -> CurrentSelection
fn clone(&self) -> CurrentSelection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CurrentSelection
impl Debug for CurrentSelection
impl Copy for CurrentSelection
Auto Trait Implementations§
impl Freeze for CurrentSelection
impl RefUnwindSafe for CurrentSelection
impl Send for CurrentSelection
impl Sync for CurrentSelection
impl Unpin for CurrentSelection
impl UnwindSafe for CurrentSelection
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)