pub struct SelectionRecord {
pub shape: ToolKind,
pub label: String,
pub monitor: usize,
pub px: Shape,
pub global_px: Shape,
pub rot_deg: Option<i32>,
pub window_px: Option<Shape>,
pub crop: String,
}Fields§
§shape: ToolKind§label: String§monitor: usize§px: Shape§global_px: Shape§rot_deg: Option<i32>Rotation in degrees (clockwise, 1..360) about the bbox center of
px. Absent means unrotated. Never present for triangles — their
rotation is baked into the stored vertices — nor circles.
window_px: Option<Shape>Coordinates relative to the target window’s top-left; present only
in --target sessions, for selections on the target’s monitor.
Negative values mean the selection lies outside the window.
crop: StringFile name of this selection’s PNG crop, relative to the session dir.
Trait Implementations§
Source§impl Clone for SelectionRecord
impl Clone for SelectionRecord
Source§fn clone(&self) -> SelectionRecord
fn clone(&self) -> SelectionRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectionRecord
impl Debug for SelectionRecord
Source§impl<'de> Deserialize<'de> for SelectionRecord
impl<'de> Deserialize<'de> for SelectionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SelectionRecord
Source§impl PartialEq for SelectionRecord
impl PartialEq for SelectionRecord
Source§impl Serialize for SelectionRecord
impl Serialize for SelectionRecord
impl StructuralPartialEq for SelectionRecord
Auto Trait Implementations§
impl Freeze for SelectionRecord
impl RefUnwindSafe for SelectionRecord
impl Send for SelectionRecord
impl Sync for SelectionRecord
impl Unpin for SelectionRecord
impl UnsafeUnpin for SelectionRecord
impl UnwindSafe for SelectionRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.