|
XenevaOS
|
#include "icon.h"#include <_xeneva.h>#include <stdlib.h>#include <sys\_kefile.h>#include <sys\mman.h>#include "..\bmp.h"Functions | |
| XE_EXTERN XE_LIB ChIcon * | ChCreateIcon () |
| ChCreateIcon – create a blank icon slot. | |
| XE_EXTERN XE_LIB void | ChIconOpen (ChIcon *ico, char *filename) |
| ChIconOpen – open an icon file. | |
| XE_EXTERN XE_LIB void | ChIconRead (ChIcon *ico) |
| ChIconRead – read an icon file. | |
| XE_EXTERN XE_LIB void | ChDrawIcon (ChCanvas *canv, ChIcon *ico, int x, int y) |
| ChDrawIcon – draws an icon to canvas. | |
| XE_EXTERN XE_LIB void | ChDrawIconClipped (ChCanvas *canv, ChIcon *ico, int x, int y, ChRect *limit) |
| ChDrawIconClipped – draws an icon to canvas within clipped boundary. | |
| void | ChInitialiseDefaultIcons () |
| ChInitialiseDefaultIcons – initialise all chitralekha default icons. | |
| ChIcon * | ChIconGetSystemIcon (uint8_t iconnum) |
| ChIconGetSystemIcon – returns all system icons. | |
Variables | |
| ChIcon * | warning |
| ChIcon * | success |
| ChIcon * | exclaim |
| ChIcon * | information |
BSD 2-Clause License
Copyright (c) 2022, 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.
ChCreateIcon – create a blank icon slot.
ChDrawIcon – draws an icon to canvas.
| canv | – Pointer to canvas |
| ico | – pointer to icon file |
| x | – X coord |
| y | – Y coord |
| XE_EXTERN XE_LIB void ChDrawIconClipped | ( | ChCanvas * | canv, |
| ChIcon * | ico, | ||
| int | x, | ||
| int | y, | ||
| ChRect * | limit | ||
| ) |
ChDrawIconClipped – draws an icon to canvas within clipped boundary.
| canv | – Pointer to canvas |
| ico | – pointer to icon file |
| x | – X coord |
| y | – Y coord |
| limit | – Pointer to limit rect |
ChIconGetSystemIcon – returns all system icons.
| iconnum | – Icon code number |
ChIconOpen – open an icon file.
| ico | – pointer to icon file |
| filename | – icon file's path |
ChIconRead – read an icon file.
| ico | – pointer to icon structure |
| void ChInitialiseDefaultIcons | ( | ) |
ChInitialiseDefaultIcons – initialise all chitralekha default icons.
| ChIcon* exclaim |
| ChIcon* information |
| ChIcon* success |
| ChIcon* warning |