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


Ignore:
Timestamp:
2020-12-07T00:08:37Z (3 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/control.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 softrend
     29/** @addtogroup libui
    3030 * @{
    3131 */
    3232/**
    33  * @file
     33 * @file UI control structure
     34 *
    3435 */
    3536
    36 #ifndef SOFTREND_RECTANGLE_H_
    37 #define SOFTREND_RECTANGLE_H_
     37#ifndef _UI_PRIVATE_CONTROL_H
     38#define _UI_PRIVATE_CONTROL_H
    3839
     40#include <gfx/coord.h>
    3941#include <stdbool.h>
    40 #include <types/common.h>
    4142
    42 extern bool rectangle_intersect(
    43     sysarg_t, sysarg_t, sysarg_t, sysarg_t,
    44     sysarg_t, sysarg_t, sysarg_t, sysarg_t,
    45     sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *);
    46 extern void rectangle_union(
    47     sysarg_t, sysarg_t, sysarg_t, sysarg_t,
    48     sysarg_t, sysarg_t, sysarg_t, sysarg_t,
    49     sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *);
     43/** Actual structure of UI control.
     44 *
     45 * UI control is the abstract base class to all UI controls (e.g. push button,
     46 * label). This is private to libui.
     47 */
     48struct ui_control {
     49        /** Pointer to layout element structure this control is attached to
     50         * or @c NULL if the control is not attached to a layout
     51         */
     52        void *elemp;
     53        /** Ops */
     54        struct ui_control_ops *ops;
     55        /** Extended data */
     56        void *ext;
     57};
    5058
    5159#endif
Note: See TracChangeset for help on using the changeset viewer.