pub struct ViewProperties {
pub bounding_box: BoundingBox,
pub inset_from_min: Vec3,
pub inset_from_max: Vec3,
pub focus_change: bool,
pub downward_input: bool,
}
Expand description
Represents the properties for a View.
Fields§
§bounding_box: BoundingBox
The View’s bounding box extents can be defined as: { bounding_box.min, bounding_box.max } Content contained within the View is clipped to this bounding box.
inset_from_min: Vec3
insets_from_min
and insets_from_max
specify the distances between the
view’s bounding box and that of its parent.
These properties are not strictly enforced by Scenic, but only used as hints for clients and other components that receives ViewProperties:
View clients can assume that anything drawn outside of { bounding_box.min + inset_from_min, bounding_box.max - inset_from_max } may be obscured by an ancestor view. The reason for obscuring, and the rules surrounding it, is specific to each product.
inset_from_max: Vec3
§focus_change: bool
Whether the View can receive a focus event; default is true. When false, and this View is eligible to receive a focus event, no focus/unfocus event is actually sent to any View.
downward_input: bool
Whether the View allows geometrically underlying Views to receive input; default is true. When false, Scenic does not send input events to underlying Views.
Trait Implementations§
Source§impl Clone for ViewProperties
impl Clone for ViewProperties
Source§fn clone(&self) -> ViewProperties
fn clone(&self) -> ViewProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ViewProperties
impl Debug for ViewProperties
Source§impl<D: ResourceDialect> Decode<ViewProperties, D> for ViewProperties
impl<D: ResourceDialect> Decode<ViewProperties, D> for ViewProperties
Source§impl<D: ResourceDialect> Encode<ViewProperties, D> for &ViewProperties
impl<D: ResourceDialect> Encode<ViewProperties, D> for &ViewProperties
Source§impl<D: ResourceDialect, T0: Encode<BoundingBox, D>, T1: Encode<Vec3, D>, T2: Encode<Vec3, D>, T3: Encode<bool, D>, T4: Encode<bool, D>> Encode<ViewProperties, D> for (T0, T1, T2, T3, T4)
impl<D: ResourceDialect, T0: Encode<BoundingBox, D>, T1: Encode<Vec3, D>, T2: Encode<Vec3, D>, T3: Encode<bool, D>, T4: Encode<bool, D>> Encode<ViewProperties, D> for (T0, T1, T2, T3, T4)
Source§impl PartialEq for ViewProperties
impl PartialEq for ViewProperties
Source§impl PartialOrd for ViewProperties
impl PartialOrd for ViewProperties
Source§impl TypeMarker for ViewProperties
impl TypeMarker for ViewProperties
Source§type Owned = ViewProperties
type Owned = ViewProperties
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for ViewProperties
impl ValueTypeMarker for ViewProperties
Source§type Borrowed<'a> = &'a ViewProperties
type Borrowed<'a> = &'a ViewProperties
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for ViewProperties
impl Persistable for ViewProperties
impl StructuralPartialEq for ViewProperties
Auto Trait Implementations§
impl Freeze for ViewProperties
impl RefUnwindSafe for ViewProperties
impl Send for ViewProperties
impl Sync for ViewProperties
impl Unpin for ViewProperties
impl UnwindSafe for ViewProperties
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)