Struct ux::TextureNode[][src]

pub struct TextureNode(_, _);

Implementations

impl TextureNode[src]

pub fn new<P>(
    texture: &P,
    color: Option<Color<f64>>,
    min_filter: ScalingFilter,
    mag_filter: ScalingFilter
) -> TextureNode where
    P: IsA<Texture>, 
[src]

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]

impl<T> PartialOrd<T> for TextureNode where
    T: ObjectType
[src]

impl StaticType for TextureNode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<O> PaintNodeExt for O where
    O: IsA<PaintNode>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,