mgd2.h File Reference

#include <mi32/elemstyl.h>
#include <mi32/micon.h>
#include <mi32/dispinfo.h>
#include <mi32/colormap.h>
#include <mi32/scrnunit.h>
#include <mi32/textbase.h>
#include <mi32/colrconv.h>
#include <mi32/mg2cms.h>
#include <mi32/mg2enums.h>
#include <mi32/rect.h>
#include <mi32/stddefns.h>

Include dependency graph for mgd2.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  MGD

Classes

class  MGD::COLORLOCK
 Class to manage a 'color lock' on a CONTEXT. More...
class  MGD::CONTEXT
 Base class for all your drawing needs. More...
class  MGD::CONTEXT::PRIVDATA
 Base class for private data. More...
class  MGD::CONTEXT_AUTOPTR
 An MGD::CONTEXT which is auotmatically deleted when it goes out of scope. More...
class  MGD::CONTEXT_NULL
class  MGD::DEVICE
 Base class for all MGD::DEVICE derived classes. More...
class  MGD::DEVICE_NULL
 Returns a pointer to a NULL device. More...
class  MGD::FONT
 Font definition and implementation. More...
struct  MGD::FONTINFO
 Font metrics. More...
struct  MGD::GLYPHINFO
 Information about single glyph in a font. More...
class  MGD::SAVECLIP
 Save the clip region of an MGD::CONTEXT. More...
struct  MGD::STRINGDATA
 This struct should be moved to a private include file, but we might yet find a use for it. More...
struct  MGD::TEXTBLOCK
 Text block. More...
struct  MGD::TEXTBLOCKBORDER
 Text block border settings. More...
struct  MGD::TEXTSETTINGS

Defines

#define MgdTEXTGID_ChangeFace   0xFFFF
#define MgdTEXTGID_FallbackFace   0xFFFB
#define MgdTEXTGID_LeftToRight   0xFFFE
#define MgdTEXTGID_NextGlyph0Width   0xFFFC
#define MgdTEXTGID_RightToLeft   0xFFFD
#define MgdTEXTGID_SpecialCodeMin   0xFFFB
#define USE_NEW_MGD
#define USE_SPARSE_CLIP_DEV

Functions

ERRVALUE DlgGetScalableFont (MDLGPARENT dlgparent, MISTRING &FontName, const MISTRING &PromptStr=TEXTID__None, bool TrueTypeOnly=true)
void memset (MGD::TEXTBLOCK *, int, int)
int TextGetFontByFamily (MISTRING &fontname, const UNICODE *family, UINT32 StyleFlags, UINT32 *pStyleFlags, INIHANDLE ini=0)
int TextGetFontByFullName (MISTRING &fontname, const UNICODE *realname, UINT32 StyleFlags, UINT32 *pStyleFlags, INIHANDLE ini=0)
int TextGetFontByName (MISTRING &fontname, const UNICODE *family, UINT32 StyleFlags, UINT32 *pStyleFlags, INIHANDLE ini=0)
int TextGetFontByName (INIHANDLE ini, UNICODE *fontname, UNICODE *family, UINT32 StyleFlags, UINT32 *pStyleFlags)
ERRVALUE TextGetFontInfo (int fhandle, MGD::FONT *font)
ERRVALUE TextGetFontName (int fonthandle, UNICODE *fontname)
ERRVALUE TextGetTTFName (INIHANDLE ini, const UNICODE *fontname, MGD::TTFNAMEID nameid, MISTRING &name, UINT32 *pStyleFlags)


Define Documentation

#define MgdTEXTGID_ChangeFace   0xFFFF
 

Special characters in array of Glyph IDs (GID) returned from FONT.UCtoGID().

When rendering or computing string width, These shoul be passed through to let the rendering engine handle them XXX These should be private to mg2textt.c and mgdtext.c

Definition at line 571 of file mgd2.h.

#define MgdTEXTGID_FallbackFace   0xFFFB
 

Definition at line 575 of file mgd2.h.

#define MgdTEXTGID_LeftToRight   0xFFFE
 

Definition at line 572 of file mgd2.h.

#define MgdTEXTGID_NextGlyph0Width   0xFFFC
 

