Struct oxygengine_user_interface::widget::unit::image::ImageBoxNode
source · [−]pub struct ImageBoxNode {
pub id: WidgetId,
pub props: Props,
pub width: ImageBoxSizeValue,
pub height: ImageBoxSizeValue,
pub content_keep_aspect_ratio: Option<ImageBoxAspectRatio>,
pub material: ImageBoxMaterial,
pub transform: Transform,
}
Fields
id: WidgetId
props: Props
width: ImageBoxSizeValue
height: ImageBoxSizeValue
content_keep_aspect_ratio: Option<ImageBoxAspectRatio>
material: ImageBoxMaterial
transform: Transform
Implementations
sourceimpl ImageBoxNode
impl ImageBoxNode
pub fn remap_props<F>(&mut self, f: F)where
F: FnMut(Props) -> Props,
Trait Implementations
sourceimpl Clone for ImageBoxNode
impl Clone for ImageBoxNode
sourcefn clone(&self) -> ImageBoxNode
fn clone(&self) -> ImageBoxNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageBoxNode
impl Debug for ImageBoxNode
sourceimpl Default for ImageBoxNode
impl Default for ImageBoxNode
sourcefn default() -> ImageBoxNode
fn default() -> ImageBoxNode
Returns the “default value” for a type. Read more
sourceimpl From<ImageBoxNode> for WidgetNode
impl From<ImageBoxNode> for WidgetNode
sourcefn from(data: ImageBoxNode) -> WidgetNode
fn from(data: ImageBoxNode) -> WidgetNode
Converts to this type from the input type.
sourceimpl From<ImageBoxNode> for WidgetUnitNode
impl From<ImageBoxNode> for WidgetUnitNode
sourcefn from(unit: ImageBoxNode) -> WidgetUnitNode
fn from(unit: ImageBoxNode) -> WidgetUnitNode
Converts to this type from the input type.
sourceimpl TryFrom<ImageBoxNode> for ImageBox
impl TryFrom<ImageBoxNode> for ImageBox
Auto Trait Implementations
impl !RefUnwindSafe for ImageBoxNode
impl Send for ImageBoxNode
impl Sync for ImageBoxNode
impl Unpin for ImageBoxNode
impl !UnwindSafe for ImageBoxNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more