Changeset fa98b26a in mainline for uspace/lib/gui


Ignore:
Timestamp:
2012-11-25T21:26:29Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82edef2
Parents:
290a0f0
Message:

Improved window opening API to allow specification of initial window coordinates.

Location:
uspace/lib/gui
Files:
2 edited

Legend:

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

    r290a0f0 rfa98b26a  
    534534}
    535535
    536 window_t *window_open(char *winreg, bool is_main, bool is_decorated, const char *caption)
     536window_t *window_open(char *winreg, bool is_main, bool is_decorated,
     537    const char *caption, sysarg_t x_offset, sysarg_t y_offset)
    537538{
    538539        int rc;
     
    578579        service_id_t out_dsid;
    579580       
    580         rc = win_register(reg_sess, &in_dsid, &out_dsid);
     581        rc = win_register(reg_sess, &in_dsid, &out_dsid, x_offset, y_offset);
    581582        async_hangup(reg_sess);
    582583        if (rc != EOK) {
  • uspace/lib/gui/window.h

    r290a0f0 rfa98b26a  
    6666 * If the window is declared as main, its closure causes termination of the
    6767 * whole application. Note that opened window does not have any surface yet. */
    68 extern window_t *window_open(char *, bool, bool, const char *);
     68extern window_t *window_open(char *, bool, bool, const char *, sysarg_t, sysarg_t);
    6969
    7070/**
Note: See TracChangeset for help on using the changeset viewer.