Codebase list libmypaint / 94cd3f2c-1a1e-4d25-85a6-9940c4884430/main mypaint-fixed-tiled-surface.h
94cd3f2c-1a1e-4d25-85a6-9940c4884430/main

Tree @94cd3f2c-1a1e-4d25-85a6-9940c4884430/main (Download .tar.gz)

mypaint-fixed-tiled-surface.h @94cd3f2c-1a1e-4d25-85a6-9940c4884430/mainraw · history · blame

#ifndef MYPAINTFIXEDTILEDSURFACE_H
#define MYPAINTFIXEDTILEDSURFACE_H

#include "mypaint-config.h"
#include "mypaint-glib-compat.h"
#include "mypaint-tiled-surface.h"

G_BEGIN_DECLS

/**
 * 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.
 */
typedef struct MyPaintFixedTiledSurface MyPaintFixedTiledSurface;

MyPaintFixedTiledSurface *
mypaint_fixed_tiled_surface_new(int width, int height);

int
mypaint_fixed_tiled_surface_get_width(MyPaintFixedTiledSurface *self);

int
mypaint_fixed_tiled_surface_get_height(MyPaintFixedTiledSurface *self);


MyPaintSurface *
mypaint_fixed_tiled_surface_interface(MyPaintFixedTiledSurface *self);

G_END_DECLS

#endif // MYPAINTFIXEDTILEDSURFACE_H