Main Page   Modules   Data Structures   Globals   Appendix  

m17n-gui.h File Reference

#include <m17n.h>

Go to the source code of this file.

Data Structures

struct  MFaceHLineProp
 Type of horizontal line spec of face. More...

struct  MFaceBoxProp
 Type of box spec of face. More...

struct  MDrawControl
 Type of a text drawing control. More...

struct  MDrawMetric
 Type of metric for gylphs and texts. More...

struct  MDrawGlyphInfo
 Type of information about a glyph. More...

struct  MDrawTextItem
 Type of text items. More...

struct  MInputGUIArgIC
 Type of the argument to the function minput_create_ic(). More...


Defines

#define M17N_INIT()   m17n_init_win()
#define M17N_FINI()   m17n_fini_win()

Typedefs

typedef MFrame MFrame
 Type of frames.

typedef MFont MFont
 Type of fonts.

typedef MFontset MFontset
typedef MFace MFace
 Type of faces.

typedef void *(* MFaceHookFunc )(MFace *face, void *arg, void *info)
 Type of hook function of face.

typedef void * MDrawWindow
 Window system dependent type for a window.

typedef void * MDrawRegion
 Window system dependent type for a region.


Functions

void m17n_init_win (void)
void m17n_fini_win (void)
MFramemframe (MPlist *plist)
 Create a new frame.

void * mframe_get_prop (MFrame *frame, MSymbol key)
 Return property value of frame.

MFontmfont ()
 Create a new font.

MFontmfont_from_name (char *name)
 Create a new font from fontname.

MFontmfont_copy (MFont *font)
 Return a copy of a font.

char * mfont_name (MFont *font)
 Create a fontname from a font.

MFontmfont_from_spec (char *family, char *weight, char *slant, char *swidth, char *adstyle, char *registry, unsigned short point, unsigned short res)
void * mfont_get_prop (MFont *font, MSymbol key)
 Get a property value of a font.

int mfont_put_prop (MFont *font, MSymbol key, void *val)
 Put a property value to a font.

int mfont_set_encoding (MFont *font, MSymbol encoding_name, MSymbol repertory_name)
 Set encoding of a font.

MFontmfont_find (MFrame *frame, MFont *spec, int *score, int limited_size)
 Find a font.

MSymbolmfont_selection_priority ()
 Return the font selection priority.

int mfont_set_selection_priority (MSymbol *keys)
 Set the font selection priority.

MFontsetmfontset (char *name)
 Return a fontset.

MSymbol mfontset_name (MFontset *fontset)
 Return the name of a fontset.

MFontsetmfontset_copy (MFontset *fontset, char *name)
 Make a copy a fontset.

int mfontset_modify_entry (MFontset *fontset, MSymbol language, MSymbol script, MSymbol charset, MFont *spec, MSymbol layouter_name, int how)
 Modify the contents of a fontset.

MFacemface ()
 Create a new face.

MFacemface_copy (MFace *face)
 Make a copy of a face.

MFacemface_merge (MFace *dst, MFace *src)
 Merge faces.

MFacemface_from_font (MFont *font)
 Make a face from a font.

void * mface_get_prop (MFace *face, MSymbol key)
 Get the value of a face property.

int mface_put_prop (MFace *face, MSymbol key, void *val)
 Set a value of a face face property.

void mface_update (MFrame *frame, MFace *face)
 Update a face.

int mdraw_text (MFrame *frame, MDrawWindow win, int x, int y, MText *mt, int from, int to)
 Draw an M-text on a window.

int mdraw_image_text (MFrame *frame, MDrawWindow win, int x, int y, MText *mt, int from, int to)
 Draw an M-text on a window as an image.

int mdraw_text_with_control (MFrame *frame, MDrawWindow win, int x, int y, MText *mt, int from, int to, MDrawControl *control)
 Draw an M-text on a window with fine control.

int mdraw_coordinates_position (MFrame *frame, MText *mt, int from, int to, int x, int y, MDrawControl *control)
 Return the character position nearest to the coordinates.

int mdraw_text_extents (MFrame *frame, MText *mt, int from, int to, MDrawControl *control, MDrawMetric *overall_ink_return, MDrawMetric *overall_logical_return, MDrawMetric *overall_line_return)
 Compute text pixel width.

