pub struct ViewportSurfaceProps {
pub layout: LayoutStyle,
pub target: RenderTargetId,
pub target_px_size: (u32, u32),
pub fit: ViewportFit,
pub opacity: f32,
}Fields§
§layout: LayoutStyle§target: RenderTargetId§target_px_size: (u32, u32)§fit: ViewportFit§opacity: f32Implementations§
Source§impl ViewportSurfaceProps
impl ViewportSurfaceProps
pub fn new(target: RenderTargetId) -> Self
Trait Implementations§
Source§impl Clone for ViewportSurfaceProps
impl Clone for ViewportSurfaceProps
Source§fn clone(&self) -> ViewportSurfaceProps
fn clone(&self) -> ViewportSurfaceProps
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 moreSource§impl Debug for ViewportSurfaceProps
impl Debug for ViewportSurfaceProps
Source§impl IntoElement for ViewportSurfaceProps
impl IntoElement for ViewportSurfaceProps
fn into_element(self, id: GlobalElementId) -> AnyElement
impl Copy for ViewportSurfaceProps
Auto Trait Implementations§
impl Freeze for ViewportSurfaceProps
impl RefUnwindSafe for ViewportSurfaceProps
impl Send for ViewportSurfaceProps
impl Sync for ViewportSurfaceProps
impl Unpin for ViewportSurfaceProps
impl UnsafeUnpin for ViewportSurfaceProps
impl UnwindSafe for ViewportSurfaceProps
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