|
XenevaOS
|
#include <stdint.h>#include "..\chitralekha.h"#include "..\color.h"#include "..\draw.h"#include "base.h"#include "list.h"#include <setjmp.h>

Go to the source code of this file.
Classes | |
| struct | _ChSharedWin_ |
| struct | _chwin_ |
| struct | _ChWidget_ |
| struct | _global_ctrl_ |
| struct | _popup_sh_win_ |
| struct | _popup_win_ |
Typedefs | |
| typedef struct _ChSharedWin_ | ChSharedWinInfo |
| typedef struct _chwin_ | ChWindow |
| typedef struct _ChWidget_ | ChWidget |
| typedef struct _global_ctrl_ | ChWinGlobalControl |
| typedef struct _popup_sh_win_ | ChPopupSharedWin |
| typedef struct _popup_win_ | ChPopupWindow |
| #define CHITRALEKHA_DEFAULT_WIN_HEIGHT 300 |
| #define CHITRALEKHA_DEFAULT_WIN_WIDTH 400 |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define CHITRALEKHA_WIDGET_SCROLL_HORIZONTAL 0 |
| #define CHITRALEKHA_WIDGET_SCROLL_VERTICAL 1 |
| #define CHITRALEKHA_WIDGET_TYPE_CONTROL (1<<1) |
| #define CHITRALEKHA_WIDGET_TYPE_POPUP (1<<2) |
| #define CHITRALEKHA_WINDOW_DEFAULT_PAD_X 1 |
| #define CHITRALEKHA_WINDOW_DEFAULT_PAD_Y 26 |
| #define WINDOW_FLAG_ALWAYS_ON_TOP (1<<2) |
| #define WINDOW_FLAG_ANIMATED (1<<5) |
| #define WINDOW_FLAG_ANIMATION_FADE_IN (1<<9) |
| #define WINDOW_FLAG_ANIMATION_FADE_OUT (1<<10) |
| #define WINDOW_FLAG_BLOCKED (1<<6) |
| #define WINDOW_FLAG_BROADCAST_LISTENER (1<<4) |
| #define WINDOW_FLAG_DIALOGBOX (1<<8) |
| #define WINDOW_FLAG_MESSAGEBOX (1<<7) |
| #define WINDOW_FLAG_MOVABLE (1<<0) |
| #define WINDOW_FLAG_NON_RESIZABLE (1<<3) |
| #define WINDOW_FLAG_POPUP (1<<11) |
| #define WINDOW_FLAG_STATIC (1<<1) |
| #define WINDOW_GLOBAL_CONTROL_CLOSE 1 |
| #define WINDOW_GLOBAL_CONTROL_CUSTOM 4 |
| #define WINDOW_GLOBAL_CONTROL_MAXIMIZE 2 |
| #define WINDOW_GLOBAL_CONTROL_MINIMIZE 3 |
| #define WINDOW_HANDLE_TYPE_NORMAL 1 |
| #define WINDOW_HANDLE_TYPE_POPUP 2 |
| typedef struct _popup_sh_win_ ChPopupSharedWin |
| typedef struct _popup_win_ ChPopupWindow |
| typedef struct _ChSharedWin_ ChSharedWinInfo |
| typedef struct _ChWidget_ ChWidget |
| typedef struct _global_ctrl_ ChWinGlobalControl |
| XE_LIB ChWindow * ChCreatePopupWindow | ( | ChWindow * | win, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| uint16_t | flags, | ||
| char * | title | ||
| ) |
| XE_LIB ChWindow * ChCreateWindow | ( | ChitralekhaApp * | app, |
| uint16_t | attrib, | ||
| char * | title, | ||
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
| XE_LIB uint32_t ChGetWindowHandle | ( | ChitralekhaApp * | app, |
| char * | title | ||
| ) |
| XE_LIB void ChPopupWindowUpdate | ( | ChPopupWindow * | pw, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
| XE_LIB void ChWindowBroadcastIcon | ( | ChitralekhaApp * | app, |
| char * | iconfile | ||
| ) |