方法
GtkSnapshotappend_texture
声明 [源]
void
gtk_snapshot_append_texture (
GtkSnapshot* snapshot,
GdkTexture* texture,
const graphene_rect_t* bounds
)
描述 [源]
创建一个新的渲染节点,将 texture 绘制到给定的 bounds,并将其附加到 snapshot 的当前渲染节点。
如果需要将纹理缩放以填充 bounds,则使用线性过滤。如果您需要其他过滤,例如最近的邻居,请参阅 gtk_snapshot_append_scaled_texture()。
参数
texture-
类型:
GdkTexture要渲染的纹理。
数据由方法的调用者拥有。 bounds-
类型:
graphene_rect_t新节点的边界。
数据由方法的调用者拥有。