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,
pub color: Option<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.
color: Option<String>The captured pixel at this selection’s click point, as uppercase
#RRGGBB.
The same interior point assert and emit aim at, so it
describes the pixel automation will actually click — a consumer
can sanity-check that the button was still blue when it was
marked. Optional and additive: absent in sessions written before
it existed, and the schema does not move for it.
Trait Implementations§
Source§impl Clone for SelectionRecord
impl Clone for SelectionRecord
Source§fn clone(&self) -> SelectionRecord
fn clone(&self) -> SelectionRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
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
key and return true if they are equal.