Class Snapshot
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Snapshot : Snapshot, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Snapshot
- Implements
- Inherited Members
Constructors
Snapshot(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Snapshot(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Snapshot(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Snapshot(CreationData data)
Parameters
dataCreationData
Snapshot(SnapshotHandle)
protected Snapshot(SnapshotHandle handle)
Parameters
handleSnapshotHandle
Methods
AppendCairo(Rect)
public Context AppendCairo(Rect bounds)
Parameters
boundsRect
Returns
AppendColor(RGBA, Rect)
public void AppendColor(RGBA color, Rect bounds)
Parameters
AppendConicGradient(Rect, Point, float, ColorStop[])
public void AppendConicGradient(Rect bounds, Point center, float rotation, ColorStop[] stops)
Parameters
AppendFill(Path, FillRule, RGBA)
[Version("4.14")]
public void AppendFill(Path path, FillRule fillRule, RGBA color)
Parameters
AppendInsetShadow(RoundedRect, RGBA, float, float, float, float)
public void AppendInsetShadow(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
Parameters
AppendLayout(Layout, RGBA)
public void AppendLayout(Layout layout, RGBA color)
Parameters
AppendLinearGradient(Rect, Point, Point, ColorStop[])
public void AppendLinearGradient(Rect bounds, Point startPoint, Point endPoint, ColorStop[] stops)
Parameters
AppendNode(RenderNode)
public void AppendNode(RenderNode node)
Parameters
nodeRenderNode
AppendOutsetShadow(RoundedRect, RGBA, float, float, float, float)
public void AppendOutsetShadow(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
Parameters
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
AppendRepeatingLinearGradient(Rect, Point, Point, ColorStop[])
public void AppendRepeatingLinearGradient(Rect bounds, Point startPoint, Point endPoint, ColorStop[] stops)
Parameters
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
AppendScaledTexture(Texture, ScalingFilter, Rect)
[Version("4.10")]
public void AppendScaledTexture(Texture texture, ScalingFilter filter, Rect bounds)
Parameters
textureTexturefilterScalingFilterboundsRect
AppendStroke(Path, Stroke, RGBA)
[Version("4.14")]
public void AppendStroke(Path path, Stroke stroke, RGBA color)
Parameters
AppendTexture(Texture, Rect)
public void AppendTexture(Texture texture, Rect bounds)
Parameters
FreeToNode()
public RenderNode? FreeToNode()
Returns
FreeToPaintable(Size?)
public Paintable? FreeToPaintable(Size? size)
Parameters
sizeSize
Returns
GetGType()
public static Type GetGType()
Returns
GlShaderPopTexture()
public void GlShaderPopTexture()
New()
public static Snapshot New()
Returns
NewFromPointer(nint, bool)
Creates a new managed Snapshot instance for a given pointer.
public static Snapshot NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Snapshot and sets the properties specified by the construct arguments.
public static Snapshot NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Perspective(float)
public void Perspective(float depth)
Parameters
depthfloat
Pop()
public void Pop()
PushBlend(BlendMode)
public void PushBlend(BlendMode blendMode)
Parameters
blendModeBlendMode
PushBlur(double)
public void PushBlur(double radius)
Parameters
radiusdouble
PushClip(Rect)
public void PushClip(Rect bounds)
Parameters
boundsRect
PushColorMatrix(Matrix, Vec4)
public void PushColorMatrix(Matrix colorMatrix, Vec4 colorOffset)
Parameters
PushComponentTransfer(ComponentTransfer, ComponentTransfer, ComponentTransfer, ComponentTransfer)
[Version("4.20")]
public void PushComponentTransfer(ComponentTransfer red, ComponentTransfer green, ComponentTransfer blue, ComponentTransfer alpha)
Parameters
redComponentTransfergreenComponentTransferblueComponentTransferalphaComponentTransfer
PushCrossFade(double)
public void PushCrossFade(double progress)
Parameters
progressdouble
PushFill(Path, FillRule)
[Version("4.14")]
public void PushFill(Path path, FillRule fillRule)
Parameters
PushGlShader(GLShader, Rect, Bytes)
public void PushGlShader(GLShader shader, Rect bounds, Bytes takeArgs)
Parameters
PushMask(MaskMode)
[Version("4.10")]
public void PushMask(MaskMode maskMode)
Parameters
maskModeMaskMode
PushOpacity(double)
public void PushOpacity(double opacity)
Parameters
opacitydouble
PushRepeat(Rect, Rect?)
public void PushRepeat(Rect bounds, Rect? childBounds)
Parameters
PushRoundedClip(RoundedRect)
public void PushRoundedClip(RoundedRect bounds)
Parameters
boundsRoundedRect
PushShadow(Shadow[])
public void PushShadow(Shadow[] shadow)
Parameters
shadowShadow[]
PushStroke(Path, Stroke)
[Version("4.14")]
public void PushStroke(Path path, Stroke stroke)
Parameters
RenderBackground(StyleContext, double, double, double, double)
public void RenderBackground(StyleContext context, double x, double y, double width, double height)
Parameters
contextStyleContextxdoubleydoublewidthdoubleheightdouble
RenderFocus(StyleContext, double, double, double, double)
public void RenderFocus(StyleContext context, double x, double y, double width, double height)
Parameters
contextStyleContextxdoubleydoublewidthdoubleheightdouble
RenderFrame(StyleContext, double, double, double, double)
public void RenderFrame(StyleContext context, double x, double y, double width, double height)
Parameters
contextStyleContextxdoubleydoublewidthdoubleheightdouble
RenderInsertionCursor(StyleContext, double, double, Layout, int, Direction)
public void RenderInsertionCursor(StyleContext context, double x, double y, Layout layout, int index, Direction direction)
Parameters
RenderLayout(StyleContext, double, double, Layout)
public void RenderLayout(StyleContext context, double x, double y, Layout layout)
Parameters
contextStyleContextxdoubleydoublelayoutLayout
Restore()
public void Restore()
Rotate(float)
public void Rotate(float angle)
Parameters
anglefloat
Rotate3d(float, Vec3)
public void Rotate3d(float angle, Vec3 axis)
Parameters
Save()
public void Save()
Scale(float, float)
public void Scale(float factorX, float factorY)
Parameters
Scale3d(float, float, float)
public void Scale3d(float factorX, float factorY, float factorZ)
Parameters
ToNode()
public RenderNode? ToNode()
Returns
ToPaintable(Size?)
public Paintable? ToPaintable(Size? size)
Parameters
sizeSize
Returns
Transform(Transform?)
public void Transform(Transform? transform)
Parameters
transformTransform
TransformMatrix(Matrix)
public void TransformMatrix(Matrix matrix)
Parameters
matrixMatrix
Translate(Point)
public void Translate(Point point)
Parameters
pointPoint
Translate3d(Point3D)
public void Translate3d(Point3D point)
Parameters
pointPoint3D