Changeset 7e38970d in mainline for uspace/lib/ui/private/image.h


Ignore:
Timestamp:
2020-12-07T00:08:37Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25f26600
Parents:
7a873f0 (diff), 8596474 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'jxsvoboda-gfx' into master

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/private/image.h

    r7a873f0 r7e38970d  
    11/*
    2  * Copyright (c) 2019 Jiri Svoboda
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libguigfx
     29/** @addtogroup libui
    3030 * @{
    3131 */
    3232/**
    33  * @file GFX canvas backend structure
     33 * @file Image structure
    3434 *
    3535 */
    3636
    37 #ifndef _GUIGFX_PRIVATE_CANVAS_H
    38 #define _GUIGFX_PRIVATE_CANVAS_H
     37#ifndef _UI_PRIVATE_IMAGE_H
     38#define _UI_PRIVATE_IMAGE_H
    3939
    40 #include <canvas.h>
    41 #include <draw/surface.h>
    4240#include <gfx/bitmap.h>
    43 #include <gfx/context.h>
    4441#include <gfx/coord.h>
    45 #include <io/pixel.h>
    46 #include <memgfx/memgc.h>
    4742
    48 /** Actual structure of canvas GC. */
    49 struct canvas_gc {
    50         /** Memory GC */
    51         mem_gc_t *mgc;
    52         /** Base graphic context */
    53         gfx_context_t *gc;
    54         /** Canvas */
    55         canvas_t *canvas;
    56         /** Surface */
    57         surface_t *surface;
     43/** Actual structure of image.
     44 *
     45 * This is private to libui.
     46 */
     47struct ui_image {
     48        /** Base control object */
     49        struct ui_control *control;
     50        /** UI resource */
     51        struct ui_resource *res;
     52        /** Image rectangle */
     53        gfx_rect_t rect;
     54        /** Flags */
     55        ui_image_flags_t flags;
     56        /** Bitmap */
     57        gfx_bitmap_t *bitmap;
     58        /** Bitmap rectangle */
     59        gfx_rect_t brect;
    5860};
    5961
Note: See TracChangeset for help on using the changeset viewer.