PageRenderTime 253ms CodeModel.GetById 121ms app.highlight 5ms RepoModel.GetById 126ms app.codeStats 0ms

/src/ftk_window.h

http://ftk.googlecode.com/
C++ Header | 64 lines | 27 code | 8 blank | 29 comment | 0 complexity | 78b1b14088ff72c51ecbd4e1c3116353 MD5 | raw file
 1/*
 2 * File: ftk_window.h    
 3 * Author: Li XianJing <xianjimli@hotmail.com>
 4 * Brief:  window 
 5 *
 6 * Copyright (c) 2009 - 2010  Li XianJing <xianjimli@hotmail.com>
 7 *
 8 * Licensed under the Academic Free License version 2.1
 9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 */
24
25/*
26 * History:
27 * ================================================================
28 * 2009-10-03 Li XianJing <xianjimli@hotmail.com> created
29 *
30 */
31
32#ifndef FTK_WINDOW_H
33#define FTK_WINDOW_H
34
35#include "ftk_widget.h"
36#include "ftk_animation.h"
37#include "ftk_wnd_manager.h"
38#include "ftk_animation_trigger.h"
39
40FTK_BEGIN_DECLS
41
42FtkWidget* ftk_window_create(int type, unsigned int attr, int x, int y, int width, int height);
43FtkWidget* ftk_sub_window_create(FtkWidget* parent, int type, unsigned int attr, int x, int y, int width, int height);
44Ret        ftk_window_set_focus(FtkWidget* thiz, FtkWidget* focus_widget);
45FtkWidget* ftk_window_get_focus(FtkWidget* thiz);
46Ret        ftk_window_grab(FtkWidget* thiz, FtkWidget* grab_widget);
47Ret        ftk_window_ungrab(FtkWidget* thiz, FtkWidget* grab_widget);
48Ret        ftk_window_paint_forcely(FtkWidget* thiz);
49Ret        ftk_window_update(FtkWidget* thiz, FtkRect* rect);
50int        ftk_window_is_mapped(FtkWidget* thiz);
51int        ftk_window_is_fullscreen(FtkWidget* thiz);
52Ret        ftk_window_set_fullscreen(FtkWidget* thiz, int fullscreen);
53Ret        ftk_window_invalidate(FtkWidget* thiz, FtkRect* rect);
54int        ftk_window_is_opaque(FtkWidget* thiz);
55Ret        ftk_window_set_background_with_alpha(FtkWidget* thiz, FtkBitmap* bitmap, FtkColor bg);
56Ret        ftk_window_enable_update(FtkWidget* thiz);
57Ret        ftk_window_disable_update(FtkWidget* thiz);
58const char* ftk_window_get_animation_hint(FtkWidget* thiz);
59Ret        ftk_window_set_animation_hint(FtkWidget* thiz, const char* hint);
60
61FTK_END_DECLS
62
63#endif/*FTK_WINDOW_H*/
64