N64FlashcartMenu
Loading...
Searching...
No Matches
Macros
constants.h File Reference

Menu components constants. More...

Go to the source code of this file.

Macros

#define DISPLAY_WIDTH   (640)
 The display width.
 
#define DISPLAY_HEIGHT   (480)
 The display height.
 
#define DISPLAY_CENTER_X   (DISPLAY_WIDTH / 2)
 The centre of the display on the X axis.
 
#define DISPLAY_CENTER_Y   (DISPLAY_HEIGHT / 2)
 The centre of the display on the Y axis.
 
#define OVERSCAN_WIDTH   (32)
 The overscan on the X axis.
 
#define OVERSCAN_HEIGHT   (24)
 The overscan on the Y axis.
 
#define VISIBLE_AREA_X0   (OVERSCAN_WIDTH)
 The start position of the visible display on the X axis.
 
#define VISIBLE_AREA_Y0   (OVERSCAN_HEIGHT)
 The start position of the visible display on the Y axis.
 
#define VISIBLE_AREA_X1   (DISPLAY_WIDTH - OVERSCAN_WIDTH)
 The end position of the visible display on the X axis.
 
#define VISIBLE_AREA_Y1   (DISPLAY_HEIGHT - OVERSCAN_HEIGHT)
 The end position of the visible display on the Y axis.
 
#define VISIBLE_AREA_WIDTH   (VISIBLE_AREA_X1 - VISIBLE_AREA_X0)
 The width of the visible display.
 
#define VISIBLE_AREA_HEIGHT   (VISIBLE_AREA_Y1 - VISIBLE_AREA_Y0)
 The height of the visible display.
 
#define BORDER_THICKNESS   (4)
 The thickness of borders.
 
#define LAYOUT_ACTIONS_SEPARATOR_Y   (400)
 
#define SEEKBAR_HEIGHT   (24)
 The seek bar height.
 
#define SEEKBAR_WIDTH   (524)
 The seek bar width.
 
#define SEEKBAR_X   (DISPLAY_CENTER_X - (SEEKBAR_WIDTH / 2))
 The seek bar position on the X axis.
 
#define SEEKBAR_Y   (VISIBLE_AREA_Y1 - SEEKBAR_HEIGHT - 80)
 The seek bar position on the Y axis.
 
#define LOADER_WIDTH   (320)
 The loader bar width.
 
#define LOADER_HEIGHT   (24)
 The loader bar height.
 
#define LOADER_X   (DISPLAY_CENTER_X - (LOADER_WIDTH / 2))
 The loader bar position on the X axis.
 
#define LOADER_Y   (DISPLAY_CENTER_Y - (LOADER_HEIGHT / 2))
 The loader bar position on the Y axis.
 
#define MESSAGEBOX_MAX_WIDTH   (360)
 The maximum width of a message box.
 
#define MESSAGEBOX_MARGIN   (32)
 The margin of a message box.
 
#define TEXT_MARGIN_HORIZONTAL   (10)
 
#define TEXT_MARGIN_VERTICAL   (7)
 
#define BOXART_WIDTH   (158)
 The boxart picture width.
 
#define BOXART_HEIGHT   (112)
 The boxart picture height.
 
#define BOXART_X   (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
 The box art position on the X axis.
 
#define BOXART_Y   (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
 The box art position on the Y axis.
 
#define FILE_LIST_SCROLLBAR_WIDTH   (12)
 The scroll bar width.
 
#define FILE_LIST_SCROLLBAR_HEIGHT   (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT)
 The scroll bar height.
 
#define FILE_LIST_SCROLLBAR_X   (VISIBLE_AREA_X1 - FILE_LIST_SCROLLBAR_WIDTH)
 The scroll bar position on the X axis.
 
#define FILE_LIST_SCROLLBAR_Y   (VISIBLE_AREA_Y0)
 The scroll bar position on the Y axis.
 
#define FILE_LIST_ENTRIES   (20)
 The maximum amount of file list entries.
 
#define FILE_LIST_MAX_WIDTH   (480)
 The maximum width available for a file list entry.
 
#define FILE_LIST_HIGHLIGHT_WIDTH   (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - FILE_LIST_SCROLLBAR_WIDTH)
 
#define FILE_LIST_HIGHLIGHT_X   (VISIBLE_AREA_X0)
 
#define BACKGROUND_EMPTY_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 The default background colour.
 
#define BACKGROUND_OVERLAY_COLOR   RGBA32(0x00, 0x00, 0x00, 0xA0)
 The default background overlay colour.
 
#define BORDER_COLOR   RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
 The border colour.
 
#define PROGRESSBAR_BG_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 The progress bar background colour.
 
#define PROGRESSBAR_DONE_COLOR   RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
 The progress bar progressed colour.
 
#define SCROLLBAR_BG_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 The scroll bar background colour.
 
#define SCROLLBAR_INACTIVE_COLOR   RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
 The scroll bar inactive colour.
 
#define SCROLLBAR_POSITION_COLOR   RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
 The scroll bar position colour.
 
#define DIALOG_BG_COLOR   RGBA32(0x00, 0x00, 0x00, 0xFF)
 The dialogue background colour.
 
#define BOXART_LOADING_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 The boxart loading colour.
 
#define FILE_LIST_HIGHLIGHT_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 The filelist highlight colour.
 
#define CONTEXT_MENU_HIGHLIGHT_COLOR   RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
 The menu highlight colour.
 

Detailed Description

Menu components constants.