Logo Search packages:      
Sourcecode: ion3 version File versions  Download package

window.h

/*
 * ion/ioncore/window.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2007. 
 *
 * Ion is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 */

#ifndef ION_IONCORE_WINDOW_H
#define ION_IONCORE_WINDOW_H

#include "common.h"
#include "region.h"
#include "binding.h"
#include "rectangle.h"


DECLCLASS(WWindow){
    WRegion region;
    Window win;
    XIC xic;
    long event_mask;
    WStacking *stacking;
};


extern bool window_init(WWindow *p, WWindow *parent, 
                        const WFitParams *fp);
extern bool window_do_init(WWindow *p, WWindow *parent, 
                           const WFitParams *fp, Window win);
extern void window_deinit(WWindow *win);

DYNFUN void window_draw(WWindow *wwin, bool complete);
DYNFUN void window_insstr(WWindow *wwin, const char *buf, size_t n);
DYNFUN int window_press(WWindow *wwin, XButtonEvent *ev, WRegion **reg_ret);
DYNFUN void window_release(WWindow *wwin);

/* Only to be used by regions that inherit this */
extern void window_map(WWindow *wwin);
extern void window_unmap(WWindow *wwin);

extern void window_do_set_focus(WWindow *wwin, bool warp);

extern void window_do_fitrep(WWindow *wwin, WWindow *parent,
                             const WRectangle *geom);
extern bool window_fitrep(WWindow *wwin, WWindow *parent, 
                          const WFitParams *fp);
extern void window_notify_subs_move(WWindow *wwin);

extern void window_restack(WWindow *wwin, Window other, int mode);

extern void window_select_input(WWindow *wwin, long event_mask);

#endif /* ION_IONCORE_WINDOW_H */

Generated by  Doxygen 1.6.0   Back to index