Changeset ddb844e in mainline for uspace/lib/gui/window.h


Ignore:
Timestamp:
2020-07-03T23:00:34Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e79a025
Parents:
edb57bc6 (diff), 1a1c75e (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:

Resolve merge conflicts

File:
1 edited

Legend:

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

    redb57bc6 rddb844e  
    3737#define GUI_WINDOW_H_
    3838
    39 #include <async.h>
    4039#include <adt/prodcons.h>
    4140#include <fibril_synch.h>
     
    4342#include <io/window.h>
    4443#include <draw/surface.h>
     44#include <display.h>
     45#include <gfx/bitmap.h>
     46#include <gfx/context.h>
    4547
    4648#include "widget.h"
     
    5052        bool is_decorated; /**< True if the window decorations should be rendered. */
    5153        bool is_focused; /**< True for the top level window of the desktop. */
     54        bool is_resizable; /**< True if window is resizable */
    5255        char *caption; /**< Text title of the window header. */
    53         async_sess_t *isess; /**< Input events from compositor. */
    54         async_sess_t *osess; /**< Mainly for damage reporting to compositor. */
     56        display_t *display; /**< Display service */
     57        display_window_t *dwindow; /**< Display window */
     58        gfx_context_t *gc; /**< GC of the window */
    5559        prodcons_t events; /**< Queue for window event loop. */
    5660        widget_t root; /**< Decoration widget serving as a root of widget hiearchy. */
     
    5862        widget_t *focus; /**< Widget owning the keyboard or NULL. */
    5963        fibril_mutex_t guard; /**< Mutex guarding window surface. */
    60         surface_t *surface; /**< Window surface shared with compositor. */
     64        surface_t *surface; /**< Window surface shared with display server. */
     65        gfx_bitmap_t *bitmap; /**< Window bitmap */
     66        display_stock_cursor_t cursor; /**< Selected cursor */
    6167};
    6268
    6369/**
    64  * Allocate all resources for new window and register it in the compositor.
     70 * Allocate all resources for new window and register it in the display server.
    6571 * If the window is declared as main, its closure causes termination of the
    6672 * whole application. Note that opened window does not have any surface yet.
     
    7177/**
    7278 * Post resize event into event loop. Window negotiates new surface with
    73  * compositor and asks all widgets in the tree to calculate their new properties
    74  * and to paint themselves on the new surface (top-bottom order). Should be
    75  * called also after opening new window to obtain surface.
     79 * display server and asks all widgets in the tree to calculate their new
     80 * properties and to paint themselves on the new surface (top-bottom order).
     81 * Should be called also after opening new window to obtain surface.
    7682 */
    7783extern void window_resize(window_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t,
     
    9096
    9197/**
    92  * Post damage event into event loop. Handler informs compositor to update the
    93  * window surface on the screen. Should be called by widget after painting
     98 * Post damage event into event loop. Handler informs display server to update
     99 * the window surface on the screen. Should be called by widget after painting
    94100 * itself or copying its buffer onto window surface.
    95101 */
     
    120126
    121127/**
    122  * Initiate the closing cascade for the window. First, compositor deallocates
     128 * Initiate the closing cascade for the window. First, display sever deallocates
    123129 * output resources, prepares special closing input event for the window and
    124130 * deallocates input resources after the event is dispatched. When window
Note: See TracChangeset for help on using the changeset viewer.