#include "SDL.h"
#include "begin_code.h"
#include "close_code.h"
Go to the source code of this file.
Classes | |
struct | _SDLPango_Matrix |
Typedefs | |
typedef _contextImpl | SDLPango_Context |
typedef _SDLPango_Matrix | SDLPango_Matrix |
Enumerations | |
enum | SDLPango_Direction { SDLPANGO_DIRECTION_LTR, SDLPANGO_DIRECTION_RTL, SDLPANGO_DIRECTION_WEAK_LTR, SDLPANGO_DIRECTION_WEAK_RTL, SDLPANGO_DIRECTION_NEUTRAL } |
Functions | |
DECLSPEC int SDLCALL | SDLPango_Init () |
DECLSPEC int SDLCALL | SDLPango_WasInit () |
DECLSPEC SDLPango_Context *SDLCALL | SDLPango_CreateContext () |
DECLSPEC void SDLCALL | SDLPango_FreeContext (SDLPango_Context *context) |
DECLSPEC void SDLCALL | SDLPango_SetSurfaceCreateArgs (SDLPango_Context *context, Uint32 flags, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask) |
DECLSPEC SDL_Surface *SDLCALL | SDLPango_CreateSurfaceDraw (SDLPango_Context *context) |
DECLSPEC void SDLCALL | SDLPango_Draw (SDLPango_Context *context, SDL_Surface *surface, int x, int y) |
DECLSPEC void SDLCALL | SDLPango_SetDpi (SDLPango_Context *context, double dpi_x, double dpi_y) |
DECLSPEC void SDLCALL | SDLPango_SetMinimumSize (SDLPango_Context *context, int width, int height) |
DECLSPEC void SDLCALL | SDLPango_SetDefaultColor (SDLPango_Context *context, const SDLPango_Matrix *color_matrix) |
DECLSPEC int SDLCALL | SDLPango_GetLayoutWidth (SDLPango_Context *context) |
DECLSPEC int SDLCALL | SDLPango_GetLayoutHeight (SDLPango_Context *context) |
DECLSPEC void SDLCALL | SDLPango_SetMarkup (SDLPango_Context *context, const char *markup, int length) |
DECLSPEC void SDLCALL | SDLPango_SetText (SDLPango_Context *context, const char *markup, int length) |
DECLSPEC void SDLCALL | SDLPango_SetLanguage (SDLPango_Context *context, const char *language_tag) |
DECLSPEC void SDLCALL | SDLPango_SetBaseDirection (SDLPango_Context *context, SDLPango_Direction direction) |
Variables | |
const SDLPango_Matrix | _MATRIX_WHITE_BACK |
const SDLPango_Matrix * | MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK |
const SDLPango_Matrix | _MATRIX_BLACK_BACK |
const SDLPango_Matrix * | MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK |
const SDLPango_Matrix | _MATRIX_TRANSPARENT_BACK_BLACK_LETTER |
const SDLPango_Matrix * | MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER |
const SDLPango_Matrix | _MATRIX_TRANSPARENT_BACK_WHITE_LETTER |
const SDLPango_Matrix * | MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER |
const SDLPango_Matrix | _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER |
const SDLPango_Matrix * | MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER |
|
General 4 X 4 matrix struct. |
|
Specifies direction of text. See Pango reference for detail |
|
Create a context which contains Pango objects.
|
|
Create a surface and draw text on it. The size of surface is same as lauout size.
|
|
Draw text on a existing surface.
|
|
Free a context.
|
|
Get layout height.
|
|
Get layout width.
|
|
Initialize the Glib and Pango API. This must be called before using other functions in this library, excepting SDLPango_WasInit. SDL does not have to be initialized before this call.
|
|
Set base direction to context.
|
|
Specify default color.
|
|
Set DPI to context.
|
|
Set language to context.
|
|
Set markup text to context. Text must be utf-8. Markup format is same as pango.
|
|
Specify minimum size of drawing rect.
|
|
Specify Arguments when create a surface. When SDL_Pango creates a surface, the arguments are used.
|
|
Set plain text to context. Text must be utf-8.
|
|
Query the initilization status of the Glib and Pango API. You may, of course, use this before SDLPango_Init to avoid initilizing twice in a row.
|
|
Initial value: {0, 255, 0, 0, 0, 255, 0, 0, 0, 255, 0, 0, 255, 255, 0, 0,} |
|
Initial value: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0,} |
|
Initial value: {255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0,} |
|
Initial value: {255, 255, 0, 0, 255, 255, 0, 0, 255, 255, 0, 0, 0, 255, 0, 0,} |
|
Initial value: {255, 0, 0, 0, 255, 0, 0, 0, 255, 0, 0, 0, 255, 255, 0, 0,} |
|
Specifies black back and white letter. |
|
Specifies transparent back and black letter. |
|
Specifies transparent back and transparent letter. This is useful for KARAOKE like rendering. |
|
Specifies transparent back and white letter. |
|
Specifies white back and black letter. |