Class Snapshot
public class Snapshot
- Inheritance
-
Snapshot
- Inherited Members
Methods
AppendBorder(IntPtr, RoundedRectHandle, ref float, RGBAArrayHandle)
Calls native method gtk_snapshot_append_border.
public static extern void AppendBorder(IntPtr snapshot, RoundedRectHandle outline, ref float borderWidth, RGBAArrayHandle borderColor)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
outline
RoundedRectHandleTransfer ownership: None Nullable: False
borderWidth
floatTransfer ownership: None Nullable: False
borderColor
RGBAArrayHandleTransfer ownership: None Nullable: False
AppendCairo(IntPtr, RectHandle)
Calls native method gtk_snapshot_append_cairo.
public static extern ContextOwnedHandle AppendCairo(IntPtr snapshot, RectHandle bounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
Returns
- ContextOwnedHandle
Transfer ownership: Full Nullable: False
AppendColor(IntPtr, RGBAHandle, RectHandle)
Calls native method gtk_snapshot_append_color.
public static extern void AppendColor(IntPtr snapshot, RGBAHandle color, RectHandle bounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
color
RGBAHandleTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
AppendConicGradient(IntPtr, RectHandle, PointHandle, float, ColorStopArrayHandle, nuint)
Calls native method gtk_snapshot_append_conic_gradient.
public static extern void AppendConicGradient(IntPtr snapshot, RectHandle bounds, PointHandle center, float rotation, ColorStopArrayHandle stops, nuint nStops)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
center
PointHandleTransfer ownership: None Nullable: False
rotation
floatTransfer ownership: None Nullable: False
stops
ColorStopArrayHandleTransfer ownership: None Nullable: False
nStops
nuintTransfer ownership: None Nullable: False
AppendFill(IntPtr, PathHandle, FillRule, RGBAHandle)
Calls native method gtk_snapshot_append_fill. Version: 4.14
[Version("4.14")]
public static extern void AppendFill(IntPtr snapshot, PathHandle path, FillRule fillRule, RGBAHandle color)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
path
PathHandleTransfer ownership: None Nullable: False
fillRule
FillRuleTransfer ownership: None Nullable: False
color
RGBAHandleTransfer ownership: None Nullable: False
AppendInsetShadow(IntPtr, RoundedRectHandle, RGBAHandle, float, float, float, float)
Calls native method gtk_snapshot_append_inset_shadow.
public static extern void AppendInsetShadow(IntPtr snapshot, RoundedRectHandle outline, RGBAHandle color, float dx, float dy, float spread, float blurRadius)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
outline
RoundedRectHandleTransfer ownership: None Nullable: False
color
RGBAHandleTransfer ownership: None Nullable: False
dx
floatTransfer ownership: None Nullable: False
dy
floatTransfer ownership: None Nullable: False
spread
floatTransfer ownership: None Nullable: False
blurRadius
floatTransfer ownership: None Nullable: False
AppendLayout(IntPtr, IntPtr, RGBAHandle)
Calls native method gtk_snapshot_append_layout.
public static extern void AppendLayout(IntPtr snapshot, IntPtr layout, RGBAHandle color)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
layout
IntPtrTransfer ownership: None Nullable: False
color
RGBAHandleTransfer ownership: None Nullable: False
AppendLinearGradient(IntPtr, RectHandle, PointHandle, PointHandle, ColorStopArrayHandle, nuint)
Calls native method gtk_snapshot_append_linear_gradient.
public static extern void AppendLinearGradient(IntPtr snapshot, RectHandle bounds, PointHandle startPoint, PointHandle endPoint, ColorStopArrayHandle stops, nuint nStops)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
startPoint
PointHandleTransfer ownership: None Nullable: False
endPoint
PointHandleTransfer ownership: None Nullable: False
stops
ColorStopArrayHandleTransfer ownership: None Nullable: False
nStops
nuintTransfer ownership: None Nullable: False
AppendNode(IntPtr, IntPtr)
Calls native method gtk_snapshot_append_node.
public static extern void AppendNode(IntPtr snapshot, IntPtr node)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
node
IntPtrTransfer ownership: None Nullable: False
AppendOutsetShadow(IntPtr, RoundedRectHandle, RGBAHandle, float, float, float, float)
Calls native method gtk_snapshot_append_outset_shadow.
public static extern void AppendOutsetShadow(IntPtr snapshot, RoundedRectHandle outline, RGBAHandle color, float dx, float dy, float spread, float blurRadius)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
outline
RoundedRectHandleTransfer ownership: None Nullable: False
color
RGBAHandleTransfer ownership: None Nullable: False
dx
floatTransfer ownership: None Nullable: False
dy
floatTransfer ownership: None Nullable: False
spread
floatTransfer ownership: None Nullable: False
blurRadius
floatTransfer ownership: None Nullable: False
AppendRadialGradient(IntPtr, RectHandle, PointHandle, float, float, float, float, ColorStopArrayHandle, nuint)
Calls native method gtk_snapshot_append_radial_gradient.
public static extern void AppendRadialGradient(IntPtr snapshot, RectHandle bounds, PointHandle center, float hradius, float vradius, float start, float end, ColorStopArrayHandle stops, nuint nStops)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
center
PointHandleTransfer ownership: None Nullable: False
hradius
floatTransfer ownership: None Nullable: False
vradius
floatTransfer ownership: None Nullable: False
start
floatTransfer ownership: None Nullable: False
end
floatTransfer ownership: None Nullable: False
stops
ColorStopArrayHandleTransfer ownership: None Nullable: False
nStops
nuintTransfer ownership: None Nullable: False
AppendRepeatingLinearGradient(IntPtr, RectHandle, PointHandle, PointHandle, ColorStopArrayHandle, nuint)
Calls native method gtk_snapshot_append_repeating_linear_gradient.
public static extern void AppendRepeatingLinearGradient(IntPtr snapshot, RectHandle bounds, PointHandle startPoint, PointHandle endPoint, ColorStopArrayHandle stops, nuint nStops)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
startPoint
PointHandleTransfer ownership: None Nullable: False
endPoint
PointHandleTransfer ownership: None Nullable: False
stops
ColorStopArrayHandleTransfer ownership: None Nullable: False
nStops
nuintTransfer ownership: None Nullable: False
AppendRepeatingRadialGradient(IntPtr, RectHandle, PointHandle, float, float, float, float, ColorStopArrayHandle, nuint)
Calls native method gtk_snapshot_append_repeating_radial_gradient.
public static extern void AppendRepeatingRadialGradient(IntPtr snapshot, RectHandle bounds, PointHandle center, float hradius, float vradius, float start, float end, ColorStopArrayHandle stops, nuint nStops)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
center
PointHandleTransfer ownership: None Nullable: False
hradius
floatTransfer ownership: None Nullable: False
vradius
floatTransfer ownership: None Nullable: False
start
floatTransfer ownership: None Nullable: False
end
floatTransfer ownership: None Nullable: False
stops
ColorStopArrayHandleTransfer ownership: None Nullable: False
nStops
nuintTransfer ownership: None Nullable: False
AppendScaledTexture(IntPtr, IntPtr, ScalingFilter, RectHandle)
Calls native method gtk_snapshot_append_scaled_texture. Version: 4.10
[Version("4.10")]
public static extern void AppendScaledTexture(IntPtr snapshot, IntPtr texture, ScalingFilter filter, RectHandle bounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
texture
IntPtrTransfer ownership: None Nullable: False
filter
ScalingFilterTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
AppendStroke(IntPtr, PathHandle, StrokeHandle, RGBAHandle)
Calls native method gtk_snapshot_append_stroke. Version: 4.14
[Version("4.14")]
public static extern void AppendStroke(IntPtr snapshot, PathHandle path, StrokeHandle stroke, RGBAHandle color)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
path
PathHandleTransfer ownership: None Nullable: False
stroke
StrokeHandleTransfer ownership: None Nullable: False
color
RGBAHandleTransfer ownership: None Nullable: False
AppendTexture(IntPtr, IntPtr, RectHandle)
Calls native method gtk_snapshot_append_texture.
public static extern void AppendTexture(IntPtr snapshot, IntPtr texture, RectHandle bounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
texture
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
FreeToNode(IntPtr)
Calls native method gtk_snapshot_free_to_node.
public static extern IntPtr FreeToNode(IntPtr snapshot)
Parameters
snapshot
IntPtrTransfer ownership: Full Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: True
FreeToPaintable(IntPtr, SizeHandle)
Calls native method gtk_snapshot_free_to_paintable.
public static extern IntPtr FreeToPaintable(IntPtr snapshot, SizeHandle size)
Parameters
snapshot
IntPtrTransfer ownership: Full Nullable: False
size
SizeHandleTransfer ownership: None Nullable: True
Returns
- IntPtr
Transfer ownership: Full Nullable: True
GetGType()
Calls native function gtk_snapshot_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GlShaderPopTexture(IntPtr)
Calls native method gtk_snapshot_gl_shader_pop_texture.
public static extern void GlShaderPopTexture(IntPtr snapshot)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
New()
Calls native constructor gtk_snapshot_new.
public static extern IntPtr New()
Returns
- IntPtr
Transfer ownership: Full Nullable: False
Perspective(IntPtr, float)
Calls native method gtk_snapshot_perspective.
public static extern void Perspective(IntPtr snapshot, float depth)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
depth
floatTransfer ownership: None Nullable: False
Pop(IntPtr)
Calls native method gtk_snapshot_pop.
public static extern void Pop(IntPtr snapshot)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
PushBlend(IntPtr, BlendMode)
Calls native method gtk_snapshot_push_blend.
public static extern void PushBlend(IntPtr snapshot, BlendMode blendMode)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
blendMode
BlendModeTransfer ownership: None Nullable: False
PushBlur(IntPtr, double)
Calls native method gtk_snapshot_push_blur.
public static extern void PushBlur(IntPtr snapshot, double radius)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
radius
doubleTransfer ownership: None Nullable: False
PushClip(IntPtr, RectHandle)
Calls native method gtk_snapshot_push_clip.
public static extern void PushClip(IntPtr snapshot, RectHandle bounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
PushColorMatrix(IntPtr, MatrixHandle, Vec4Handle)
Calls native method gtk_snapshot_push_color_matrix.
public static extern void PushColorMatrix(IntPtr snapshot, MatrixHandle colorMatrix, Vec4Handle colorOffset)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
colorMatrix
MatrixHandleTransfer ownership: None Nullable: False
colorOffset
Vec4HandleTransfer ownership: None Nullable: False
PushCrossFade(IntPtr, double)
Calls native method gtk_snapshot_push_cross_fade.
public static extern void PushCrossFade(IntPtr snapshot, double progress)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
progress
doubleTransfer ownership: None Nullable: False
PushFill(IntPtr, PathHandle, FillRule)
Calls native method gtk_snapshot_push_fill. Version: 4.14
[Version("4.14")]
public static extern void PushFill(IntPtr snapshot, PathHandle path, FillRule fillRule)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
path
PathHandleTransfer ownership: None Nullable: False
fillRule
FillRuleTransfer ownership: None Nullable: False
PushGlShader(IntPtr, IntPtr, RectHandle, BytesUnownedHandle)
Calls native method gtk_snapshot_push_gl_shader.
public static extern void PushGlShader(IntPtr snapshot, IntPtr shader, RectHandle bounds, BytesUnownedHandle takeArgs)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
shader
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
takeArgs
BytesUnownedHandleTransfer ownership: Full Nullable: False
PushMask(IntPtr, MaskMode)
Calls native method gtk_snapshot_push_mask. Version: 4.10
[Version("4.10")]
public static extern void PushMask(IntPtr snapshot, MaskMode maskMode)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
maskMode
MaskModeTransfer ownership: None Nullable: False
PushOpacity(IntPtr, double)
Calls native method gtk_snapshot_push_opacity.
public static extern void PushOpacity(IntPtr snapshot, double opacity)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
opacity
doubleTransfer ownership: None Nullable: False
PushRepeat(IntPtr, RectHandle, RectHandle)
Calls native method gtk_snapshot_push_repeat.
public static extern void PushRepeat(IntPtr snapshot, RectHandle bounds, RectHandle childBounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RectHandleTransfer ownership: None Nullable: False
childBounds
RectHandleTransfer ownership: None Nullable: True
PushRoundedClip(IntPtr, RoundedRectHandle)
Calls native method gtk_snapshot_push_rounded_clip.
public static extern void PushRoundedClip(IntPtr snapshot, RoundedRectHandle bounds)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
bounds
RoundedRectHandleTransfer ownership: None Nullable: False
PushShadow(IntPtr, ShadowArrayHandle, nuint)
Calls native method gtk_snapshot_push_shadow.
public static extern void PushShadow(IntPtr snapshot, ShadowArrayHandle shadow, nuint nShadows)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
shadow
ShadowArrayHandleTransfer ownership: None Nullable: False
nShadows
nuintTransfer ownership: None Nullable: False
PushStroke(IntPtr, PathHandle, StrokeHandle)
Calls native method gtk_snapshot_push_stroke. Version: 4.14
[Version("4.14")]
public static extern void PushStroke(IntPtr snapshot, PathHandle path, StrokeHandle stroke)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
path
PathHandleTransfer ownership: None Nullable: False
stroke
StrokeHandleTransfer ownership: None Nullable: False
RenderBackground(IntPtr, IntPtr, double, double, double, double)
Calls native method gtk_snapshot_render_background.
public static extern void RenderBackground(IntPtr snapshot, IntPtr context, double x, double y, double width, double height)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
context
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
width
doubleTransfer ownership: None Nullable: False
height
doubleTransfer ownership: None Nullable: False
RenderFocus(IntPtr, IntPtr, double, double, double, double)
Calls native method gtk_snapshot_render_focus.
public static extern void RenderFocus(IntPtr snapshot, IntPtr context, double x, double y, double width, double height)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
context
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
width
doubleTransfer ownership: None Nullable: False
height
doubleTransfer ownership: None Nullable: False
RenderFrame(IntPtr, IntPtr, double, double, double, double)
Calls native method gtk_snapshot_render_frame.
public static extern void RenderFrame(IntPtr snapshot, IntPtr context, double x, double y, double width, double height)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
context
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
width
doubleTransfer ownership: None Nullable: False
height
doubleTransfer ownership: None Nullable: False
RenderInsertionCursor(IntPtr, IntPtr, double, double, IntPtr, int, Direction)
Calls native method gtk_snapshot_render_insertion_cursor.
public static extern void RenderInsertionCursor(IntPtr snapshot, IntPtr context, double x, double y, IntPtr layout, int index, Direction direction)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
context
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
layout
IntPtrTransfer ownership: None Nullable: False
index
intTransfer ownership: None Nullable: False
direction
DirectionTransfer ownership: None Nullable: False
RenderLayout(IntPtr, IntPtr, double, double, IntPtr)
Calls native method gtk_snapshot_render_layout.
public static extern void RenderLayout(IntPtr snapshot, IntPtr context, double x, double y, IntPtr layout)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
context
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
layout
IntPtrTransfer ownership: None Nullable: False
Restore(IntPtr)
Calls native method gtk_snapshot_restore.
public static extern void Restore(IntPtr snapshot)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
Rotate(IntPtr, float)
Calls native method gtk_snapshot_rotate.
public static extern void Rotate(IntPtr snapshot, float angle)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
angle
floatTransfer ownership: None Nullable: False
Rotate3d(IntPtr, float, Vec3Handle)
Calls native method gtk_snapshot_rotate_3d.
public static extern void Rotate3d(IntPtr snapshot, float angle, Vec3Handle axis)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
angle
floatTransfer ownership: None Nullable: False
axis
Vec3HandleTransfer ownership: None Nullable: False
Save(IntPtr)
Calls native method gtk_snapshot_save.
public static extern void Save(IntPtr snapshot)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
Scale(IntPtr, float, float)
Calls native method gtk_snapshot_scale.
public static extern void Scale(IntPtr snapshot, float factorX, float factorY)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
factorX
floatTransfer ownership: None Nullable: False
factorY
floatTransfer ownership: None Nullable: False
Scale3d(IntPtr, float, float, float)
Calls native method gtk_snapshot_scale_3d.
public static extern void Scale3d(IntPtr snapshot, float factorX, float factorY, float factorZ)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
factorX
floatTransfer ownership: None Nullable: False
factorY
floatTransfer ownership: None Nullable: False
factorZ
floatTransfer ownership: None Nullable: False
ToNode(IntPtr)
Calls native method gtk_snapshot_to_node.
public static extern IntPtr ToNode(IntPtr snapshot)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: True
ToPaintable(IntPtr, SizeHandle)
Calls native method gtk_snapshot_to_paintable.
public static extern IntPtr ToPaintable(IntPtr snapshot, SizeHandle size)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
size
SizeHandleTransfer ownership: None Nullable: True
Returns
- IntPtr
Transfer ownership: Full Nullable: True
Transform(IntPtr, TransformHandle)
Calls native method gtk_snapshot_transform.
public static extern void Transform(IntPtr snapshot, TransformHandle transform)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
transform
TransformHandleTransfer ownership: None Nullable: True
TransformMatrix(IntPtr, MatrixHandle)
Calls native method gtk_snapshot_transform_matrix.
public static extern void TransformMatrix(IntPtr snapshot, MatrixHandle matrix)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
matrix
MatrixHandleTransfer ownership: None Nullable: False
Translate(IntPtr, PointHandle)
Calls native method gtk_snapshot_translate.
public static extern void Translate(IntPtr snapshot, PointHandle point)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
point
PointHandleTransfer ownership: None Nullable: False
Translate3d(IntPtr, Point3DHandle)
Calls native method gtk_snapshot_translate_3d.
public static extern void Translate3d(IntPtr snapshot, Point3DHandle point)
Parameters
snapshot
IntPtrTransfer ownership: None Nullable: False
point
Point3DHandleTransfer ownership: None Nullable: False