XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
appgrid.h File Reference
#include <widgets\list.h>
#include <stdint.h>
#include <chitralekha.h>
#include <widgets\window.h>
#include "button.h"
Include dependency graph for appgrid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _page_
 
struct  _app_grid_
 

Macros

#define ENTRIES_PER_ROW   8
 
#define ROWS_PER_PAGE   4
 
#define ROWS_PAD_Y   20
 
#define BUTTONS_PAD_X   20
 
#define APP_GRID_DEFAULT_WIDTH   500
 
#define APP_GRID_DEFAULT_HEIGHT   500
 
#define MAX_PAGE_COUNT   8
 

Typedefs

typedef struct _page_ Page
 
typedef struct _app_grid_ AppGrid
 

Functions

AppGridLauncherCreateAppGrid (int x, int y, int w, int h)
 
void AppGridAddButton (AppGrid *grid, LaunchButton *button)
 
void AppGridAddButtonInSearch (AppGrid *grid, LaunchButton *button)
 
void AppGridPaint (AppGrid *grid, ChWindow *win)
 
void AppGridSearchReset (AppGrid *grid)
 AppGridSearchReset – reset the search list.
 
int AppGridGetTotalNumberOfPage (AppGrid *grid)
 

Macro Definition Documentation

◆ APP_GRID_DEFAULT_HEIGHT

#define APP_GRID_DEFAULT_HEIGHT   500

◆ APP_GRID_DEFAULT_WIDTH

#define APP_GRID_DEFAULT_WIDTH   500

◆ BUTTONS_PAD_X

#define BUTTONS_PAD_X   20

◆ ENTRIES_PER_ROW

#define ENTRIES_PER_ROW   8

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.

◆ MAX_PAGE_COUNT

#define MAX_PAGE_COUNT   8

◆ ROWS_PAD_Y

#define ROWS_PAD_Y   20

◆ ROWS_PER_PAGE

#define ROWS_PER_PAGE   4

Typedef Documentation

◆ AppGrid

typedef struct _app_grid_ AppGrid

◆ Page

typedef struct _page_ Page

Function Documentation

◆ AppGridAddButton()

void AppGridAddButton ( AppGrid grid,
LaunchButton button 
)
extern

◆ AppGridAddButtonInSearch()

void AppGridAddButtonInSearch ( AppGrid grid,
LaunchButton button 
)
extern

◆ AppGridGetTotalNumberOfPage()

int AppGridGetTotalNumberOfPage ( AppGrid grid)
extern

◆ AppGridPaint()

void AppGridPaint ( AppGrid grid,
ChWindow win 
)
extern

◆ AppGridSearchReset()

void AppGridSearchReset ( AppGrid grid)
extern

AppGridSearchReset – reset the search list.

Parameters
grid– Pointer to app grid

◆ LauncherCreateAppGrid()

AppGrid * LauncherCreateAppGrid ( int  x,
int  y,
int  w,
int  h 
)
extern