Table of Contents

Class Snapshot

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class Snapshot
Inheritance
Snapshot
Inherited Members

Methods

AppendBorder(nint, RoundedRectHandle, ref float, RGBAArrayHandle)

Calls native method gtk_snapshot_append_border.

public static extern void AppendBorder(nint snapshot, RoundedRectHandle outline, ref float borderWidth, RGBAArrayHandle borderColor)

Parameters

snapshot nint

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(nint, RectHandle)

Calls native method gtk_snapshot_append_cairo.

public static extern ContextOwnedHandle AppendCairo(nint snapshot, RectHandle bounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

Returns

ContextOwnedHandle

Transfer ownership: Full Nullable: False

AppendColor(nint, RGBAHandle, RectHandle)

Calls native method gtk_snapshot_append_color.

public static extern void AppendColor(nint snapshot, RGBAHandle color, RectHandle bounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

AppendConicGradient(nint, RectHandle, PointHandle, float, ColorStopArrayHandle, nuint)

Calls native method gtk_snapshot_append_conic_gradient.

public static extern void AppendConicGradient(nint snapshot, RectHandle bounds, PointHandle center, float rotation, ColorStopArrayHandle stops, nuint nStops)

Parameters

snapshot nint

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(nint, PathHandle, FillRule, RGBAHandle)

Calls native method gtk_snapshot_append_fill. Version: 4.14

[Version("4.14")]
public static extern void AppendFill(nint snapshot, PathHandle path, FillRule fillRule, RGBAHandle color)

Parameters

snapshot nint

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(nint, RoundedRectHandle, RGBAHandle, float, float, float, float)

Calls native method gtk_snapshot_append_inset_shadow.

public static extern void AppendInsetShadow(nint snapshot, RoundedRectHandle outline, RGBAHandle color, float dx, float dy, float spread, float blurRadius)

Parameters

snapshot nint

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(nint, nint, RGBAHandle)

Calls native method gtk_snapshot_append_layout.

public static extern void AppendLayout(nint snapshot, nint layout, RGBAHandle color)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

layout nint

Transfer ownership: None Nullable: False

color RGBAHandle

Transfer ownership: None Nullable: False

AppendLinearGradient(nint, RectHandle, PointHandle, PointHandle, ColorStopArrayHandle, nuint)

Calls native method gtk_snapshot_append_linear_gradient.

public static extern void AppendLinearGradient(nint snapshot, RectHandle bounds, PointHandle startPoint, PointHandle endPoint, ColorStopArrayHandle stops, nuint nStops)

Parameters

snapshot nint

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(nint, nint)

Calls native method gtk_snapshot_append_node.

public static extern void AppendNode(nint snapshot, nint node)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

node nint

Transfer ownership: None Nullable: False

AppendOutsetShadow(nint, RoundedRectHandle, RGBAHandle, float, float, float, float)

Calls native method gtk_snapshot_append_outset_shadow.

public static extern void AppendOutsetShadow(nint snapshot, RoundedRectHandle outline, RGBAHandle color, float dx, float dy, float spread, float blurRadius)

Parameters

snapshot nint

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(nint, RectHandle, PointHandle, float, float, float, float, ColorStopArrayHandle, nuint)

Calls native method gtk_snapshot_append_radial_gradient.

public static extern void AppendRadialGradient(nint snapshot, RectHandle bounds, PointHandle center, float hradius, float vradius, float start, float end, ColorStopArrayHandle stops, nuint nStops)

Parameters

snapshot nint

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(nint, RectHandle, PointHandle, PointHandle, ColorStopArrayHandle, nuint)

Calls native method gtk_snapshot_append_repeating_linear_gradient.

public static extern void AppendRepeatingLinearGradient(nint snapshot, RectHandle bounds, PointHandle startPoint, PointHandle endPoint, ColorStopArrayHandle stops, nuint nStops)

Parameters

snapshot nint

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(nint, RectHandle, PointHandle, float, float, float, float, ColorStopArrayHandle, nuint)

Calls native method gtk_snapshot_append_repeating_radial_gradient.

public static extern void AppendRepeatingRadialGradient(nint snapshot, RectHandle bounds, PointHandle center, float hradius, float vradius, float start, float end, ColorStopArrayHandle stops, nuint nStops)

Parameters

snapshot nint

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(nint, nint, ScalingFilter, RectHandle)

Calls native method gtk_snapshot_append_scaled_texture. Version: 4.10

[Version("4.10")]
public static extern void AppendScaledTexture(nint snapshot, nint texture, ScalingFilter filter, RectHandle bounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

texture nint

Transfer ownership: None Nullable: False

filter ScalingFilter

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

AppendStroke(nint, PathHandle, StrokeHandle, RGBAHandle)

Calls native method gtk_snapshot_append_stroke. Version: 4.14

[Version("4.14")]
public static extern void AppendStroke(nint snapshot, PathHandle path, StrokeHandle stroke, RGBAHandle color)

Parameters

snapshot nint

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(nint, nint, RectHandle)

Calls native method gtk_snapshot_append_texture.

public static extern void AppendTexture(nint snapshot, nint texture, RectHandle bounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

texture nint

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

FreeToNode(nint)

Calls native method gtk_snapshot_free_to_node.

public static extern nint FreeToNode(nint snapshot)

Parameters

snapshot nint

Transfer ownership: Full Nullable: False

Returns

nint

Transfer ownership: Full Nullable: True

FreeToPaintable(nint, SizeHandle)

Calls native method gtk_snapshot_free_to_paintable.

public static extern nint FreeToPaintable(nint snapshot, SizeHandle size)

Parameters

snapshot nint

Transfer ownership: Full Nullable: False

size SizeHandle

Transfer ownership: None Nullable: True

Returns

nint

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(nint)

Calls native method gtk_snapshot_gl_shader_pop_texture.

public static extern void GlShaderPopTexture(nint snapshot)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_snapshot_new.

public static extern nint New()

Returns

nint

Transfer ownership: Full Nullable: False

Perspective(nint, float)

Calls native method gtk_snapshot_perspective.

public static extern void Perspective(nint snapshot, float depth)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

depth float

Transfer ownership: None Nullable: False

Pop(nint)

Calls native method gtk_snapshot_pop.

public static extern void Pop(nint snapshot)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

PushBlend(nint, BlendMode)

Calls native method gtk_snapshot_push_blend.

public static extern void PushBlend(nint snapshot, BlendMode blendMode)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

blendMode BlendMode

Transfer ownership: None Nullable: False

PushBlur(nint, double)

Calls native method gtk_snapshot_push_blur.

public static extern void PushBlur(nint snapshot, double radius)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

radius double

Transfer ownership: None Nullable: False

PushClip(nint, RectHandle)

Calls native method gtk_snapshot_push_clip.

public static extern void PushClip(nint snapshot, RectHandle bounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

PushColorMatrix(nint, MatrixHandle, Vec4Handle)

Calls native method gtk_snapshot_push_color_matrix.

public static extern void PushColorMatrix(nint snapshot, MatrixHandle colorMatrix, Vec4Handle colorOffset)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

colorMatrix MatrixHandle

Transfer ownership: None Nullable: False

colorOffset Vec4Handle

Transfer ownership: None Nullable: False

PushCrossFade(nint, double)

Calls native method gtk_snapshot_push_cross_fade.

public static extern void PushCrossFade(nint snapshot, double progress)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

progress double

Transfer ownership: None Nullable: False

PushFill(nint, PathHandle, FillRule)

Calls native method gtk_snapshot_push_fill. Version: 4.14

[Version("4.14")]
public static extern void PushFill(nint snapshot, PathHandle path, FillRule fillRule)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

path PathHandle

Transfer ownership: None Nullable: False

fillRule FillRule

Transfer ownership: None Nullable: False

PushGlShader(nint, nint, RectHandle, BytesUnownedHandle)

Calls native method gtk_snapshot_push_gl_shader.

public static extern void PushGlShader(nint snapshot, nint shader, RectHandle bounds, BytesUnownedHandle takeArgs)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

shader nint

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

takeArgs BytesUnownedHandle

Transfer ownership: Full Nullable: False

PushMask(nint, MaskMode)

Calls native method gtk_snapshot_push_mask. Version: 4.10

[Version("4.10")]
public static extern void PushMask(nint snapshot, MaskMode maskMode)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

maskMode MaskMode

Transfer ownership: None Nullable: False

PushOpacity(nint, double)

Calls native method gtk_snapshot_push_opacity.

public static extern void PushOpacity(nint snapshot, double opacity)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

opacity double

Transfer ownership: None Nullable: False

PushRepeat(nint, RectHandle, RectHandle)

Calls native method gtk_snapshot_push_repeat.

public static extern void PushRepeat(nint snapshot, RectHandle bounds, RectHandle childBounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

bounds RectHandle

Transfer ownership: None Nullable: False

childBounds RectHandle

Transfer ownership: None Nullable: True

PushRoundedClip(nint, RoundedRectHandle)

Calls native method gtk_snapshot_push_rounded_clip.

public static extern void PushRoundedClip(nint snapshot, RoundedRectHandle bounds)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

bounds RoundedRectHandle

Transfer ownership: None Nullable: False

PushShadow(nint, ShadowArrayHandle, nuint)

Calls native method gtk_snapshot_push_shadow.

public static extern void PushShadow(nint snapshot, ShadowArrayHandle shadow, nuint nShadows)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

shadow ShadowArrayHandle

Transfer ownership: None Nullable: False

nShadows nuint

Transfer ownership: None Nullable: False

PushStroke(nint, PathHandle, StrokeHandle)

Calls native method gtk_snapshot_push_stroke. Version: 4.14

[Version("4.14")]
public static extern void PushStroke(nint snapshot, PathHandle path, StrokeHandle stroke)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

path PathHandle

Transfer ownership: None Nullable: False

stroke StrokeHandle

Transfer ownership: None Nullable: False

RenderBackground(nint, nint, double, double, double, double)

Calls native method gtk_snapshot_render_background.

public static extern void RenderBackground(nint snapshot, nint context, double x, double y, double width, double height)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

context nint

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(nint, nint, double, double, double, double)

Calls native method gtk_snapshot_render_focus.

public static extern void RenderFocus(nint snapshot, nint context, double x, double y, double width, double height)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

context nint

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(nint, nint, double, double, double, double)

Calls native method gtk_snapshot_render_frame.

public static extern void RenderFrame(nint snapshot, nint context, double x, double y, double width, double height)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

context nint

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(nint, nint, double, double, nint, int, Direction)

Calls native method gtk_snapshot_render_insertion_cursor.

public static extern void RenderInsertionCursor(nint snapshot, nint context, double x, double y, nint layout, int index, Direction direction)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

context nint

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

layout nint

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

direction Direction

Transfer ownership: None Nullable: False

RenderLayout(nint, nint, double, double, nint)

Calls native method gtk_snapshot_render_layout.

public static extern void RenderLayout(nint snapshot, nint context, double x, double y, nint layout)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

context nint

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

layout nint

Transfer ownership: None Nullable: False

Restore(nint)

Calls native method gtk_snapshot_restore.

public static extern void Restore(nint snapshot)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

Rotate(nint, float)

Calls native method gtk_snapshot_rotate.

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

Parameters

snapshot nint

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

Rotate3d(nint, float, Vec3Handle)

Calls native method gtk_snapshot_rotate_3d.

public static extern void Rotate3d(nint snapshot, float angle, Vec3Handle axis)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

axis Vec3Handle

Transfer ownership: None Nullable: False

Save(nint)

Calls native method gtk_snapshot_save.

public static extern void Save(nint snapshot)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

Scale(nint, float, float)

Calls native method gtk_snapshot_scale.

public static extern void Scale(nint snapshot, float factorX, float factorY)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

factorX float

Transfer ownership: None Nullable: False

factorY float

Transfer ownership: None Nullable: False

Scale3d(nint, float, float, float)

Calls native method gtk_snapshot_scale_3d.

public static extern void Scale3d(nint snapshot, float factorX, float factorY, float factorZ)

Parameters

snapshot nint

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(nint)

Calls native method gtk_snapshot_to_node.

public static extern nint ToNode(nint snapshot)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: Full Nullable: True

ToPaintable(nint, SizeHandle)

Calls native method gtk_snapshot_to_paintable.

public static extern nint ToPaintable(nint snapshot, SizeHandle size)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

size SizeHandle

Transfer ownership: None Nullable: True

Returns

nint

Transfer ownership: Full Nullable: True

Transform(nint, TransformHandle)

Calls native method gtk_snapshot_transform.

public static extern void Transform(nint snapshot, TransformHandle transform)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

transform TransformHandle

Transfer ownership: None Nullable: True

TransformMatrix(nint, MatrixHandle)

Calls native method gtk_snapshot_transform_matrix.

public static extern void TransformMatrix(nint snapshot, MatrixHandle matrix)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

matrix MatrixHandle

Transfer ownership: None Nullable: False

Translate(nint, PointHandle)

Calls native method gtk_snapshot_translate.

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

Parameters

snapshot nint

Transfer ownership: None Nullable: False

point PointHandle

Transfer ownership: None Nullable: False

Translate3d(nint, Point3DHandle)

Calls native method gtk_snapshot_translate_3d.

public static extern void Translate3d(nint snapshot, Point3DHandle point)

Parameters

snapshot nint

Transfer ownership: None Nullable: False

point Point3DHandle

Transfer ownership: None Nullable: False