Changeset e0545de in mainline for uspace/lib/guigfx/private/canvas.h


Ignore:
Timestamp:
2019-10-19T10:07:32Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d18f3b7
Parents:
dcc4cb31
Message:

Implement bitmaps in canvas GC, demo in gfxdemo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/guigfx/private/canvas.h

    rdcc4cb31 re0545de  
    4040#include <canvas.h>
    4141#include <draw/surface.h>
     42#include <gfx/bitmap.h>
    4243#include <gfx/context.h>
     44#include <gfx/coord.h>
    4345#include <io/pixel.h>
    4446
     
    5860};
    5961
     62/** Bitmap in canvas GC */
     63typedef struct {
     64        /** Containing canvas GC */
     65        struct canvas_gc *cgc;
     66        /** Allocation info */
     67        gfx_bitmap_alloc_t alloc;
     68        /** @c true if we allocated the bitmap, @c false if allocated by caller */
     69        bool myalloc;
     70        /** Surface */
     71        surface_t *surface;
     72        /** Rectangle covered by bitmap */
     73        gfx_rect_t rect;
     74} canvas_gc_bitmap_t;
     75
    6076#endif
    6177
Note: See TracChangeset for help on using the changeset viewer.