pub struct WidgetRegion {
pub param_id: u32,
pub widget_type: WidgetType,
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
pub cx: f32,
pub cy: f32,
pub radius: f32,
pub normalized_value: f32,
pub dropdown_anchor_y: f32,
}Expand description
A widget’s hit region on screen.
Fields§
§param_id: u32§widget_type: WidgetType§x: f32§y: f32§w: f32§h: f32§cx: f32Center x/y and radius for knob (circular hit test).
cy: f32§radius: f32§normalized_value: f32§dropdown_anchor_y: f32Bottom Y of the dropdown button box, set at draw time. Used to position the popup directly below the visual button.
Trait Implementations§
Source§impl Clone for WidgetRegion
impl Clone for WidgetRegion
Source§fn clone(&self) -> WidgetRegion
fn clone(&self) -> WidgetRegion
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 moreAuto Trait Implementations§
impl Freeze for WidgetRegion
impl RefUnwindSafe for WidgetRegion
impl Send for WidgetRegion
impl Sync for WidgetRegion
impl Unpin for WidgetRegion
impl UnsafeUnpin for WidgetRegion
impl UnwindSafe for WidgetRegion
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