Struct gsk4::CrossFadeNode
source · [−]#[repr(transparent)]pub struct CrossFadeNode { /* private fields */ }
Implementations
sourceimpl CrossFadeNode
impl CrossFadeNode
pub fn new(
start: impl AsRef<RenderNode>,
end: impl AsRef<RenderNode>,
progress: f32
) -> CrossFadeNode
pub fn end_child(&self) -> RenderNode
pub fn progress(&self) -> f32
pub fn start_child(&self) -> RenderNode
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 CrossFadeNode
impl AsRef<RenderNode> for CrossFadeNode
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 CrossFadeNode
impl Clone for CrossFadeNode
sourceimpl Debug for CrossFadeNode
impl Debug for CrossFadeNode
sourceimpl Deref for CrossFadeNode
impl Deref for CrossFadeNode
type Target = RenderNode
type Target = RenderNode
The resulting type after dereferencing.
sourceimpl Display for CrossFadeNode
impl Display for CrossFadeNode
sourceimpl<'a> FromValue<'a> for CrossFadeNode
Available on crate feature v4_6
only.
impl<'a> FromValue<'a> for CrossFadeNode
Available on crate feature
v4_6
only.type Checker = GenericValueTypeOrNoneChecker<CrossFadeNode>
type Checker = GenericValueTypeOrNoneChecker<CrossFadeNode>
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 CrossFadeNode
impl IsRenderNode for CrossFadeNode
const NODE_TYPE: RenderNodeType = RenderNodeType::CrossFadeNode
fn upcast(self) -> RenderNode
fn upcast_ref(&self) -> &RenderNode
sourceimpl StaticType for CrossFadeNode
impl StaticType for CrossFadeNode
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for CrossFadeNode
Available on crate feature v4_6
only.
impl ToValue for CrossFadeNode
Available on crate feature
v4_6
only.sourceimpl ToValueOptional for CrossFadeNode
Available on crate feature v4_6
only.
impl ToValueOptional for CrossFadeNode
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 CrossFadeNode
Available on crate feature v4_6
only.
impl ValueType for CrossFadeNode
Available on crate feature
v4_6
only.type Type = CrossFadeNode
type Type = CrossFadeNode
Type to get the Type
from. Read more
Auto Trait Implementations
impl RefUnwindSafe for CrossFadeNode
impl !Send for CrossFadeNode
impl !Sync for CrossFadeNode
impl Unpin for CrossFadeNode
impl UnwindSafe for CrossFadeNode
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.