方法
声明 [源]
void
gtk_snapshot_append_repeating_linear_gradient (
GtkSnapshot* snapshot,
const graphene_rect_t* bounds,
const graphene_point_t* start_point,
const graphene_point_t* end_point,
const GskColorStop* stops,
gsize n_stops
)
参数
bounds-
类型:
graphene_rect_t要在其中渲染线性渐变的矩形。
数据由方法调用者拥有。 start_point-
类型:
graphene_point_t线性渐变开始的点。
数据由方法调用者拥有。 end_point-
类型:
graphene_point_t线性渐变结束的点。
数据由方法调用者拥有。 stops-
类型: 一个
GskColorStop数组的集合颜色断点定义了渐变。
数组的长度通过 n_stops参数指定。数据由方法调用者拥有。 n_stops-
类型:
gsizestops中元素的数量。