Ignore:
File:
1 edited

Legend:

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

    r66a408f7 r2bb6d04  
    3737#define GUI_WINDOW_H_
    3838
     39#include <async.h>
    3940#include <adt/prodcons.h>
    4041#include <fibril_synch.h>
     
    4243#include <io/window.h>
    4344#include <draw/surface.h>
    44 #include <display.h>
    45 #include <gfx/bitmap.h>
    46 #include <gfx/context.h>
    4745
    4846#include "widget.h"
     
    5250        bool is_decorated; /**< True if the window decorations should be rendered. */
    5351        bool is_focused; /**< True for the top level window of the desktop. */
    54         bool is_resizable; /**< True if window is resizable */
    5552        char *caption; /**< Text title of the window header. */
    56         display_t *display; /**< Display service */
    57         display_window_t *dwindow; /**< Display window */
    58         gfx_context_t *gc; /**< GC of the window */
     53        async_sess_t *isess; /**< Input events from compositor. */
     54        async_sess_t *osess; /**< Mainly for damage reporting to compositor. */
    5955        prodcons_t events; /**< Queue for window event loop. */
    6056        widget_t root; /**< Decoration widget serving as a root of widget hiearchy. */
     
    6258        widget_t *focus; /**< Widget owning the keyboard or NULL. */
    6359        fibril_mutex_t guard; /**< Mutex guarding window surface. */
    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 */
     60        surface_t *surface; /**< Window surface shared with compositor. */
    6761};
    6862
    6963/**
    70  * Allocate all resources for new window and register it in the display server.
     64 * Allocate all resources for new window and register it in the compositor.
    7165 * If the window is declared as main, its closure causes termination of the
    7266 * whole application. Note that opened window does not have any surface yet.
     
    7771/**
    7872 * Post resize event into event loop. Window negotiates new surface with
    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.
     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.
    8276 */
    8377extern void window_resize(window_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t,
     
    9690
    9791/**
    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
     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
    10094 * itself or copying its buffer onto window surface.
    10195 */
     
    126120
    127121/**
    128  * Initiate the closing cascade for the window. First, display sever deallocates
     122 * Initiate the closing cascade for the window. First, compositor deallocates
    129123 * output resources, prepares special closing input event for the window and
    130124 * deallocates input resources after the event is dispatched. When window
Note: See TracChangeset for help on using the changeset viewer.