Class Snapshot
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Snapshot : Snapshot, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Snapshot
- Implements
-
- Inherited Members
-
Constructors
Snapshot(params ConstructArgument[])
public Snapshot(params ConstructArgument[] constructArguments)
Parameters
constructArguments ConstructArgument[]
Snapshot(SnapshotHandle)
public Snapshot(SnapshotHandle handle)
Parameters
handle SnapshotHandle
Methods
AppendCairo(Rect)
public Context AppendCairo(Rect bounds)
Parameters
bounds Rect
Returns
- Context
AppendColor(RGBA, Rect)
public void AppendColor(RGBA color, Rect bounds)
Parameters
color RGBA
bounds Rect
AppendConicGradient(Rect, Point, float, ColorStop[])
public void AppendConicGradient(Rect bounds, Point center, float rotation, ColorStop[] stops)
Parameters
bounds Rect
center Point
rotation float
stops ColorStop[]
AppendFill(Path, FillRule, RGBA)
[Version("4.14")]
public void AppendFill(Path path, FillRule fillRule, RGBA color)
Parameters
path Path
fillRule FillRule
color RGBA
AppendInsetShadow(RoundedRect, RGBA, float, float, float, float)
public void AppendInsetShadow(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
Parameters
outline RoundedRect
color RGBA
dx float
dy float
spread float
blurRadius float
AppendLayout(Layout, RGBA)
public void AppendLayout(Layout layout, RGBA color)
Parameters
layout Layout
color RGBA
AppendLinearGradient(Rect, Point, Point, ColorStop[])
public void AppendLinearGradient(Rect bounds, Point startPoint, Point endPoint, ColorStop[] stops)
Parameters
bounds Rect
startPoint Point
endPoint Point
stops ColorStop[]
AppendNode(RenderNode)
public void AppendNode(RenderNode node)
Parameters
node RenderNode
AppendOutsetShadow(RoundedRect, RGBA, float, float, float, float)
public void AppendOutsetShadow(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
Parameters
outline RoundedRect
color RGBA
dx float
dy float
spread float
blurRadius float
AppendRadialGradient(Rect, Point, float, float, float, float, ColorStop[])
public void AppendRadialGradient(Rect bounds, Point center, float hradius, float vradius, float start, float end, ColorStop[] stops)
Parameters
bounds Rect
center Point
hradius float
vradius float
start float
end float
stops ColorStop[]
AppendRepeatingLinearGradient(Rect, Point, Point, ColorStop[])
public void AppendRepeatingLinearGradient(Rect bounds, Point startPoint, Point endPoint, ColorStop[] stops)
Parameters
bounds Rect
startPoint Point
endPoint Point
stops ColorStop[]
AppendRepeatingRadialGradient(Rect, Point, float, float, float, float, ColorStop[])
public void AppendRepeatingRadialGradient(Rect bounds, Point center, float hradius, float vradius, float start, float end, ColorStop[] stops)
Parameters
bounds Rect
center Point
hradius float
vradius float
start float
end float
stops ColorStop[]
AppendScaledTexture(Texture, ScalingFilter, Rect)
[Version("4.10")]
public void AppendScaledTexture(Texture texture, ScalingFilter filter, Rect bounds)
Parameters
texture Texture
filter ScalingFilter
bounds Rect
AppendStroke(Path, Stroke, RGBA)
[Version("4.14")]
public void AppendStroke(Path path, Stroke stroke, RGBA color)
Parameters
path Path
stroke Stroke
color RGBA
AppendTexture(Texture, Rect)
public void AppendTexture(Texture texture, Rect bounds)
Parameters
texture Texture
bounds Rect
FreeToNode()
public RenderNode? FreeToNode()
Returns
- RenderNode
FreeToPaintable(Size?)
public Paintable? FreeToPaintable(Size? size)
Parameters
size Size
Returns
- Paintable
GetGType()
public static Type GetGType()
Returns
- Type
GlShaderPopTexture()
public void GlShaderPopTexture()
New()
public static Snapshot New()
Returns
- Snapshot
Perspective(float)
public void Perspective(float depth)
Parameters
depth float
Pop()
PushBlend(BlendMode)
public void PushBlend(BlendMode blendMode)
Parameters
blendMode BlendMode
PushBlur(double)
public void PushBlur(double radius)
Parameters
radius double
PushClip(Rect)
public void PushClip(Rect bounds)
Parameters
bounds Rect
PushColorMatrix(Matrix, Vec4)
public void PushColorMatrix(Matrix colorMatrix, Vec4 colorOffset)
Parameters
colorMatrix Matrix
colorOffset Vec4
PushCrossFade(double)
public void PushCrossFade(double progress)
Parameters
progress double
PushFill(Path, FillRule)
[Version("4.14")]
public void PushFill(Path path, FillRule fillRule)
Parameters
path Path
fillRule FillRule
PushGlShader(GLShader, Rect, Bytes)
public void PushGlShader(GLShader shader, Rect bounds, Bytes takeArgs)
Parameters
shader GLShader
bounds Rect
takeArgs Bytes
PushMask(MaskMode)
[Version("4.10")]
public void PushMask(MaskMode maskMode)
Parameters
maskMode MaskMode
PushOpacity(double)
public void PushOpacity(double opacity)
Parameters
opacity double
PushRepeat(Rect, Rect?)
public void PushRepeat(Rect bounds, Rect? childBounds)
Parameters
bounds Rect
childBounds Rect
PushRoundedClip(RoundedRect)
public void PushRoundedClip(RoundedRect bounds)
Parameters
bounds RoundedRect
PushShadow(Shadow[])
public void PushShadow(Shadow[] shadow)
Parameters
shadow Shadow[]
PushStroke(Path, Stroke)
[Version("4.14")]
public void PushStroke(Path path, Stroke stroke)
Parameters
path Path
stroke Stroke
RenderBackground(StyleContext, double, double, double, double)
public void RenderBackground(StyleContext context, double x, double y, double width, double height)
Parameters
context StyleContext
x double
y double
width double
height double
RenderFocus(StyleContext, double, double, double, double)
public void RenderFocus(StyleContext context, double x, double y, double width, double height)
Parameters
context StyleContext
x double
y double
width double
height double
RenderFrame(StyleContext, double, double, double, double)
public void RenderFrame(StyleContext context, double x, double y, double width, double height)
Parameters
context StyleContext
x double
y double
width double
height double
RenderInsertionCursor(StyleContext, double, double, Layout, int, Direction)
public void RenderInsertionCursor(StyleContext context, double x, double y, Layout layout, int index, Direction direction)
Parameters
context StyleContext
x double
y double
layout Layout
index int
direction Direction
RenderLayout(StyleContext, double, double, Layout)
public void RenderLayout(StyleContext context, double x, double y, Layout layout)
Parameters
context StyleContext
x double
y double
layout Layout
Restore()
Rotate(float)
public void Rotate(float angle)
Parameters
angle float
Rotate3d(float, Vec3)
public void Rotate3d(float angle, Vec3 axis)
Parameters
angle float
axis Vec3
Save()
Scale(float, float)
public void Scale(float factorX, float factorY)
Parameters
factorX float
factorY float
Scale3d(float, float, float)
public void Scale3d(float factorX, float factorY, float factorZ)
Parameters
factorX float
factorY float
factorZ float
ToNode()
public RenderNode? ToNode()
Returns
- RenderNode
ToPaintable(Size?)
public Paintable? ToPaintable(Size? size)
Parameters
size Size
Returns
- Paintable
public void Transform(Transform? transform)
Parameters
transform Transform
public void TransformMatrix(Matrix matrix)
Parameters
matrix Matrix
Translate(Point)
public void Translate(Point point)
Parameters
point Point
Translate3d(Point3D)
public void Translate3d(Point3D point)
Parameters
point Point3D