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/gfxfont/private/glyph_bmp.h

    r7a873f0 r7e38970d  
    11/*
    2  * Copyright (c) 2012 Petr Koupy
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup gui
     29/** @addtogroup libgfxfont
    3030 * @{
    3131 */
    3232/**
    33  * @file
     33 * @file Glyph structure
     34 *
    3435 */
    3536
    36 #ifndef GUI_BUTTON_H_
    37 #define GUI_BUTTON_H_
     37#ifndef _GFX_PRIVATE_GLYPH_BMP_H
     38#define _GFX_PRIVATE_GLYPH_BMP_H
    3839
    39 #include <stdint.h>
    40 #include <io/pixel.h>
     40#include <gfx/coord.h>
     41#include <types/gfx/glyph_bmp.h>
    4142
    42 #include <draw/source.h>
    43 #include <draw/font.h>
     43/** Glyph bitmap
     44 *
     45 * Glyph bitmap open for editing. This is used to edit glyph bitmap.
     46 * Updating the entire font bitmap whenever the glyph is resized could
     47 * be costly. This allows to postpone the update until we are done editing.
     48 *
     49 * This is private to libgfxfont.
     50 */
     51struct gfx_glyph_bmp {
     52        /** Containing glyph */
     53        struct gfx_glyph *glyph;
     54        /** Rectangle covered by bitmap */
     55        gfx_rect_t rect;
     56        /** Pixel array */
     57        int *pixels;
     58};
    4459
    45 #include "connection.h"
    46 #include "widget.h"
    47 
    48 typedef struct button {
    49         widget_t widget;
    50         source_t background;
    51         source_t foreground;
    52         source_t text;
    53         char *caption;
    54         font_t *font;
    55         signal_t clicked;
    56 } button_t;
    57 
    58 extern bool init_button(button_t *, widget_t *, const void *, const char *,
    59     uint16_t, pixel_t, pixel_t, pixel_t);
    60 extern button_t *create_button(widget_t *, const void *, const char *, uint16_t,
    61     pixel_t, pixel_t, pixel_t);
    62 extern void deinit_button(button_t *);
     60extern void gfx_glyph_bmp_find_used_rect(gfx_glyph_bmp_t *, gfx_rect_t *);
    6361
    6462#endif
Note: See TracChangeset for help on using the changeset viewer.