Table of Contents

Class Snapshot

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
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 IntPtr

Transfer ownership: None Nullable: False

outline RoundedRectHandle

Transfer ownership: None Nullable: False

borderWidth float

Transfer ownership: None Nullable: False

borderColor RGBAArrayHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

center PointHandle

Transfer ownership: None Nullable: False

rotation float

Transfer ownership: None Nullable: False

stops ColorStopArrayHandle

Transfer ownership: None Nullable: False

nStops nuint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

path PathHandle

Transfer ownership: None Nullable: False

fillRule FillRule

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

outline RoundedRectHandle

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer ownership: None Nullable: False

dx float

Transfer ownership: None Nullable: False

dy float

Transfer ownership: None Nullable: False

spread float

Transfer ownership: None Nullable: False

blurRadius float

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

layout IntPtr

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

startPoint PointHandle

Transfer ownership: None Nullable: False

endPoint PointHandle

Transfer ownership: None Nullable: False

stops ColorStopArrayHandle

Transfer ownership: None Nullable: False

nStops nuint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

node IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

outline RoundedRectHandle

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer ownership: None Nullable: False

dx float

Transfer ownership: None Nullable: False

dy float

Transfer ownership: None Nullable: False

spread float

Transfer ownership: None Nullable: False

blurRadius float

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

center PointHandle

Transfer ownership: None Nullable: False

hradius float

Transfer ownership: None Nullable: False

vradius float

Transfer ownership: None Nullable: False

start float

Transfer ownership: None Nullable: False

end float

Transfer ownership: None Nullable: False

stops ColorStopArrayHandle

Transfer ownership: None Nullable: False

nStops nuint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

startPoint PointHandle

Transfer ownership: None Nullable: False

endPoint PointHandle

Transfer ownership: None Nullable: False

stops ColorStopArrayHandle

Transfer ownership: None Nullable: False

nStops nuint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

center PointHandle

Transfer ownership: None Nullable: False

hradius float

Transfer ownership: None Nullable: False

vradius float

Transfer ownership: None Nullable: False

start float

Transfer ownership: None Nullable: False

end float

Transfer ownership: None Nullable: False

stops ColorStopArrayHandle

Transfer ownership: None Nullable: False

nStops nuint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

texture IntPtr

Transfer ownership: None Nullable: False

filter ScalingFilter

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

path PathHandle

Transfer ownership: None Nullable: False

stroke StrokeHandle

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

texture IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

FreeToNode(IntPtr)

Calls native method gtk_snapshot_free_to_node.

public static extern IntPtr FreeToNode(IntPtr snapshot)

Parameters

snapshot IntPtr

Transfer 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 IntPtr

Transfer ownership: Full Nullable: False

size SizeHandle

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

depth float

Transfer ownership: None Nullable: False

Pop(IntPtr)

Calls native method gtk_snapshot_pop.

public static extern void Pop(IntPtr snapshot)

Parameters

snapshot IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

blendMode BlendMode

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

radius double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

colorMatrix MatrixHandle

Transfer ownership: None Nullable: False

colorOffset Vec4Handle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

progress double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

path PathHandle

Transfer ownership: None Nullable: False

fillRule FillRule

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

shader IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

takeArgs BytesUnownedHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

maskMode MaskMode

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

opacity double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

childBounds RectHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

bounds RoundedRectHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

shadow ShadowArrayHandle

Transfer ownership: None Nullable: False

nShadows nuint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

path PathHandle

Transfer ownership: None Nullable: False

stroke StrokeHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

context IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

width double

Transfer ownership: None Nullable: False

height double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

context IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

width double

Transfer ownership: None Nullable: False

height double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

context IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

width double

Transfer ownership: None Nullable: False

height double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

context IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

layout IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

direction Direction

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

context IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

layout IntPtr

Transfer ownership: None Nullable: False

Restore(IntPtr)

Calls native method gtk_snapshot_restore.

public static extern void Restore(IntPtr snapshot)

Parameters

snapshot IntPtr

Transfer ownership: None Nullable: False

Rotate(IntPtr, float)

Calls native method gtk_snapshot_rotate.

public static extern void Rotate(IntPtr snapshot, float angle)

Parameters

snapshot IntPtr

Transfer ownership: None Nullable: False

angle float

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

axis Vec3Handle

Transfer ownership: None Nullable: False

Save(IntPtr)

Calls native method gtk_snapshot_save.

public static extern void Save(IntPtr snapshot)

Parameters

snapshot IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

factorX float

Transfer ownership: None Nullable: False

factorY float

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

factorX float

Transfer ownership: None Nullable: False

factorY float

Transfer ownership: None Nullable: False

factorZ float

Transfer ownership: None Nullable: False

ToNode(IntPtr)

Calls native method gtk_snapshot_to_node.

public static extern IntPtr ToNode(IntPtr snapshot)

Parameters

snapshot IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

size SizeHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

transform TransformHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

matrix MatrixHandle

Transfer ownership: None Nullable: False

Translate(IntPtr, PointHandle)

Calls native method gtk_snapshot_translate.

public static extern void Translate(IntPtr snapshot, PointHandle point)

Parameters

snapshot IntPtr

Transfer ownership: None Nullable: False

point PointHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

point Point3DHandle

Transfer ownership: None Nullable: False