OCR Project
Loading...
Searching...
No Matches
Layout constants

Macros

#define WIN_W   1280
#define WIN_H   800
#define ROW_H   36
#define ROW_PAD   8
#define LABEL_W   68
#define BTN_W   120
#define FONT_SIZE   15
#define FONT_SIZE_SM   13
#define ROW1_Y   8
#define ROW2_Y   (ROW1_Y + ROW_H + ROW_PAD)
#define ROW3_Y   (ROW2_Y + ROW_H + ROW_PAD)
#define STATUS_Y   (ROW3_Y + ROW_H + 6)
#define PANEL_H   (STATUS_Y + FONT_SIZE_SM + 8)
#define INPUT_X   (LABEL_W + 4)
#define INPUT_W   (WIN_W - INPUT_X - BTN_W - 8 - 8)
#define BTN_X   (INPUT_X + INPUT_W + 8)
#define MAX_RESULTS   64
#define DEFAULT_MODEL_DIR   "models/"

Detailed Description

Pixel dimensions that define the window and control-panel geometry.

Macro Definition Documentation

◆ BTN_W

#define BTN_W   120

Width of each action button.

◆ BTN_X

#define BTN_X   (INPUT_X + INPUT_W + 8)

X origin of all action buttons.

◆ DEFAULT_MODEL_DIR

#define DEFAULT_MODEL_DIR   "models/"

Default directory scanned for the most recent model file.

◆ FONT_SIZE

#define FONT_SIZE   15

Point size for the primary font.

◆ FONT_SIZE_SM

#define FONT_SIZE_SM   13

Point size for the smaller (label/status) font.

◆ INPUT_W

#define INPUT_W   (WIN_W - INPUT_X - BTN_W - 8 - 8)

Width of all text-input fields.

◆ INPUT_X

#define INPUT_X   (LABEL_W + 4)

X origin of all text-input fields (after the label).

◆ LABEL_W

#define LABEL_W   68

Pixel width reserved for the row label.

◆ MAX_RESULTS

#define MAX_RESULTS   64

Maximum number of word-search results kept simultaneously.

◆ PANEL_H

#define PANEL_H   (STATUS_Y + FONT_SIZE_SM + 8)

Total height of the top control panel.

◆ ROW1_Y

#define ROW1_Y   8

Top-left Y of the Image row.

◆ ROW2_Y

#define ROW2_Y   (ROW1_Y + ROW_H + ROW_PAD)

Top-left Y of the Modèle row.

◆ ROW3_Y

#define ROW3_Y   (ROW2_Y + ROW_H + ROW_PAD)

Top-left Y of the Mots row.

◆ ROW_H

#define ROW_H   36

Height of one input row (label + field + btn).

◆ ROW_PAD

#define ROW_PAD   8

Vertical gap between consecutive rows.

◆ STATUS_Y

#define STATUS_Y   (ROW3_Y + ROW_H + 6)

Y of the status-bar text.

◆ WIN_H

#define WIN_H   800

Window height in pixels.

◆ WIN_W

#define WIN_W   1280

Window width in pixels.