Changeset 47728678 in mainline for uspace/lib/ui/private/pbutton.h


Ignore:
Timestamp:
2020-10-13T09:24:56Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f6df5a3
Parents:
f80690a
git-author:
Jiri Svoboda <jiri@…> (2020-10-12 21:24:39)
git-committer:
Jiri Svoboda <jiri@…> (2020-10-13 09:24:56)
Message:

Push button - first light

Introduced ui_resource_t class to hold common UI resources such as font,
colors, etc. We don't want every button to load its own copy of the font.

File:
1 edited

Legend:

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

    rf80690a r47728678  
    3838#define _UI_PRIVATE_PBUTTON_H
    3939
     40#include <gfx/context.h>
     41#include <gfx/coord.h>
     42
    4043/** Actual structure of push button.
    4144 *
     
    4346 */
    4447struct ui_pbutton {
     48        /** UI resource */
     49        struct ui_resource *res;
     50        /** Push button rectangle */
     51        gfx_rect_t rect;
     52        /** Caption */
    4553        const char *caption;
    4654};
Note: See TracChangeset for help on using the changeset viewer.