BitmapToolkit Scol plugin
Functions
BitmapToolkitText.cpp File Reference
#include <algorithm>
#include "freetypeFont.h"
#include "Prerequisites.h"
#include "BitmapToolkitText.h"
#include "ScolConvert.h"

Go to the source code of this file.

Functions

int destroyCVFont (mmachine m, SCOL_PTR_TYPE handsys, int obj)
 
std::string ReplaceAll (std::string str, const std::string &from, const std::string &to)
 
std::vector< std::string > word_wrap (std::string input, PtrObjBTFont obj_font, int max_width, int splitlines)
 
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
 

Function Documentation

◆ destroyCVFont()

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

Definition at line 70 of file BitmapToolkitText.cpp.

◆ ReplaceAll()

std::string ReplaceAll ( std::string  str,
const std::string &  from,
const std::string &  to 
)

Definition at line 82 of file BitmapToolkitText.cpp.

◆ word_wrap()

std::vector< std::string > word_wrap ( std::string  input,
PtrObjBTFont  obj_font,
int  max_width,
int  splitlines 
)

Definition at line 94 of file BitmapToolkitText.cpp.