tesseract  4.0.0-1-g2a2b
drawfx.cpp File Reference
#include "drawfx.h"
#include "normalis.h"
#include "werd.h"

Go to the source code of this file.

Macros

#define FXDEMOWIN   "FXDemo"
 
#define FXDEMOXPOS   250
 
#define FXDEMOYPOS   0
 
#define FXDEMOXSIZE   600
 
#define FXDEMOYSIZE   256
 
#define BLN_MAX   512
 
#define WERDWIDTH   (BLN_MAX*20)
 
#define DECENT_WERD_WIDTH   (5*kBlnXHeight)
 
#define DEBUG_WIN_NAME   "FXDebug"
 
#define DEBUG_XPOS   0
 
#define DEBUG_YPOS   120
 
#define DEBUG_XSIZE   80
 
#define DEBUG_YSIZE   32
 
#define YMAX   3508
 
#define XMAX   2550
 
#define MAXEDGELENGTH   1024
 
#define EXTERN
 

Functions

void create_fx_win ()
 
void clear_fx_win ()
 
void create_fxdebug_win ()
 

Variables

EXTERN char * fx_debugfile = "FXDebug"
 
EXTERN ScrollViewfx_win = nullptr
 
EXTERN FILE * fx_debug = nullptr
 

Macro Definition Documentation

◆ BLN_MAX

#define BLN_MAX   512

Definition at line 33 of file drawfx.cpp.

◆ DEBUG_WIN_NAME

#define DEBUG_WIN_NAME   "FXDebug"

Definition at line 37 of file drawfx.cpp.

◆ DEBUG_XPOS

#define DEBUG_XPOS   0

Definition at line 38 of file drawfx.cpp.

◆ DEBUG_XSIZE

#define DEBUG_XSIZE   80

Definition at line 40 of file drawfx.cpp.

◆ DEBUG_YPOS

#define DEBUG_YPOS   120

Definition at line 39 of file drawfx.cpp.

◆ DEBUG_YSIZE

#define DEBUG_YSIZE   32

Definition at line 41 of file drawfx.cpp.

◆ DECENT_WERD_WIDTH

#define DECENT_WERD_WIDTH   (5*kBlnXHeight)

Definition at line 35 of file drawfx.cpp.

◆ EXTERN

#define EXTERN

Definition at line 46 of file drawfx.cpp.

◆ FXDEMOWIN

#define FXDEMOWIN   "FXDemo"

Definition at line 28 of file drawfx.cpp.

◆ FXDEMOXPOS

#define FXDEMOXPOS   250

Definition at line 29 of file drawfx.cpp.

◆ FXDEMOXSIZE

#define FXDEMOXSIZE   600

Definition at line 31 of file drawfx.cpp.

◆ FXDEMOYPOS

#define FXDEMOYPOS   0

Definition at line 30 of file drawfx.cpp.

◆ FXDEMOYSIZE

#define FXDEMOYSIZE   256

Definition at line 32 of file drawfx.cpp.

◆ MAXEDGELENGTH

#define MAXEDGELENGTH   1024

Definition at line 44 of file drawfx.cpp.

◆ WERDWIDTH

#define WERDWIDTH   (BLN_MAX*20)

Definition at line 34 of file drawfx.cpp.

◆ XMAX

#define XMAX   2550

Definition at line 43 of file drawfx.cpp.

◆ YMAX

#define YMAX   3508

Definition at line 42 of file drawfx.cpp.

Function Documentation

◆ clear_fx_win()

void clear_fx_win ( )

Definition at line 72 of file drawfx.cpp.

72  { //make features win
73  fx_win->Clear();
74  fx_win->Pen(64,64,64);
78 }
#define WERDWIDTH
Definition: drawfx.cpp:34
const int kBlnXHeight
Definition: normalis.h:24
const int kBlnBaselineOffset
Definition: normalis.h:25
EXTERN ScrollView * fx_win
Definition: drawfx.cpp:50
void Clear()
Definition: scrollview.cpp:591
void Pen(Color color)
Definition: scrollview.cpp:722
void Line(int x1, int y1, int x2, int y2)
Definition: scrollview.cpp:534

◆ create_fx_win()

void create_fx_win ( )

Definition at line 59 of file drawfx.cpp.

59  { //make features win
62  WERDWIDTH*2, BLN_MAX*2, true);
63 }
#define WERDWIDTH
Definition: drawfx.cpp:34
#define FXDEMOXSIZE
Definition: drawfx.cpp:31
#define FXDEMOXPOS
Definition: drawfx.cpp:29
#define FXDEMOYPOS
Definition: drawfx.cpp:30
#define FXDEMOYSIZE
Definition: drawfx.cpp:32
EXTERN ScrollView * fx_win
Definition: drawfx.cpp:50
#define FXDEMOWIN
Definition: drawfx.cpp:28
#define BLN_MAX
Definition: drawfx.cpp:33

◆ create_fxdebug_win()

void create_fxdebug_win ( )

Definition at line 88 of file drawfx.cpp.

88  { //make gradients win
89 }

Variable Documentation

◆ fx_debug

EXTERN FILE* fx_debug = nullptr

Definition at line 51 of file drawfx.cpp.

◆ fx_debugfile

EXTERN char* fx_debugfile = "FXDebug"

"Name of debugfile"

Definition at line 48 of file drawfx.cpp.

◆ fx_win

EXTERN ScrollView* fx_win = nullptr

Definition at line 50 of file drawfx.cpp.