tesseract  5.0.0-alpha-619-ge9db
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 DEBUG_WIN_NAME   "FXDebug"
 

Functions

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

Variables

char * fx_debugfile = "FXDebug"
 
ScrollViewfx_win = nullptr
 
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 36 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.

◆ WERDWIDTH

#define WERDWIDTH   (BLN_MAX*20)

Definition at line 34 of file drawfx.cpp.

Function Documentation

◆ clear_fx_win()

void clear_fx_win ( )

Definition at line 60 of file drawfx.cpp.

62  { //make features win
63  fx_win->Clear();
64  fx_win->Pen(64,64,64);

◆ create_fx_win()

void create_fx_win ( )

Definition at line 48 of file drawfx.cpp.

49  { //make features win
52  WERDWIDTH*2, BLN_MAX*2, true);

◆ create_fxdebug_win()

void create_fxdebug_win ( )

Definition at line 75 of file drawfx.cpp.

78  { //make gradients win

Variable Documentation

◆ fx_debug

FILE* fx_debug = nullptr

Definition at line 41 of file drawfx.cpp.

◆ fx_debugfile

char* fx_debugfile = "FXDebug"

"Name of debugfile"

Definition at line 38 of file drawfx.cpp.

◆ fx_win

ScrollView* fx_win = nullptr

Definition at line 40 of file drawfx.cpp.

ScrollView
Definition: scrollview.h:97
FXDEMOYPOS
#define FXDEMOYPOS
Definition: drawfx.cpp:30
kBlnXHeight
const int kBlnXHeight
Definition: normalis.h:23
WERDWIDTH
#define WERDWIDTH
Definition: drawfx.cpp:34
fx_win
ScrollView * fx_win
Definition: drawfx.cpp:40
ScrollView::Clear
void Clear()
Definition: scrollview.cpp:588
ScrollView::Pen
void Pen(Color color)
Definition: scrollview.cpp:717
FXDEMOXSIZE
#define FXDEMOXSIZE
Definition: drawfx.cpp:31
FXDEMOXPOS
#define FXDEMOXPOS
Definition: drawfx.cpp:29
FXDEMOYSIZE
#define FXDEMOYSIZE
Definition: drawfx.cpp:32
BLN_MAX
#define BLN_MAX
Definition: drawfx.cpp:33
FXDEMOWIN
#define FXDEMOWIN
Definition: drawfx.cpp:28
ScrollView::Line
void Line(int x1, int y1, int x2, int y2)
Definition: scrollview.cpp:531
kBlnBaselineOffset
const int kBlnBaselineOffset
Definition: normalis.h:24