XenevaOS
Loading...
Searching...
No Matches
Functions
searchbar.cpp File Reference
#include "searchbar.h"
#include <stdlib.h>
#include <font.h>
Include dependency graph for searchbar.cpp:

Functions

void draw_rrect_filled (ChCanvas *canv, int x, int y, int w, int h, int radius, uint32_t color)
 draw_rrect_filled – draws rounded rectangle filled
 
void XESearchBarPaint (ChWidget *wid, ChWindow *win)
 
void XESearchMouseEvent (ChWidget *wid, ChWindow *win, int x, int y, int button)
 XESearchMouseEvent – mouse event handler for search bar.
 
XESearchBarXECreateSearchBar (int x, int y, int w, int h)
 XECreateSearchBar – create the app search bar.
 

Function Documentation

◆ draw_rrect_filled()

void draw_rrect_filled ( ChCanvas canv,
int  x,
int  y,
int  w,
int  h,
int  radius,
uint32_t  color 
)
extern

draw_rrect_filled – draws rounded rectangle filled

Parameters
canv– Pointer to canvas
x– X coordinate
y– Y coordinate
w– width of the rounded rect
h– Height of the rounded rectangle

◆ XECreateSearchBar()

XESearchBar * XECreateSearchBar ( int  x,
int  y,
int  w,
int  h 
)

XECreateSearchBar – create the app search bar.

Parameters
x– x location within launcher
y– Y location within launcher
w– width of the search bar
h– height of the search bar

◆ XESearchBarPaint()

void XESearchBarPaint ( ChWidget wid,
ChWindow win 
)

XESearchBarPaint – paint the search bar

Parameters
wid– Pointer to chitralekha widget
win– Pointer to root window

check once if scrolling is turned off, but scrolloffset still is in 1,

◆ XESearchMouseEvent()

void XESearchMouseEvent ( ChWidget wid,
ChWindow win,
int  x,
int  y,
int  button 
)

XESearchMouseEvent – mouse event handler for search bar.

Parameters
wid– Pointer to button widget
win– Pointer to root window
x– X coord of the search bar
y– Y coord of the search bar
button– mouse button code