ASCII-GFX  2.0
Functions | Variables
gridmenu.cpp File Reference
#include "gridmenu.h"
#include "scrollarea.h"
#include "gridfont.h"

Functions

void set_menu_size (int sx, int sy)
 set the size of the grid-font menu More...
 
void clear_menu (int ch)
 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...
 

Variables

static int menux = 0
 
static int menuy = 0
 
static int fontx = 0
 
static int fonty = 0
 
static int * menu = NULL
 
static int selectx = 0
 
static int selecty = 0
 
static int sprite = -1
 

Function Documentation

◆ clear_menu()

void clear_menu ( int  ch)

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

Variable Documentation

◆ fontx

int fontx = 0
static

◆ fonty

int fonty = 0
static

◆ menu

int* menu = NULL
static

◆ menux

int menux = 0
static

◆ menuy

int menuy = 0
static

◆ selectx

int selectx = 0
static

◆ selecty

int selecty = 0
static

◆ sprite

int sprite = -1
static