RenderNode

Struct RenderNode 

Source
pub struct RenderNode { /* private fields */ }
Expand description

GLib type: Shared boxed type with reference counted clone semantics.

Implementations§

Source§

impl RenderNode

Source

pub fn as_ptr(&self) -> *mut GskRenderNode

Return the inner pointer to the underlying C value.

Source

pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GskRenderNode) -> &Self

Borrows the underlying C value.

Source§

impl RenderNode

Source

pub const NONE: Option<&'static RenderNode> = None

Source

pub fn draw(&self, cr: &Context)

Source

pub fn bounds(&self) -> Rect

Source

pub fn node_type(&self) -> RenderNodeType

Source

pub fn opaque_rect(&self) -> Option<Rect>

Source

pub fn serialize(&self) -> Bytes

Source

pub fn write_to_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>

Source§

impl RenderNode

Source

pub fn is<T: IsRenderNode>(&self) -> bool

Source

pub fn type_(&self) -> Type

Source

pub fn deserialize(bytes: &Bytes) -> Option<Self>

Source

pub fn deserialize_with_error_func<P: FnMut(&ParseLocation, &ParseLocation, &Error)>( bytes: &Bytes, error_func: P, ) -> Option<Self>

Source

pub fn downcast<T: IsRenderNode>(self) -> Result<T, Self>

Source

pub fn downcast_ref<T: IsRenderNode>(&self) -> Option<&T>

Trait Implementations§

Source§

impl AsRef<RenderNode> for BlendNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for BlurNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for BorderNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for CairoNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for ClipNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for ColorMatrixNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for ColorNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for ConicGradientNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for ContainerNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for CrossFadeNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for DebugNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for FillNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for GLShaderNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for InsetShadowNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for LinearGradientNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for MaskNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for OpacityNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for OutsetShadowNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for RadialGradientNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for RepeatNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for RepeatingLinearGradientNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for RepeatingRadialGradientNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for RoundedClipNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for ShadowNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for StrokeNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for TextNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for TextureNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for TextureScaleNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RenderNode> for TransformNode

Source§

fn as_ref(&self) -> &RenderNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for RenderNode

Source§

fn clone(&self) -> Self

Makes a clone of this shared reference.

This increments the strong reference count of the reference. Dropping the reference will decrement it again.

1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RenderNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl StaticType for RenderNode

Source§

fn static_type() -> Type

Returns the type identifier of Self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> TransparentType for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.