Gnome::Gsk4::RadialGradientNode

#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------

Description

A render node for a radial gradient.

#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------

Class initialization

new

:native-object

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )

#-------------------------------------------------------------------------------

new-radialgradientnode

Creates a Gnome::Gsk4::RenderNode that draws a radial gradient.

The radial gradient starts around $center. The size of the gradient is dictated by $hradius in horizontal orientation and by $vradius in vertial orientation.

method new-radialgradientnode ( N-Object $bounds, N-Object $center, Num() $hradius, Num() $vradius, Num() $start, Num() $end, N-Object $color-stops, Int() $n-color-stops --> Gnome::Gsk4::RadialGradientNode \)
  • $bounds; the bounds of the node

  • $center; the center of the gradient

  • $hradius; the horizontal radius.

  • $vradius; the vertical radius.

  • $start; a percentage >= 0 that defines the start of the gradient around $center.

  • $end; a percentage >= 0 that defines the end of the gradient around $center.

  • $color-stops; a pointer to an array of Gnome::Gsk4::N-ColorStop defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.

  • $n-color-stops; the number of elements in $color-stops.

#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------

Methods

#-------------------------------------------------------------------------------

get-center

Retrieves the center pointer for the gradient.

method get-center (--> N-Object )

Return value; the center point for the gradient.

#-------------------------------------------------------------------------------

get-color-stops

Retrieves the color stops in the gradient.

method get-color-stops ( Array[gsize] $n-stops --> N-Object )
  • $n-stops; (transfer ownership: full) the number of color stops in the returned array.

Return value; the color stops in the gradient.

#-------------------------------------------------------------------------------

get-end

Retrieves the end value for the gradient.

method get-end (--> Num )

Return value; the end value for the gradient.

#-------------------------------------------------------------------------------

get-hradius

Retrieves the horizonal radius for the gradient.

method get-hradius (--> Num )

Return value; the horizontal radius for the gradient.

#-------------------------------------------------------------------------------

get-n-color-stops

Retrieves the number of color stops in the gradient.

method get-n-color-stops (--> Int )

Return value; the number of color stops.

#-------------------------------------------------------------------------------

get-start

Retrieves the start value for the gradient.

method get-start (--> Num )

Return value; the start value for the gradient.

#-------------------------------------------------------------------------------

get-vradius

Retrieves the vertical radius for the gradient.

method get-vradius (--> Num )

Return value; the vertical radius for the gradient.

Gnome::Gsk4 v0.2.0

GSK is the rendering and scene graph API

Authors

  • Marcel Timmerman

License

Artistic-2.0

Dependencies

Gnome::Gdk4:api<2>Gnome::Graphene:api<2>Gnome::GObject:api<2>Gnome::Glib:api<2>Gnome::N:api<2>

Test Dependencies

Provides

  • Gnome::Gsk4::BlendNode
  • Gnome::Gsk4::BlurNode
  • Gnome::Gsk4::BorderNode
  • Gnome::Gsk4::CairoNode
  • Gnome::Gsk4::CairoRenderer
  • Gnome::Gsk4::ClipNode
  • Gnome::Gsk4::ColorMatrixNode
  • Gnome::Gsk4::ColorNode
  • Gnome::Gsk4::ConicGradientNode
  • Gnome::Gsk4::ContainerNode
  • Gnome::Gsk4::CrossFadeNode
  • Gnome::Gsk4::DebugNode
  • Gnome::Gsk4::GLRenderer
  • Gnome::Gsk4::GLShader
  • Gnome::Gsk4::GLShaderNode
  • Gnome::Gsk4::InsetShadowNode
  • Gnome::Gsk4::LinearGradientNode
  • Gnome::Gsk4::MaskNode
  • Gnome::Gsk4::N-RoundedRect
  • Gnome::Gsk4::N-ShaderArgsBuilder
  • Gnome::Gsk4::N-Transform
  • Gnome::Gsk4::OpacityNode
  • Gnome::Gsk4::OutsetShadowNode
  • Gnome::Gsk4::RadialGradientNode
  • Gnome::Gsk4::RenderNode
  • Gnome::Gsk4::Renderer
  • Gnome::Gsk4::RepeatNode
  • Gnome::Gsk4::RepeatingLinearGradientNode
  • Gnome::Gsk4::RepeatingRadialGradientNode
  • Gnome::Gsk4::RoundedClipNode
  • Gnome::Gsk4::ShadowNode
  • Gnome::Gsk4::T-enums
  • Gnome::Gsk4::T-glshader
  • Gnome::Gsk4::T-path
  • Gnome::Gsk4::T-rendernode
  • Gnome::Gsk4::T-roundedrect
  • Gnome::Gsk4::T-stroke
  • Gnome::Gsk4::T-transform
  • Gnome::Gsk4::T-types
  • Gnome::Gsk4::TextNode
  • Gnome::Gsk4::TextureNode
  • Gnome::Gsk4::TextureScaleNode
  • Gnome::Gsk4::TransformNode

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.