Definition at line 574 of file mgd2.h.

#define MgdTEXTGID_RightToLeft   0xFFFD
 

Definition at line 573 of file mgd2.h.

#define MgdTEXTGID_SpecialCodeMin   0xFFFB
 

For quicker comparison.

Definition at line 576 of file mgd2.h.

#define USE_NEW_MGD
 

Definition at line 445 of file mgd2.h.

#define USE_SPARSE_CLIP_DEV
 

Definition at line 3180 of file mgd2.h.


Function Documentation

ERRVALUE DlgGetScalableFont MDLGPARENT  dlgparent,
MISTRING FontName,
const MISTRING PromptStr = TEXTID__None,
bool  TrueTypeOnly = true
 

Parameters:
dlgparent  Parent for dialog
FontName  Font name passed/returned
PromptStr  Prompt for dialog, TEXTID__None for default
TrueTypeOnly  Only allow selection of TrueType fonts

void memset MGD::TEXTBLOCK ,
int  ,
int 
 

: Ignore Force compile error if try to memset TEXTBLOCK to 0.

Should use constructor instead

int TextGetFontByFamily MISTRING fontname,
const UNICODE family,
UINT32  StyleFlags,
UINT32 pStyleFlags,
INIHANDLE  ini = 0
 

Parameters:
fontname  Font name returned (eg: "times.ttf" )
family  Family name requested
StyleFlags  FONTSTYLE_Flags requested
pStyleFlags  FONTSTYLE_Flags found (closest match)
ini  Open tntproc.ini if calling this in a loop

int TextGetFontByFullName MISTRING fontname,
const UNICODE realname,
UINT32  StyleFlags,
UINT32 pStyleFlags,
INIHANDLE  ini = 0
 

Parameters:
fontname  Font name returned (eg: "times.ttf" )
realname  real name requested
StyleFlags  FONTSTYLE_Flags requested
pStyleFlags  FONTSTYLE_Flags found (closest match)
ini  Open tntproc.ini if calling this in a loop

int TextGetFontByName MISTRING fontname,
const UNICODE family,
UINT32  StyleFlags,
UINT32 pStyleFlags,
INIHANDLE  ini = 0
 

Get embedded TrueType font family name for a font based on its ttf file name.

Note: This function is in the MGD namespace

Parameters:
fontname  Font name returned (eg: "times.ttf" )
family  Family name requested
StyleFlags  FONTSTYLE_Flags requested
pStyleFlags  FONTSTYLE_Flags found (closest match)
ini  Open tntproc.ini if calling this in a loop

int TextGetFontByName INIHANDLE  ini,
UNICODE fontname,
UNICODE family,
UINT32  StyleFlags,
UINT32 pStyleFlags
 

Get embedded TrueType font family name for a font based on its ttf file name.

Note: This function is in the MGD namespace

Deprecated:
Use the version that takes an MISTRING instead
Parameters:
ini  Open tntproc.ini if calling this in a loop
fontname  Font name returned (eg: "times.ttf" )
family  Family name requested
StyleFlags  FONTSTYLE_Flags requested
pStyleFlags  FONTSTYLE_Flags found (closest match)

ERRVALUE TextGetFontInfo int  fhandle,
MGD::FONT font
 

Get font information for specified font handle.

Note: This function is in the MGD namespace

Parameters:
fhandle  Font "handle"
font  Font information returned

ERRVALUE TextGetFontName int  fonthandle,
UNICODE fontname
 

Return font name for specified font handle.

Note: This function is in the MGD namespace

Parameters:
fonthandle  Font "handle"
fontname  String to contain font name

ERRVALUE TextGetTTFName INIHANDLE  ini,
const UNICODE fontname,
MGD::TTFNAMEID  nameid,
MISTRING name,
UINT32 pStyleFlags
 

Note: This function is in the MGD namespace.

Parameters:
ini  Open tntproc.ini if calling this in a loop
fontname  Full path or just "times.ttf"
nameid  TTFNAMEID_Xxxx
pStyleFlags  FONTSTYLE_Flags returned


Generated on Tue Dec 14 13:19:06 2004 for TNTsdk by  doxygen 1.3.8-20040913