/src/ftk_window.h
http://ftk.googlecode.com/ · C Header · 64 lines · 27 code · 8 blank · 29 comment · 0 complexity · 78b1b14088ff72c51ecbd4e1c3116353 MD5 · raw file
- /*
- * File: ftk_window.h
- * Author: Li XianJing <xianjimli@hotmail.com>
- * Brief: window
- *
- * Copyright (c) 2009 - 2010 Li XianJing <xianjimli@hotmail.com>
- *
- * Licensed under the Academic Free License version 2.1
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
- /*
- * History:
- * ================================================================
- * 2009-10-03 Li XianJing <xianjimli@hotmail.com> created
- *
- */
- #ifndef FTK_WINDOW_H
- #define FTK_WINDOW_H
- #include "ftk_widget.h"
- #include "ftk_animation.h"
- #include "ftk_wnd_manager.h"
- #include "ftk_animation_trigger.h"
- FTK_BEGIN_DECLS
- FtkWidget* ftk_window_create(int type, unsigned int attr, int x, int y, int width, int height);
- FtkWidget* ftk_sub_window_create(FtkWidget* parent, int type, unsigned int attr, int x, int y, int width, int height);
- Ret ftk_window_set_focus(FtkWidget* thiz, FtkWidget* focus_widget);
- FtkWidget* ftk_window_get_focus(FtkWidget* thiz);
- Ret ftk_window_grab(FtkWidget* thiz, FtkWidget* grab_widget);
- Ret ftk_window_ungrab(FtkWidget* thiz, FtkWidget* grab_widget);
- Ret ftk_window_paint_forcely(FtkWidget* thiz);
- Ret ftk_window_update(FtkWidget* thiz, FtkRect* rect);
- int ftk_window_is_mapped(FtkWidget* thiz);
- int ftk_window_is_fullscreen(FtkWidget* thiz);
- Ret ftk_window_set_fullscreen(FtkWidget* thiz, int fullscreen);
- Ret ftk_window_invalidate(FtkWidget* thiz, FtkRect* rect);
- int ftk_window_is_opaque(FtkWidget* thiz);
- Ret ftk_window_set_background_with_alpha(FtkWidget* thiz, FtkBitmap* bitmap, FtkColor bg);
- Ret ftk_window_enable_update(FtkWidget* thiz);
- Ret ftk_window_disable_update(FtkWidget* thiz);
- const char* ftk_window_get_animation_hint(FtkWidget* thiz);
- Ret ftk_window_set_animation_hint(FtkWidget* thiz, const char* hint);
- FTK_END_DECLS
- #endif/*FTK_WINDOW_H*/