Struct gsk4::ColorMatrixNode
source · [−]#[repr(transparent)]pub struct ColorMatrixNode { /* private fields */ }
Implementations
sourceimpl ColorMatrixNode
impl ColorMatrixNode
pub fn new(
child: impl AsRef<RenderNode>,
color_matrix: &Matrix,
color_offset: &Vec4
) -> ColorMatrixNode
pub fn child(&self) -> RenderNode
pub fn color_matrix(&self) -> Matrix
pub fn color_offset(&self) -> Vec4
Methods from Deref<Target = RenderNode>
pub const NONE: Option<&'static RenderNode> = None
pub fn draw(&self, cr: &Context)
pub fn bounds(&self) -> Rect
pub fn node_type(&self) -> RenderNodeType
pub fn serialize(&self) -> Bytes
pub fn write_to_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>
pub fn is<T: IsRenderNode>(&self) -> bool
pub fn type_(&self) -> Type
pub fn downcast_ref<T: IsRenderNode>(&self) -> Option<&T>
Trait Implementations
sourceimpl AsRef<RenderNode> for ColorMatrixNode
impl AsRef<RenderNode> for ColorMatrixNode
sourcefn as_ref(&self) -> &RenderNode
fn as_ref(&self) -> &RenderNode
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ColorMatrixNode
impl Clone for ColorMatrixNode
sourceimpl Debug for ColorMatrixNode
impl Debug for ColorMatrixNode
sourceimpl Deref for ColorMatrixNode
impl Deref for ColorMatrixNode
type Target = RenderNode
type Target = RenderNode
The resulting type after dereferencing.
sourceimpl Display for ColorMatrixNode
impl Display for ColorMatrixNode
sourceimpl<'a> FromValue<'a> for ColorMatrixNode
Available on crate feature v4_6
only.
impl<'a> FromValue<'a> for ColorMatrixNode
Available on crate feature
v4_6
only.type Checker = GenericValueTypeOrNoneChecker<ColorMatrixNode>
type Checker = GenericValueTypeOrNoneChecker<ColorMatrixNode>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl IsRenderNode for ColorMatrixNode
impl IsRenderNode for ColorMatrixNode
const NODE_TYPE: RenderNodeType = RenderNodeType::ColorMatrixNode
fn upcast(self) -> RenderNode
fn upcast_ref(&self) -> &RenderNode
sourceimpl StaticType for ColorMatrixNode
impl StaticType for ColorMatrixNode
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for ColorMatrixNode
Available on crate feature v4_6
only.
impl ToValue for ColorMatrixNode
Available on crate feature
v4_6
only.sourceimpl ToValueOptional for ColorMatrixNode
Available on crate feature v4_6
only.
impl ToValueOptional for ColorMatrixNode
Available on crate feature
v4_6
only.sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option
to a Value
.
sourceimpl ValueType for ColorMatrixNode
Available on crate feature v4_6
only.
impl ValueType for ColorMatrixNode
Available on crate feature
v4_6
only.type Type = ColorMatrixNode
type Type = ColorMatrixNode
Type to get the Type
from. Read more
Auto Trait Implementations
impl RefUnwindSafe for ColorMatrixNode
impl !Send for ColorMatrixNode
impl !Sync for ColorMatrixNode
impl Unpin for ColorMatrixNode
impl UnwindSafe for ColorMatrixNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.