pub struct DisplayFeatureBuilder { /* private fields */ }Expand description
Builder for DisplayFeature.
Implementations§
Source§impl DisplayFeatureBuilder
impl DisplayFeatureBuilder
Sourcepub fn orientation<VALUE: Into<DisplayFeatureOrientation>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn orientation<VALUE: Into<DisplayFeatureOrientation>>( &mut self, value: VALUE, ) -> &mut Self
Orientation of a display feature in relation to screen
Sourcepub fn offset<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn offset<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.
Sourcepub fn mask_length<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn mask_length<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length.
Sourcepub fn build(&self) -> Result<DisplayFeature, DisplayFeatureBuilderError>
pub fn build(&self) -> Result<DisplayFeature, DisplayFeatureBuilderError>
Trait Implementations§
Source§impl Clone for DisplayFeatureBuilder
impl Clone for DisplayFeatureBuilder
Source§fn clone(&self) -> DisplayFeatureBuilder
fn clone(&self) -> DisplayFeatureBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 DisplayFeatureBuilder
impl RefUnwindSafe for DisplayFeatureBuilder
impl Send for DisplayFeatureBuilder
impl Sync for DisplayFeatureBuilder
impl Unpin for DisplayFeatureBuilder
impl UnsafeUnpin for DisplayFeatureBuilder
impl UnwindSafe for DisplayFeatureBuilder
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