构造函数
GskLinearGradientNodenew
声明 [源]
GskRenderNode*
gsk_linear_gradient_node_new (
const graphene_rect_t* bounds,
const graphene_point_t* start,
const graphene_point_t* end,
const GskColorStop* color_stops,
gsize n_color_stops
)
参数
bounds-
类型:
graphene_rect_t渲染线性渐变到内部的矩形。
数据由函数的调用者所有。 start-
类型:
graphene_point_t线性渐变将从此点开始的位置。
数据由函数的调用者所有。 end-
类型:
graphene_point_t线性渐变将结束的点。
数据由函数的调用者所有。 color_stops-
类型: 一个由
GskColorStop组成的数组定义渐变的
GskColorStop数组的指针。所有颜色停止的偏移量必须增加。第一个停止的偏移量必须 >= 0,最后一个停止的偏移量必须 <= 1。数组的长度在 n_color_stops参数中指定。数据由函数的调用者所有。 n_color_stops-
类型:
gsizecolor_stops中元素的数量。