Abstract surface type for the MyPaint brush engine. The surface interface lets the brush engine specify dabs to render, and to pick color.
MyPaintSurface2: (skip)
This extends the regular MyPaintSurface with three new functions that support the use of spectral blending, for drawing dabs and getting color, and additionally supports using multiple invalidation rectangles when finalizing drawing operations.
The interface functions for MyPaintSurface can be called with instances of MyPaintSurface2 via the use of mypaint_surface2_to_surface (or just casting). Concrete implementations of MypaintSurface2 should support this.
MyPaintSymmetryData: Contains data used for symmetry calculations
Instances contain a current and pending symmetry basis, and the matrices used for the actual symmetry transforms. When the pending state is modified, the “pending_changes” flag should be set. Matrix recalculation should not be performed during draw operations.
MyPaintSymmetryState: Contains the basis for symmetry calculations
This is used to calculate the matrices that are used for the actual symmetry calculations, and to determine whether the matrices need to be recalculated.
Interface and convenience class for implementing a MyPaintSurface backed by a tile store.
The size of the surface is infinite, and consumers need just implement two vfuncs.
MyPaintTiledSurface2: (skip)
Tiled surface supporting the MyPaintSurface2 interface.
Values:
Values:
Values:
MyPaintFixedTiledSurface:
Simple MyPaintTiledSurface subclass that implements a fixed sized MyPaintSurface. Only intended for testing and trivial use-cases, and to serve as an example of how to implement a tiled surface subclass.
mypaint_surface_draw_dab:
Draw a dab onto the surface.
mypaint_surface_draw_dab_2:
Draw a dab onto the surface, with support for posterize/pigment
MyPaintSymmetryType: Enumeration of different kinds of symmetry
Prefix = ‘MYPAINT_SYMMETRY_TYPE_’ VERTICAL: reflection across the y-axis HORIZONTAL: reflection across the x-axis VERTHORZ: reflection across x-axis and y-axis, special case of SNOWFLAKE ROTATIONAL: rotational symmetry by N symmetry lines around a point SNOWFLAKE: rotational symmetry w. reflection across the N symmetry lines
Values: