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
  
    - constructArgumentsConstructArgument[]
  Snapshot(SnapshotHandle)
  
  
  
  
  
    public Snapshot(SnapshotHandle handle)
   
  Parameters
  
    - handleSnapshotHandle
Methods
  
  
  AppendCairo(Rect)
  
  
  
  
  
    public Context AppendCairo(Rect bounds)
   
  Parameters
  
    - boundsRect
Returns
  
    - Context
  AppendColor(RGBA, Rect)
  
  
  
  
  
    public void AppendColor(RGBA color, Rect bounds)
   
  Parameters
  
    - colorRGBA
- boundsRect
  AppendConicGradient(Rect, Point, float, ColorStop[])
  
  
  
  
  
    public void AppendConicGradient(Rect bounds, Point center, float rotation, ColorStop[] stops)
   
  Parameters
  
    - boundsRect
- centerPoint
- rotationfloat
- stopsColorStop[]
  AppendFill(Path, FillRule, RGBA)
  
  
  
  
  
    [Version("4.14")]
public void AppendFill(Path path, FillRule fillRule, RGBA color)
   
  Parameters
  
    - pathPath
- fillRuleFillRule
- colorRGBA
  AppendInsetShadow(RoundedRect, RGBA, float, float, float, float)
  
  
  
  
  
    public void AppendInsetShadow(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius)
   
  Parameters
  
    - outlineRoundedRect
- colorRGBA
- dxfloat
- dyfloat
- spreadfloat
- blurRadiusfloat
  AppendLayout(Layout, RGBA)
  
  
  
  
  
    public void AppendLayout(Layout layout, RGBA color)
   
  Parameters
  
    - layoutLayout
- colorRGBA
  AppendLinearGradient(Rect, Point, Point, ColorStop[])
  
  
  
  
  
    public void AppendLinearGradient(Rect bounds, Point startPoint, Point endPoint, ColorStop[] stops)
   
  Parameters
  
    - boundsRect
- startPointPoint
- endPointPoint
- stopsColorStop[]
  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
  
    - outlineRoundedRect
- colorRGBA
- dxfloat
- dyfloat
- spreadfloat
- blurRadiusfloat
  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
  
    - boundsRect
- centerPoint
- hradiusfloat
- vradiusfloat
- startfloat
- endfloat
- stopsColorStop[]
  AppendRepeatingLinearGradient(Rect, Point, Point, ColorStop[])
  
  
  
  
  
    public void AppendRepeatingLinearGradient(Rect bounds, Point startPoint, Point endPoint, ColorStop[] stops)
   
  Parameters
  
    - boundsRect
- startPointPoint
- endPointPoint
- stopsColorStop[]
  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
  
    - boundsRect
- centerPoint
- hradiusfloat
- vradiusfloat
- startfloat
- endfloat
- stopsColorStop[]
  AppendScaledTexture(Texture, ScalingFilter, Rect)
  
  
  
  
  
    [Version("4.10")]
public void AppendScaledTexture(Texture texture, ScalingFilter filter, Rect bounds)
   
  Parameters
  
    - textureTexture
- filterScalingFilter
- boundsRect
  AppendStroke(Path, Stroke, RGBA)
  
  
  
  
  
    [Version("4.14")]
public void AppendStroke(Path path, Stroke stroke, RGBA color)
   
  Parameters
  
    - pathPath
- strokeStroke
- colorRGBA
  AppendTexture(Texture, Rect)
  
  
  
  
  
    public void AppendTexture(Texture texture, Rect bounds)
   
  Parameters
  
    - textureTexture
- boundsRect
  FreeToNode()
  
  
  
  
  
    public RenderNode? FreeToNode()
   
  Returns
  
    - RenderNode
  FreeToPaintable(Size?)
  
  
  
  
  
    public Paintable? FreeToPaintable(Size? size)
   
  Parameters
  
    - sizeSize
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
  
    - depthfloat
  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
  
    - colorMatrixMatrix
- colorOffsetVec4
  PushCrossFade(double)
  
  
  
  
  
    public void PushCrossFade(double progress)
   
  Parameters
  
    - progressdouble
  PushFill(Path, FillRule)
  
  
  
  
  
    [Version("4.14")]
public void PushFill(Path path, FillRule fillRule)
   
  Parameters
  
    - pathPath
- fillRuleFillRule
  PushGlShader(GLShader, Rect, Bytes)
  
  
  
  
  
    public void PushGlShader(GLShader shader, Rect bounds, Bytes takeArgs)
   
  Parameters
  
    - shaderGLShader
- boundsRect
- takeArgsBytes
  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
  
    - boundsRect
- childBoundsRect
  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
  
    - pathPath
- strokeStroke
  RenderBackground(StyleContext, double, double, double, double)
  
  
  
  
  
    public void RenderBackground(StyleContext context, double x, double y, double width, double height)
   
  Parameters
  
    - contextStyleContext
- xdouble
- ydouble
- widthdouble
- heightdouble
  RenderFocus(StyleContext, double, double, double, double)
  
  
  
  
  
    public void RenderFocus(StyleContext context, double x, double y, double width, double height)
   
  Parameters
  
    - contextStyleContext
- xdouble
- ydouble
- widthdouble
- heightdouble
  RenderFrame(StyleContext, double, double, double, double)
  
  
  
  
  
    public void RenderFrame(StyleContext context, double x, double y, double width, double height)
   
  Parameters
  
    - contextStyleContext
- xdouble
- ydouble
- widthdouble
- heightdouble
  RenderInsertionCursor(StyleContext, double, double, Layout, int, Direction)
  
  
  
  
  
    public void RenderInsertionCursor(StyleContext context, double x, double y, Layout layout, int index, Direction direction)
   
  Parameters
  
    - contextStyleContext
- xdouble
- ydouble
- layoutLayout
- indexint
- directionDirection
  RenderLayout(StyleContext, double, double, Layout)
  
  
  
  
  
    public void RenderLayout(StyleContext context, double x, double y, Layout layout)
   
  Parameters
  
    - contextStyleContext
- xdouble
- ydouble
- layoutLayout
  Restore()
  
  
  
  
  
  
  
  Rotate(float)
  
  
  
  
  
    public void Rotate(float angle)
   
  Parameters
  
    - anglefloat
  Rotate3d(float, Vec3)
  
  
  
  
  
    public void Rotate3d(float angle, Vec3 axis)
   
  Parameters
  
    - anglefloat
- axisVec3
  Save()
  
  
  
  
  
  
  
  Scale(float, float)
  
  
  
  
  
    public void Scale(float factorX, float factorY)
   
  Parameters
  
    - factorXfloat
- factorYfloat
  Scale3d(float, float, float)
  
  
  
  
  
    public void Scale3d(float factorX, float factorY, float factorZ)
   
  Parameters
  
    - factorXfloat
- factorYfloat
- factorZfloat
  ToNode()
  
  
  
  
  
    public RenderNode? ToNode()
   
  Returns
  
    - RenderNode
  ToPaintable(Size?)
  
  
  
  
  
    public Paintable? ToPaintable(Size? size)
   
  Parameters
  
    - sizeSize
Returns
  
    - Paintable
    public void Transform(Transform? transform)
   
  Parameters
  
    - transformTransform
    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