Changeset 7e38970d in mainline for uspace/app/uidemo/uidemo.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/app/uidemo/uidemo.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 uidemo
    3030 * @{
    3131 */
    3232/**
    33  * @file GFX canvas backend
     33 * @file User interface demo
    3434 */
    3535
    36 #ifndef _GUIGFX_CANVAS_H
    37 #define _GUIGFX_CANVAS_H
     36#ifndef UIDEMO_H
     37#define UIDEMO_H
    3838
    39 #include <canvas.h>
    40 #include <types/gfx/context.h>
    41 #include <types/gfx/ops/context.h>
    42 #include <types/guigfx/canvas.h>
     39#include <display.h>
     40#include <ui/entry.h>
     41#include <ui/fixed.h>
     42#include <ui/label.h>
     43#include <ui/pbutton.h>
     44#include <ui/ui.h>
     45#include <ui/window.h>
    4346
    44 extern gfx_context_ops_t canvas_gc_ops;
    45 
    46 extern errno_t canvas_gc_create(canvas_t *, surface_t *, canvas_gc_t **);
    47 extern errno_t canvas_gc_delete(canvas_gc_t *);
    48 extern gfx_context_t *canvas_gc_get_ctx(canvas_gc_t *);
     47/** User interface demo */
     48typedef struct {
     49        ui_t *ui;
     50        ui_window_t *window;
     51        ui_fixed_t *fixed;
     52        ui_entry_t *entry;
     53        ui_image_t *image;
     54        ui_label_t *label;
     55        ui_pbutton_t *pb1;
     56        ui_pbutton_t *pb2;
     57} ui_demo_t;
    4958
    5059#endif
Note: See TracChangeset for help on using the changeset viewer.