int mdraw_text_per_char_extents (MFrame *frame, MText *mt, int from, int to, MDrawControl *control, MDrawMetric *ink_array_return, MDrawMetric *logical_array_return, int array_size, int *num_chars_return, MDrawMetric *overall_ink_return, MDrawMetric *overall_logical_return)
 Compute the text dimensions of each character of M-text.

int mdraw_glyph_info (MFrame *frame, MText *mt, int from, int pos, MDrawControl *control, MDrawGlyphInfo *info)
 Compute information about a glyph.

void mdraw_text_items (MFrame *frame, MDrawWindow win, int x, int y, MDrawTextItem *items, int nitems)
 Draw one or more textitems.

void mdraw_per_char_extents (MFrame *frame, MText *mt, MDrawMetric *array_return, MDrawMetric *overall_return)
 Obtain per character dimension information.

int mdraw_default_line_break (MText *mt, int pos, int from, int to, int line, int y)
void mdraw_clear_cache (MText *mt)
MSymbol minput_event_to_key (MFrame *frame, void *event)
 Convert an event to an input key.

MFacemdebug_dump_face (MFace *face, int indent)
 Dump a face.

MFontmdebug_dump_font (MFont *font)
 Dump a font.

MFontsetmdebug_dump_fontset (MFontset *fontset, int indent)
 Dump a fontset.


Variables

MSymbol Mfont
MSymbol Mfont_width
MSymbol Mfont_ascent
MSymbol Mfont_descent
MFramemframe_default
 The default frame.

MPlistmfont_freetype_path
 List of font files and directories that contain font files.

MSymbol Mfoundry
 Key of font property specifying foundry.

MSymbol Mfamily
 Key of font property specifying foundry.

MSymbol Mweight
 Key of font property specifying weight.

MSymbol Mstyle
 Key of font property specifying style.

MSymbol Mstretch
 Key of font property specifying stretch.

MSymbol Madstyle
 Key of font property specifying additional style.

MSymbol Mregistry
 Key of font property specifying registry.

MSymbol Msize
 Key of font property specifying size.

MSymbol Mresolution
 Key of font property specifying resolution.

MSymbol Mforeground
 Key of a face property specifying foreground color.

MSymbol Mbackground
 Key of a face property specifying background color.

MSymbol Mvideomode
 Key of a face property specifying video mode.

MSymbol Mnormal
MSymbol Mreverse
MSymbol Mhline
 Key of a face property specifying horizontal line.

MSymbol Mbox
 Key of a face property specifying box.

MSymbol Mfontset
 Key of a face property specifying fontset.

MSymbol Mratio
 Key of a face property specifying font size ratio.

MSymbol Mhook_func
 Key of a face property specifying hook.

MSymbol Mhook_arg
 Key of a face property specifying argument of hook.

MFacemface_normal_video
 Normal video face.

MFacemface_reverse_video
 Reverse video face.

MFacemface_underline
 Underline face.

MFacemface_medium
 Medium face.

MFacemface_bold
 Bold face.

MFacemface_italic
 Italic face.

MFacemface_bold_italic
 Bold italic face.

MFacemface_xx_small
 Smallest face.

MFacemface_x_small
 Smaller face.

MFacemface_small
 Small face.

MFacemface_normalsize
 Normalsize face.

MFacemface_large
 Large face.

MFacemface_x_large
 Larger face.

MFacemface_xx_large
 Largest face.

MFacemface_black
 Black face.

MFacemface_white
 White face.

MFacemface_red
 Red face.

MFacemface_green
 Green face.

MFacemface_blue
 Blue face.

MFacemface_cyan
 Cyan face.

MFacemface_yellow
 yellow face

MFacemface_magenta
 Magenta face.

MSymbol Mface
 Key of a text property specifying a face.

MInputDriver minput_gui_driver
 Input driver for internal input methods on window systems.


Define Documentation

 
#define M17N_INIT  )     m17n_init_win()
 

 
#define M17N_FINI  )     m17n_fini_win()
 


Typedef Documentation

typedef struct MFontset MFontset
 


Function Documentation

void m17n_init_win void   ) 
 

void m17n_fini_win void   ) 
 

MFont* mfont_from_spec char *  family,
char *  weight,
char *  slant,
char *  swidth,
char *  adstyle,
char *  registry,
unsigned short  point,
unsigned short  res
 


Top of this page

Main Page   Modules   Data Structures   Globals   Appendix  

mulemark mule-aist@m17n.org