XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
button.cpp File Reference
#include "button.h"
#include "launcher.h"
#include <stdlib.h>
#include <sys\_kefile.h>
#include <sys\_keipcpostbox.h>
#include <sys\iocodes.h>
#include <sys\mman.h>
#include <sys\_keproc.h>
#include <widgets\msgbox.h>
Include dependency graph for button.cpp:

Macros

#define LAUNCHER_BUTTON_HOVER_DARK   0xCC658096
 
#define LAUNCHER_BUTTON_HOVER_LIGHT   0xCC8CA2B4
 
#define LAUNCHER_BUTTON_CLICKED   0xCC1D1D1D
 

Functions

void ButtonIconRead (ButtonIcon *btninfo)
 
void ButtonIconDraw (ButtonIcon *info, ChCanvas *canv, int x, int y)
 
void LaunchButtonPaint (LaunchButton *lb, ChWindow *win)
 
void LaunchButtonMouseEvent (LaunchButton *wid, ChWindow *win, int x, int y, int button)
 
void LauncherButtonDefaultAction (LaunchButton *lbutton, ChWindow *win)
 
LaunchButtonCreateLaunchButton (int x, int y, int w, int h, char *title, char *appname)
 
ButtonIconCreateLaunchButtonIcon (char *iconfile, LaunchButton *button)
 

Macro Definition Documentation

◆ LAUNCHER_BUTTON_CLICKED

#define LAUNCHER_BUTTON_CLICKED   0xCC1D1D1D

◆ LAUNCHER_BUTTON_HOVER_DARK

#define LAUNCHER_BUTTON_HOVER_DARK   0xCC658096

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:

  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.

◆ LAUNCHER_BUTTON_HOVER_LIGHT

#define LAUNCHER_BUTTON_HOVER_LIGHT   0xCC8CA2B4

Function Documentation

◆ ButtonIconDraw()

void ButtonIconDraw ( ButtonIcon info,
ChCanvas canv,
int  x,
int  y 
)

◆ ButtonIconRead()

void ButtonIconRead ( ButtonIcon btninfo)

◆ CreateLaunchButton()

LaunchButton * CreateLaunchButton ( int  x,
int  y,
int  w,
int  h,
char *  title,
char *  appname 
)

◆ CreateLaunchButtonIcon()

ButtonIcon * CreateLaunchButtonIcon ( char *  iconfile,
LaunchButton button 
)

◆ LaunchButtonMouseEvent()

void LaunchButtonMouseEvent ( LaunchButton wid,
ChWindow win,
int  x,
int  y,
int  button 
)

◆ LaunchButtonPaint()

void LaunchButtonPaint ( LaunchButton lb,
ChWindow win 
)

◆ LauncherButtonDefaultAction()

void LauncherButtonDefaultAction ( LaunchButton lbutton,
ChWindow win 
)