Struct ux::TextureNode [−][src]
pub struct TextureNode(_, _);
Implementations
impl TextureNode
[src][−]
pub fn new<P>(
texture: &P,
color: Option<Color>,
min_filter: ScalingFilter,
mag_filter: ScalingFilter
) -> TextureNode where
P: IsA<Texture>,
[src][−]
texture: &P,
color: Option<Color>,
min_filter: ScalingFilter,
mag_filter: ScalingFilter
) -> TextureNode where
P: IsA<Texture>,
Creates a new PaintNode
that will paint the passed texture
.
This function will take a reference on texture
, so it is safe to
call object_unref
on texture
when it returns.
The color
must not be pre-multiplied with its Color.alpha
channel value; if color
is None
, a fully opaque white color will
be used for blending.
texture
a dx::Texture
color
a Color
used for blending, or None
min_filter
the minification filter for the texture
mag_filter
the magnification filter for the texture
Returns
the newly created PaintNode
.
Use PaintNodeExt::unref
when done
Trait Implementations
impl Clone for TextureNode
[src][+]
impl Debug for TextureNode
[src][+]
impl Display for TextureNode
[src][+]
impl Eq for TextureNode
[src]
impl Hash for TextureNode
[src][+]
impl IsA<PaintNode> for TextureNode
[src]
impl IsA<PipelineNode> for TextureNode
[src]
impl Ord for TextureNode
[src][+]
impl<T> PartialEq<T> for TextureNode where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> PartialOrd<T> for TextureNode where
T: ObjectType,
[src][+]
T: ObjectType,
impl StaticType for TextureNode
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for TextureNode
impl !Send for TextureNode
impl !Sync for TextureNode
impl Unpin for TextureNode
impl UnwindSafe for TextureNode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<O> PaintNodeExt for O where
O: IsA<PaintNode>,
[src][+]
O: IsA<PaintNode>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src][+]
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,