ASCII-GFX  2.0
All Classes Files Functions Variables Macros Pages
Functions
gridmenu.h File Reference
#include "gfx.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void set_menu_size (int sx, int sy)
 set the size of the grid-font menu More...
 
void clear_menu (int ch=-1)
 clear the grid-font menu More...
 
void set_menu (int x, int y, int ch)
 set the menu cell at grid position (x, y) to character ch More...
 
void update_menu_selection (int dx, int dy)
 update the selected menu cell by moving the selection cursor by a position delta More...
 
int get_menu_selection ()
 get the selected menu cell More...
 
void create_menu_overlay (int num, int x, int y)
 create a menu overlay More...
 
void release_menu ()
 release allocated memory More...
 

Function Documentation

◆ clear_menu()

void clear_menu ( int  ch = -1)

clear the grid-font menu

◆ create_menu_overlay()

void create_menu_overlay ( int  num,
int  x,
int  y 
)

create a menu overlay

  • "num" is the number of the sprite overlay
  • "x" and "y" is the top-left position (x, y) of the sprite overlay

◆ get_menu_selection()

int get_menu_selection ( )

get the selected menu cell

◆ release_menu()

void release_menu ( )

release allocated memory

◆ set_menu()

void set_menu ( int  x,
int  y,
int  ch 
)

set the menu cell at grid position (x, y) to character ch

◆ set_menu_size()

void set_menu_size ( int  sx,
int  sy 
)

set the size of the grid-font menu

◆ update_menu_selection()

void update_menu_selection ( int  dx,
int  dy 
)

update the selected menu cell by moving the selection cursor by a position delta