XenevaOS
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
gridview.h File Reference
#include <stdint.h>
#include "scrollbar.h"
#include "icon.h"
#include "window.h"
#include <_xeneva.h>
Include dependency graph for gridview.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _grid_cell_
 
struct  _grid_view_
 

Typedefs

typedef struct _grid_cell_ ChGridCell
 
typedef struct _grid_view_ ChGridView
 

Enumerations

enum  ChGridCellType { GRIDCELL_THUMBNAIL , GRIDCELL_WIDGET }
 

Functions

XE_EXPORT ChGridViewChGridViewCreate (int x, int y, int w, int h, int columns, int cell_w, int cell_h, int padding)
 ChGridViewCreate – create a new fresh grid view.
 
XE_EXPORT int ChGridAddThumbnail (ChGridView *gv, ChIcon *icon, const char *label, void *user_data)
 ChGridAddThumbnail – add a thumbnail to the grid view.
 
XE_EXPORT int ChGridAddWidget (ChGridView *gv, ChWidget *child, void *data)
 

Detailed Description

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.

Typedef Documentation

◆ ChGridCell

typedef struct _grid_cell_ ChGridCell

◆ ChGridView

typedef struct _grid_view_ ChGridView

Enumeration Type Documentation

◆ ChGridCellType

Enumerator
GRIDCELL_THUMBNAIL 
GRIDCELL_WIDGET 

Function Documentation

◆ ChGridAddThumbnail()

XE_EXPORT int ChGridAddThumbnail ( ChGridView gv,
ChIcon icon,
const char *  label,
void *  user_data 
)

ChGridAddThumbnail – add a thumbnail to the grid view.

◆ ChGridAddWidget()

XE_EXPORT int ChGridAddWidget ( ChGridView gv,
ChWidget child,
void *  data 
)

◆ ChGridViewCreate()

XE_EXPORT ChGridView * ChGridViewCreate ( int  x,
int  y,
int  w,
int  h,
int  columns,
int  cell_w,
int  cell_h,
int  padding 
)

ChGridViewCreate – create a new fresh grid view.

Parameters
x– najanu moi
y– janibi de toi
w– eitu moi bujam neki??
h– bujubi de toi nije
columns– kiba bhagore lagisi
cell_w– tuk bujabo mon nai
cell_h– eman khiniu nije buji napao ?
padding– olop jaga eribi etu xitur majot, noholi atha khai thakibo