BitmapToolkit Scol plugin
Classes | Macros | Typedefs | Functions | Variables
BitmapToolkitText.h File Reference
#include <scolPlugin.h>
#include <opencv2/opencv.hpp>
#include <tuple>

Go to the source code of this file.

Classes

struct  btfonts
 
struct  btfonts::type
 
class  ObjBTFont
 

Macros

#define BT_FONT_BOLD   0x1
 
#define BT_FONT_ITALIC   0x10
 
#define BT_FONT_ANTIALIAS   0x100
 
#define BT_FONT_FILLED   0x0000
 
#define BT_FONT_HOLLOW   0x1000
 
#define BT_FONT_SANS   0
 
#define BT_FONT_SERIF   1
 
#define BT_FONT_SCRIPT   2
 
#define BT_TEXT_HORIZ_MASK   (0x1 << 0 | 0x1 << 1)
 
#define BT_TEXT_HORIZ_LEFT   (0x0 << 0)
 
#define BT_TEXT_HORIZ_RIGHT   (0x1 << 0)
 
#define BT_TEXT_HORIZ_CENTERED   (0x1 << 1)
 
#define BT_TEXT_HORIZ_JUSTIFIED   (0x1 << 0 | 0x1 << 1)
 
#define BT_TEXT_VERT_MASK   (0x1 << 2 | 0x1 << 3)
 
#define BT_TEXT_VERT_TOP   (0x0 << 0)
 
#define BT_TEXT_VERT_CENTER   (0x1 << 2)
 
#define BT_TEXT_VERT_BOTTOM   (0x1 << 3)
 
#define BT_TEXT_WORD_WRAP   (0x1 << 4)
 
#define BT_CHARSET   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,;:!./§&é(-è_çà@)]=}$¤*ùµ%"
 
#define BT_CHARSETREF   "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
 

Typedefs

typedef ObjBTFontPtrObjBTFont
 

Functions

int destroyCVFont (mmachine m, SCOL_PTR_TYPE handsys, int obj)
 
int _CRBTfont (mmachine m)
 _CRBTfont : Creates a ObjBTFont object Prototype: fun [Chn S I I F] ObjBTFont
 
int _CRBTfontFromFile (mmachine m)
 _CRBTfontFromFile : Creates a ObjBTFont object Prototype: fun [Chn P I I F] ObjBTFont
 
int _DSBTfont (mmachine m)
 _DSBTfont : Deletes a cv font object Prototype: fun [ObjBTFont] I
 
int _BTDRAWtextBitmap (mmachine m)
 _BTDRAWtextBitmap : Draws a text to a bitmap Prototype: fun [ObjBitmap S ObjBTFont [I I] I I] ObjBitmap
 
int _BTDRAWtextAreaBitmap (mmachine m)
 _BTDRAWtextAreaBitmap : Draws a text to a bitmap, within a defined area Prototype: fun [ObjBitmap ObjBTFont [I I I I] [I I] I I S] ObjBitmap
 
int _BTDRAWtextAlphaBitmap (mmachine m)
 _BTDRAWtextAlphaBitmap : Draws a text to a bitmap Prototype: fun [AlphaBitmap ObjBTFont [I I] I I I S] AlphaBitmap
 
int _BTDRAWtextAreaAlphaBitmap (mmachine m)
 _BTDRAWtextAreaAlphaBitmap : Draws a text to an alpha bitmap, within a defined area Prototype: fun [AlphaBitmap ObjBTFont [I I I I] [I I] I I I S] AlphaBitmap
 
int _BTGETtextSize (mmachine m)
 _BTGETtextSize : Gets the length of a text line Prototype: fun [ObjBTFont S] [I I]
 
int _BTGETtextAreaHeight (mmachine m)
 _BTGETtextAreaHeight : Gets the height of a formated text area Prototype: fun [ObjBTFont S I I] I
 
int _BTBLENDbitmaps (mmachine m)
 _BTBLENDbitmaps : blends 2 bitmaps from percentage value. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [ObjBitmap [I I I I] ObjBitmap [I I I I] F] ObjBitmap
 
