方法
GtkSnapshotappend_repeating_radial_gradient
声明 [源]
void
gtk_snapshot_append_repeating_radial_gradient (
GtkSnapshot* snapshot,
const graphene_rect_t* bounds,
const graphene_point_t* center,
float hradius,
float vradius,
float start,
float end,
const GskColorStop* stops,
gsize n_stops
)
参数
bounds-
类型:
graphene_rect_t用于渲染径向渐变的矩形。
数据由方法调用者拥有。 中心点-
类型:
graphene_point_t径向渐变的中心点。
数据由方法调用者拥有。 hradius-
类型:
float水平半径。
vradius-
类型:
float垂直半径。
start-
类型:
float起始位置(在水平轴上)。
end-
类型:
float结束位置(在水平轴上)。
stops-
类型: 一个
GskColorStop数组定义渐变的颜色停止。
数组的长度在 n_stops参数中指定。数据由方法调用者拥有。 n_stops-
类型:
gsizestops中的元素数量。