pub struct Sp<'a> {Show 17 fields
pub x: i32,
pub y: i32,
pub w: i32,
pub h: i32,
pub state: u32,
pub ev: u32,
pub flags: u32,
pub icon: u32,
pub label: Option<&'a str>,
pub value: i32,
pub value2: i32,
pub s: [i32; 4],
pub label2: Option<&'a str>,
pub f: f64,
pub img: Option<&'a Rc<Surface>>,
pub img_ver: u32,
pub track: Option<&'a Track>,
}Expand description
the SP record: inputs of a widget’s size / paint call (SP_* of style.inc)
Fields§
§x: i32placed rectangle (px; filled before the paint call)
y: i32§w: i32§h: i32§state: u320 rest, 1 hover, 2 pressed, 3 disabled
ev: u32EV_* of behave()
flags: u32ST_* / BOX_* / MIF_* / RG_* flags of the widget
icon: u32icon code point (0 = none)
label: Option<&'a str>§value: i32§value2: i32§s: [i32; 4]kept by the style from its size call to its paint call (SP_S0 .. SP_S3)
label2: Option<&'a str>the 8-byte SP_VALUE variants: a second text (menu accelerator, info bar message)
f: f64… an f64 (angle degrees)
img: Option<&'a Rc<Surface>>SP_LABEL variants: a thumbnail (pan), a TRACK record (value sliders: flags, n, stops)
img_ver: u32§track: Option<&'a Track>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Sp<'a>
impl<'a> !Send for Sp<'a>
impl<'a> !Sync for Sp<'a>
impl<'a> !UnwindSafe for Sp<'a>
impl<'a> Forget for Sp<'a>
impl<'a> Freeze for Sp<'a>
impl<'a> Unpin for Sp<'a>
impl<'a> UnsafeUnpin for Sp<'a>
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