Struct gsk4::InsetShadowNode
source · [−]#[repr(transparent)]pub struct InsetShadowNode { /* private fields */ }
Implementations
sourceimpl InsetShadowNode
impl InsetShadowNode
pub fn new(
outline: &RoundedRect,
color: &RGBA,
dx: f32,
dy: f32,
spread: f32,
blur_radius: f32
) -> InsetShadowNode
pub fn blur_radius(&self) -> f32
pub fn color(&self) -> RGBA
pub fn dx(&self) -> f32
pub fn dy(&self) -> f32
pub fn outline(&self) -> RoundedRect
pub fn spread(&self) -> f32
Methods from Deref<Target = RenderNode>
pub const NONE: Option<&'static RenderNode>
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 InsetShadowNode
impl AsRef<RenderNode> for InsetShadowNode
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 InsetShadowNode
impl Clone for InsetShadowNode
sourceimpl Debug for InsetShadowNode
impl Debug for InsetShadowNode
sourceimpl Deref for InsetShadowNode
impl Deref for InsetShadowNode
type Target = RenderNode
type Target = RenderNode
The resulting type after dereferencing.
sourceimpl Display for InsetShadowNode
impl Display for InsetShadowNode
sourceimpl IsRenderNode for InsetShadowNode
impl IsRenderNode for InsetShadowNode
const NODE_TYPE: RenderNodeType
fn upcast(self) -> RenderNode
fn upcast_ref(&self) -> &RenderNode
sourceimpl StaticType for InsetShadowNode
impl StaticType for InsetShadowNode
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for InsetShadowNode
impl !Send for InsetShadowNode
impl !Sync for InsetShadowNode
impl Unpin for InsetShadowNode
impl UnwindSafe for InsetShadowNode
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.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more