int _BTBLENDalphaBitmaps (mmachine m)
 _BTBLENDalphaBitmaps : blends 2 alpha bitmaps. Takes a piece of the src to blit it in a piece of the dest. Resizing involved. Prototype: fun [AlphaBitmap [I I I I] AlphaBitmap [I I I I] F] AlphaBitmap
 

Variables

int SObjBTFont
 

Macro Definition Documentation

◆ BT_CHARSET

#define BT_CHARSET   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,;:!./§&é(-è_çà@)]=}$¤*ùµ%"

Definition at line 42 of file BitmapToolkitText.h.

◆ BT_CHARSETREF

#define BT_CHARSETREF   "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

Definition at line 43 of file BitmapToolkitText.h.

◆ BT_FONT_ANTIALIAS

#define BT_FONT_ANTIALIAS   0x100

Definition at line 18 of file BitmapToolkitText.h.

◆ BT_FONT_BOLD

#define BT_FONT_BOLD   0x1

Definition at line 16 of file BitmapToolkitText.h.

◆ BT_FONT_FILLED

#define BT_FONT_FILLED   0x0000

Definition at line 19 of file BitmapToolkitText.h.

◆ BT_FONT_HOLLOW

#define BT_FONT_HOLLOW   0x1000

Definition at line 20 of file BitmapToolkitText.h.

◆ BT_FONT_ITALIC

#define BT_FONT_ITALIC   0x10

Definition at line 17 of file BitmapToolkitText.h.

◆ BT_FONT_SANS

#define BT_FONT_SANS   0

Definition at line 23 of file BitmapToolkitText.h.

◆ BT_FONT_SCRIPT

#define BT_FONT_SCRIPT   2

Definition at line 25 of file BitmapToolkitText.h.

◆ BT_FONT_SERIF

#define BT_FONT_SERIF   1

Definition at line 24 of file BitmapToolkitText.h.

◆ BT_TEXT_HORIZ_CENTERED

#define BT_TEXT_HORIZ_CENTERED   (0x1 << 1)

Definition at line 31 of file BitmapToolkitText.h.

◆ BT_TEXT_HORIZ_JUSTIFIED

#define BT_TEXT_HORIZ_JUSTIFIED   (0x1 << 0 | 0x1 << 1)

Definition at line 32 of file BitmapToolkitText.h.

◆ BT_TEXT_HORIZ_LEFT

#define BT_TEXT_HORIZ_LEFT   (0x0 << 0)

Definition at line 29 of file BitmapToolkitText.h.

◆ BT_TEXT_HORIZ_MASK

#define BT_TEXT_HORIZ_MASK   (0x1 << 0 | 0x1 << 1)

Definition at line 28 of file BitmapToolkitText.h.

◆ BT_TEXT_HORIZ_RIGHT

#define BT_TEXT_HORIZ_RIGHT   (0x1 << 0)

Definition at line 30 of file BitmapToolkitText.h.

◆ BT_TEXT_VERT_BOTTOM

#define BT_TEXT_VERT_BOTTOM   (0x1 << 3)

Definition at line 38 of file BitmapToolkitText.h.

◆ BT_TEXT_VERT_CENTER

#define BT_TEXT_VERT_CENTER   (0x1 << 2)

Definition at line 37 of file BitmapToolkitText.h.

◆ BT_TEXT_VERT_MASK

#define BT_TEXT_VERT_MASK   (0x1 << 2 | 0x1 << 3)

Definition at line 35 of file BitmapToolkitText.h.

◆ BT_TEXT_VERT_TOP

#define BT_TEXT_VERT_TOP   (0x0 << 0)

Definition at line 36 of file BitmapToolkitText.h.

◆ BT_TEXT_WORD_WRAP

#define BT_TEXT_WORD_WRAP   (0x1 << 4)

Definition at line 41 of file BitmapToolkitText.h.

Typedef Documentation

◆ PtrObjBTFont

Definition at line 103 of file BitmapToolkitText.h.

Function Documentation

◆ destroyCVFont()

int destroyCVFont ( mmachine  m,
SCOL_PTR_TYPE  handsys,
int  obj 
)

Definition at line 70 of file BitmapToolkitText.cpp.

Variable Documentation

◆ SObjBTFont

int SObjBTFont
extern

Definition at line 42 of file BitmapToolkit.cpp.