XenevaOS
Loading...
Searching...
No Matches
appgrid.h
Go to the documentation of this file.
1
30#ifndef __APP_GRID_H__
31#define __APP_GRID_H__
32
33#include <widgets\list.h>
34#include <stdint.h>
35#include <chitralekha.h>
36#include <widgets\window.h>
37#include "button.h"
38
39#define ENTRIES_PER_ROW 8
40#define ROWS_PER_PAGE 4
41#define ROWS_PAD_Y 20
42#define BUTTONS_PAD_X 20
43
44#define APP_GRID_DEFAULT_WIDTH 500
45#define APP_GRID_DEFAULT_HEIGHT 500
46
47
48typedef struct _app_grid_ {
52 /* it's own boundary*/
53 int x;
54 int y;
55 int w;
56 int h;
57 /* number of pages for
58 * each application entry */
64
65
66/*
67* LauncherCreateAppGrid -- creates app grid
68* @param x -- x position of the grid
69* @param y -- y position of the grid
70* @param w -- width of the grid
71* @param h -- height of the grid
72*/
73extern AppGrid* LauncherCreateAppGrid(int x, int y, int w, int h);
74
75/*
76* AppGridAddButton -- adds a button to specific grid
77* @param grid -- Pointer to grid
78* @param button -- Pointer to launch button needs to
79* be added
80*/
81extern void AppGridAddButton(AppGrid* grid, LaunchButton* button);
82
83/*
84*AppGridPaint -- paints the entire grid
85* @param grid -- Pointer to grid to be painted
86* @param win -- Pointer to root window
87*/
88extern void AppGridPaint(AppGrid* grid, ChWindow* win);
89#endif
struct _app_grid_ AppGrid
void AppGridPaint(AppGrid *grid, ChWindow *win)
Definition AppGrid.cpp:97
AppGrid * LauncherCreateAppGrid(int x, int y, int w, int h)
Definition AppGrid.cpp:54
void AppGridAddButton(AppGrid *grid, LaunchButton *button)
Definition AppGrid.cpp:79
ChWindow * win
Definition namdapha.cpp:45
Definition appgrid.h:48
int numEntriesInEachRow
Definition appgrid.h:60
int h
Definition appgrid.h:56
list_t * lbbuttonlist
Definition appgrid.h:49
int start_pos_y
Definition appgrid.h:51
int x
Definition appgrid.h:53
int start_pos_x
Definition appgrid.h:50
int numRowsInOnePage
Definition appgrid.h:61
int w
Definition appgrid.h:55
int numPageCount
Definition appgrid.h:59
void(* PaintAppGrid)(_app_grid_ *grid, ChWindow *win)
Definition appgrid.h:62
int y
Definition appgrid.h:54
Definition button.h:50
Definition window.h:90
Definition list.h:46