构造函数
GskRepeatingRadialGradientNodenew
声明 [源]
GskRenderNode*
gsk_repeating_radial_gradient_node_new (
const graphene_rect_t* bounds,
const graphene_point_t* center,
float hradius,
float vradius,
float start,
float end,
const GskColorStop* color_stops,
gsize n_color_stops
)
参数
bounds-
类型:
graphene_rect_t节点的边界。
数据由函数的调用者拥有。 center-
类型:
graphene_point_t渐变中心。
数据由函数的调用者拥有。 hradius-
类型: float
水平半径。
vradius-
类型: float
垂直半径。
start-
类型: float
一个大于等于 0 的百分比,定义围绕
center的渐变开始位置。 end-
类型: float
一个大于等于 0 的百分比,定义围绕
center的渐变结束位置。 color_stops-
类型:一个 GskColorStop 的数组
指向一个定义渐变的 GskColorStop 数组的指针。所有颜色停止的偏移量必须增加。第一个颜色停止的偏移量必须大于等于 0,最后一个颜色停止的偏移量必须小于等于 1。
数组的长度在 n_color_stops参数中指定。数据由函数的调用者拥有。 n_color_stops-
类型:gsize
color_stops 中的元素数量。
返回值
类型:GskRepeatingRadialGradientNode
一个新的 GskRenderNode。
| 函数的调用者负责释放数据。 |