Unit msedrawtext

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Record tabulatorty  
Class ttabulatoritem  
Class tcustomtabulators  
Class ttabulators  
Record drawtextinfoty  
Record tabinfoty  
Record textlineinfoty  
Record layoutinfoty  

Functions and Procedures

function checktextflags(old,new: textflagsty): textflagsty;
procedure drawtext(const canvas: tcanvas; var info: drawtextinfoty); overload;
procedure drawtext(const canvas: tcanvas; const text: richstringty; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
procedure drawtext(const canvas: tcanvas; const text: richstringty; const dest,clip: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
procedure drawtext(const canvas: tcanvas; const text: msestring; const dest,clip: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
procedure drawtext(const canvas: tcanvas; const text: msestring; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
procedure layouttext(const canvas: tcanvas; var info: drawtextinfoty; out layoutinfo: layoutinfoty); overload;
function breaklines(const canvas: tcanvas; var info: drawtextinfoty): richstringarty; overload;
function breaklines(const canvas: tcanvas; const text: richstringty; const width: integer; font: tfont = nil): richstringarty; overload;
function breaklines(const canvas: tcanvas; const text: msestring; const width: integer; font: tfont = nil): msestringarty; overload;
procedure textrect(const canvas: tcanvas; var info: drawtextinfoty); overload;
function textrect(const canvas: tcanvas; const text: richstringty; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
function textrect(const canvas: tcanvas; const text: richstringty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
function textrect(const canvas: tcanvas; const text: msestring; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
function textrect(const canvas: tcanvas; const text: msestring; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
function textclipped(const canvas: tcanvas; var info: drawtextinfoty): boolean;
function postotextindex(const canvas: tcanvas; var info: drawtextinfoty; const pos: pointty; out aindex: integer): boolean;
function textindextopos(const canvas: tcanvas; var info: drawtextinfoty; aindex: integer): pointty;

Types

textflagty = (...);
textflagsty = set of textflagty;
tabulatorkindty = (...);
tabulatorarty = array of tabulatorty;
tabulatorstatety = (...);
tabulatorstatesty = set of tabulatorstatety;
tabulatoritemclassty = class of ttabulatoritem;
tabinfoarty = array of tabinfoty;
textlineinfoarty = array of textlineinfoty;

Constants

defaulttabwidth = 20;
textellipse = msestring('...');
ellipsemask: textflagsty = [tf_ellipseleft,tf_ellipseright];
textalignments = [tf_left,tf_xcentered,tf_right,tf_xjustify, tf_top,tf_ycentered,tf_bottom];

Description

Functions and Procedures

function checktextflags(old,new: textflagsty): textflagsty;
 
procedure drawtext(const canvas: tcanvas; var info: drawtextinfoty); overload;
 
procedure drawtext(const canvas: tcanvas; const text: richstringty; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
 
procedure drawtext(const canvas: tcanvas; const text: richstringty; const dest,clip: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
 
procedure drawtext(const canvas: tcanvas; const text: msestring; const dest,clip: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
 
procedure drawtext(const canvas: tcanvas; const text: msestring; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil); overload;
 
procedure layouttext(const canvas: tcanvas; var info: drawtextinfoty; out layoutinfo: layoutinfoty); overload;
 
function breaklines(const canvas: tcanvas; var info: drawtextinfoty): richstringarty; overload;
 
function breaklines(const canvas: tcanvas; const text: richstringty; const width: integer; font: tfont = nil): richstringarty; overload;
 
function breaklines(const canvas: tcanvas; const text: msestring; const width: integer; font: tfont = nil): msestringarty; overload;
 
procedure textrect(const canvas: tcanvas; var info: drawtextinfoty); overload;
 
function textrect(const canvas: tcanvas; const text: richstringty; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
 
function textrect(const canvas: tcanvas; const text: richstringty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
 
function textrect(const canvas: tcanvas; const text: msestring; const dest: rectty; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
 
function textrect(const canvas: tcanvas; const text: msestring; flags: textflagsty = []; font: tfont = nil; tabulators: tcustomtabulators = nil): rectty; overload;
 
function textclipped(const canvas: tcanvas; var info: drawtextinfoty): boolean;
 
function postotextindex(const canvas: tcanvas; var info: drawtextinfoty; const pos: pointty; out aindex: integer): boolean;
 
function textindextopos(const canvas: tcanvas; var info: drawtextinfoty; aindex: integer): pointty;
 

Types

textflagty = (...);
 
Values
  • tf_left
  • tf_xcentered
  • tf_right
  • tf_xjustify
  • tf_top
  • tf_ycentered
  • tf_bottom
  • tf_rotate90
  • tf_rotate180
  • tf_clipi
  • tf_clipo
  • tf_grayed
  • tf_wordbreak
  • tf_softhyphen
  • tf_noselect
  • tf_underlineselect
  • tf_ellipseleft
  • tf_ellipseright
  • tf_tabtospace
  • tf_showtabs
  • tf_glueimage
  • tf_force
textflagsty = set of textflagty;
 
tabulatorkindty = (...);
 
Values
  • tak_left
  • tak_right
  • tak_centered
  • tak_decimal
tabulatorarty = array of tabulatorty;
 
tabulatorstatety = (...);
 
Values
  • tas_editactive
tabulatorstatesty = set of tabulatorstatety;
 
tabulatoritemclassty = class of ttabulatoritem;
 
tabinfoarty = array of tabinfoty;
 
textlineinfoarty = array of textlineinfoty;
 

Constants

defaulttabwidth = 20;
 
textellipse = msestring('...');
 
ellipsemask: textflagsty = [tf_ellipseleft,tf_ellipseright];
 
textalignments = [tf_left,tf_xcentered,tf_right,tf_xjustify, tf_top,tf_ycentered,tf_bottom];
 

Generated by PasDoc 0.16.0.