Changeset 3deb0155 in mainline for uspace/lib/gui/canvas.h


Ignore:
Timestamp:
2013-04-10T19:11:45Z (11 years ago)
Author:
Beniamino Galvani <b.galvani@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd0c8a0
Parents:
44186b01 (diff), b4f43a1 (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 mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/canvas.h

    r44186b01 r3deb0155  
    11/*
    2  * Copyright (c) 2008 Martin Decky
     2 * Copyright (c) 2013 Martin Decky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup genarch
     29/** @addtogroup gui
    3030 * @{
    3131 */
    32 /** @file
     32/**
     33 * @file
    3334 */
    3435
    35 #ifndef KERN_LOGO_196X66_H_
    36 #define KERN_LOGO_196X66_H_
     36#ifndef GUI_CANVAS_H_
     37#define GUI_CANVAS_H_
    3738
    38 #define LOGO_WIDTH   196
    39 #define LOGO_HEIGHT  66
    40 #define LOGO_COLOR   0xffffff
     39#include <stdbool.h>
     40#include <sys/types.h>
     41#include <io/pixel.h>
     42#include <surface.h>
     43#include "widget.h"
    4144
    42 #include <typedefs.h>
     45typedef struct {
     46        widget_t widget;
     47        sysarg_t width;
     48        sysarg_t height;
     49        surface_t *surface;
     50} canvas_t;
    4351
    44 extern uint32_t fb_logo[LOGO_WIDTH * LOGO_HEIGHT];
     52extern bool init_canvas(canvas_t *, widget_t *, sysarg_t, sysarg_t,
     53    surface_t *);
     54extern canvas_t *create_canvas(widget_t *, sysarg_t, sysarg_t, surface_t *);
     55extern void deinit_canvas(canvas_t *);
    4556
    4657#endif
Note: See TracChangeset for help on using the changeset viewer.