|
XenevaOS
|


Go to the source code of this file.
Classes | |
| struct | _toolbar_item_ |
| struct | _toolbar_ |
Macros | |
| #define | TOOLBAR_STATE_NORMAL 0 |
| #define | TOOLBAR_STATE_HOVER 1 |
| #define | TOOLBAR_STATE_PRESSED 2 |
| #define | TOOLBAR_STATE_ACTIVE 3 |
| #define | TOOLBAR_STATE_DISABLED 4 |
| #define | TOOLBAR_MAX_ITEMS 64 |
| #define | TOOLBAR_BTN_PADDING 6 |
| #define | TOOLBAR_SEP_THICKNESS 1 |
| #define | TOOLBAR_SEP_MARGIN 4 |
| #define | TOOLBAR_OVERFLOW_BTN_SZ 14 |
Typedefs | |
| typedef enum _titemType_ | ToolBarItemType |
| typedef enum _toolbar_orientation_ | ChToolbarOrientation |
| typedef struct _toolbar_item_ | ChToolBarItem |
| typedef struct _toolbar_ | ChToolbar |
Enumerations | |
| enum | _titemType_ { TOOLBAR_ITEM_BUTTON , TOOLBAR_ITEM_TOGGLE , TOOLBAR_ITEM_RADIO , TOOLBAR_ITEM_SEPARATOR , TOOLBAR_ITEM_WIDGET } |
| enum | _toolbar_orientation_ { TOOLBAR_HORIZONTAL , TOOLBAR_VERTICAL } |
Functions | |
| XE_EXPORT ChToolbar * | ChToolbarCreate (int x, int y, int w, int h, uint8_t orientation) |
| XE_EXPORT int | ChToolbarAddButton (ChToolbar *tb, ChIcon *icon, int iw, int ih, const char *tooltip, void *ud) |
| XE_EXPORT int | ChToolbarAddToggle (ChToolbar *tb, ChIcon *icon, int iw, int ih, const char *tooltip, void *ud) |
| XE_EXPORT int | ChToolbarAddRadio (ChToolbar *tb, ChIcon *icon, int iw, int ih, const char *tooltip, uint8_t groupID, void *ud) |
| XE_EXPORT int | ChToolbarAddSeparator (ChToolbar *tb) |
| XE_EXPORT int | ChToolbarAddWidget (ChToolbar *tb, ChWidget *child, int childW, int childH) |
| XE_EXPORT void | ChToolbarSetEnabled (ChToolbar *tb, int index, int enabled) |
| XE_EXPORT void | ChToolbarSetActive (ChToolbar *tb, int index, int active) |
| #define TOOLBAR_BTN_PADDING 6 |
| #define TOOLBAR_MAX_ITEMS 64 |
| #define TOOLBAR_OVERFLOW_BTN_SZ 14 |
| #define TOOLBAR_SEP_MARGIN 4 |
| #define TOOLBAR_SEP_THICKNESS 1 |
| #define TOOLBAR_STATE_ACTIVE 3 |
| #define TOOLBAR_STATE_DISABLED 4 |
| #define TOOLBAR_STATE_HOVER 1 |
| #define TOOLBAR_STATE_NORMAL 0 |
| #define TOOLBAR_STATE_PRESSED 2 |
| typedef struct _toolbar_item_ ChToolBarItem |
| typedef enum _toolbar_orientation_ ChToolbarOrientation |
| typedef enum _titemType_ ToolBarItemType |
BSD 2-Clause License
Copyright (c) 2022-2026, 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.
| enum _titemType_ |
BSD 2-Clause License
Copyright (c) 2022-2026, 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.
| Enumerator | |
|---|---|
| TOOLBAR_ITEM_BUTTON | |
| TOOLBAR_ITEM_TOGGLE | |
| TOOLBAR_ITEM_RADIO | |
| TOOLBAR_ITEM_SEPARATOR | |
| TOOLBAR_ITEM_WIDGET | |
| XE_EXPORT int ChToolbarAddButton | ( | ChToolbar * | tb, |
| ChIcon * | icon, | ||
| int | iw, | ||
| int | ih, | ||
| const char * | tooltip, | ||
| void * | ud | ||
| ) |
| XE_EXPORT int ChToolbarAddRadio | ( | ChToolbar * | tb, |
| ChIcon * | icon, | ||
| int | iw, | ||
| int | ih, | ||
| const char * | tooltip, | ||
| uint8_t | groupID, | ||
| void * | ud | ||
| ) |
| XE_EXPORT int ChToolbarAddToggle | ( | ChToolbar * | tb, |
| ChIcon * | icon, | ||
| int | iw, | ||
| int | ih, | ||
| const char * | tooltip, | ||
| void * | ud | ||
| ) |