XenevaOS
Loading...
Searching...
No Matches
Functions
toolbar.cpp File Reference
#include "toolbar.h"
Include dependency graph for toolbar.cpp:

Functions

void _neon_fill_rect32 (ChCanvas *canv, int stride_px, int x, int y, int w, int h, uint32_t color)
 
void _neon_cpy_row32 (uint32_t *dst, const uint32_t *src, int w)
 
void _neon_shift_rect_vertical (uint32_t *fb, int stride_px, int x, int y, int w, int h, int delta_y)
 
void ChToolbarMouseEvent (ChWidget *wid, ChWindow *win, int mx, int my, int button)
 
void _toolbar_draw (ChWidget *tb, ChWindow *win)
 
ChToolbarChToolbarCreate (int x, int y, int w, int h, uint8_t orientation)
 
int ChToolbarAddButton (ChToolbar *tb, ChIcon *icon, int iw, int ih, const char *tooltip, void *ud)
 
int ChToolbarAddToggle (ChToolbar *tb, ChIcon *icon, int iw, int ih, const char *tooltip, void *ud)
 
int ChToolbarAddRadio (ChToolbar *tb, ChIcon *icon, int iw, int ih, const char *tooltip, uint8_t groupID, void *ud)
 
int ChToolbarAddSeparator (ChToolbar *tb)
 
int ChToolbarAddWidget (ChToolbar *tb, ChWidget *child, int childW, int childH)
 
void ChToolbarSetEnabled (ChToolbar *tb, int index, int enabled)
 
void ChToolbarSetActive (ChToolbar *tb, int index, int active)
 

Function Documentation

◆ _neon_cpy_row32()

void _neon_cpy_row32 ( uint32_t dst,
const uint32_t src,
int  w 
)
extern

◆ _neon_fill_rect32()

void _neon_fill_rect32 ( ChCanvas canv,
int  stride_px,
int  x,
int  y,
int  w,
int  h,
uint32_t  color 
)
extern

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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.

◆ _neon_shift_rect_vertical()

void _neon_shift_rect_vertical ( uint32_t fb,
int  stride_px,
int  x,
int  y,
int  w,
int  h,
int  delta_y 
)
extern

◆ _toolbar_draw()

void _toolbar_draw ( ChWidget tb,
ChWindow win 
)
extern

◆ ChToolbarAddButton()

int ChToolbarAddButton ( ChToolbar tb,
ChIcon icon,
int  iw,
int  ih,
const char *  tooltip,
void *  ud 
)

◆ ChToolbarAddRadio()

int ChToolbarAddRadio ( ChToolbar tb,
ChIcon icon,
int  iw,
int  ih,
const char *  tooltip,
uint8_t  groupID,
void *  ud 
)

◆ ChToolbarAddSeparator()

int ChToolbarAddSeparator ( ChToolbar tb)

◆ ChToolbarAddToggle()

int ChToolbarAddToggle ( ChToolbar tb,
ChIcon icon,
int  iw,
int  ih,
const char *  tooltip,
void *  ud 
)

◆ ChToolbarAddWidget()

int ChToolbarAddWidget ( ChToolbar tb,
ChWidget child,
int  childW,
int  childH 
)

◆ ChToolbarCreate()

ChToolbar * ChToolbarCreate ( int  x,
int  y,
int  w,
int  h,
uint8_t  orientation 
)

◆ ChToolbarMouseEvent()

void ChToolbarMouseEvent ( ChWidget wid,
ChWindow win,
int  mx,
int  my,
int  button 
)
extern

◆ ChToolbarSetActive()

void ChToolbarSetActive ( ChToolbar tb,
int  index,
int  active 
)

◆ ChToolbarSetEnabled()

void ChToolbarSetEnabled ( ChToolbar tb,
int  index,
int  enabled 
)