aliceml.h

#include "aliceml_config.h"
#include "aliceml_color.h"
#include "aliceml_rect.h"
#include "aliceml_string.h"

ソースコードを見る。

マクロ定義

#define ML_FONTSTYLE_REGULAR   0x0000
#define ML_FONTSTYLE_BOLD   0x0001
#define ML_FONTSTYLE_ITALIC   0x0002
#define ML_FONTSTYLE_UNDERLINE   0x0004
#define ML_FONTSTYLE_SHADOW   0x0008
#define ML_FONTSTYLE_HEMMING   0x0010
#define ML_FONTSTYLE_VERTICAL   0x0020
#define ML_has_flag(var, flag)   (((var) & (flag)) != 0)
 var が特定のフラグをもっているか調べます。
#define ML_abs(x)   ((x) >= 0 ? (x) : -(x))
 絶対値を取得します。
#define ML_max(x, y)   ((x) > (y) ? (x) : (y))
 大きい方の値を取得します。
#define ML_min(x, y)   ((x) < (y) ? (x) : (y))
 小さい方の値を取得します。
#define ML_median(x, min_value, max_value)   ML_min((max_value), ML_max((min_value), (x)))
 3つの値の中間値を取得します。
#define ML_GetBool   ML_IsEnabled
 idで示される状態が有効であるかを取得します。
#define ML_AddCharWChar   ML_AddCharUTF16
#define ML_AddTextlWChar   ML_AddTextlUTF16
#define ML_AddTextWChar   ML_AddTextUTF16
#define ML_AddLinklWChar   ML_AddLinklUTF16
#define ML_AddLinkWChar   ML_AddLinkUTF16
#define ML_AddTextWithRubyWChar   ML_AddTextWithRubyUTF16

型定義

typedef int ML_FontStyle
 フォントスタイルです。
typedef ML_Message ML_Message
typedef ML_Backend ML_Backend
typedef ML_Surface ML_Surface
typedef ML_Command ML_Command
typedef ML_Font ML_Font
typedef void(ALICEMLCALL *) ML_Callback (ML_Message *message)
 種々の変更をユーザーに通知します。
typedef int(ALICEMLCALL *) ML_Callback_Insert (void *elem)
 オブジェクトの挿入時に呼び出される関数型です。
typedef void(ALICEMLCALL *) ML_Callback_Remove (void *elem)
 オブジェクトの削除時に呼び出される関数型です。
typedef int(ALICEMLCALL *) ML_Comparator (const void *elem1, const void *elem2)
 オブジェクトを比較するときに呼ばれる関数型です。
typedef void(ALICEMLCALL *) ML_Callback_Text (ML_Message *message)
 表示が終わったコマンドをユーザーに通知します。

列挙型

enum  ML_BoolIdentifier {
  ML_VERTICAL, ML_CONTINUE_TO_PAUSE, ML_WAIT, ML_PAUSE,
  ML_AUTO_NEWLINE, ML_AUTO_NEWPAGE, ML_CHAR_AUTO_HIDE, ML_CHAR_SHOWING,
  ML_CHAR_HIDING, ML_AUTO_REFRESH
}
 ML_Messageの状態値を有効/無効にするときに使います。 [詳細]
enum  ML_IntIdentifier {
  ML_AUTOMODE_NEWLINE_WAIT, ML_AUTOMODE_NEWPAGE_WAIT, ML_AUTOMODE_PAUSE_WAIT, ML_TEXT_ALIGN,
  ML_LINE_SPACE, ML_CHAR_SPACE, ML_FONT_SIZE, ML_FONT_STYLE,
  ML_RUBY_SIZE, ML_RUBY_OFFSET, ML_TEXT_SPEED, ML_CHAR_SHOW_TIME,
  ML_CHAR_SHOWING_TIME, ML_CHAR_HIDING_TIME
}
 ML_Messageの状態値を変更または取得する時に使います。 [詳細]
enum  ML_Mode { ML_MODE_NORMAL, ML_MODE_AUTO, ML_MODE_SKIP, ML_MODE_SUSPEND }
 メッセージレイヤのモードを示します。 [詳細]
enum  ML_TextAlign {
  ML_ALIGN_CENTER, ML_ALIGN_TOP, ML_ALIGN_BOTTOM, ML_ALIGN_LEFT = ML_ALIGN_TOP,
  ML_ALIGN_RIGHT = ML_ALIGN_BOTTOM
}
 テキストの表示位置を決定します。 [詳細]

関数

ALICEMLAPI void *ALICEMLCALL ML_malloc (ML_size size)
 メモリを確保します。
ALICEMLAPI void ALICEMLCALL ML_free (void *ptr)
 メモリを解放します。
ALICEMLAPI void *ALICEMLCALL ML_pooled_malloc (ML_size size)
 プールされたメモリの確保を行います。
ALICEMLAPI void ALICEMLCALL ML_pooled_free (void *ptr)
 プールメモリに使用済みのメモリを返します。
ALICEMLAPI ML_Message *ALICEMLCALL ML_CreateMessage (ML_Surface *surface)
 メッセージレイヤオブジェクトを作成します。
ALICEMLAPI ML_Message *ALICEMLCALL ML_CreateMessageWithSharedSurface (ML_Surface *surface)
 メッセージレイヤオブジェクトを作成します。
ALICEMLAPI void ALICEMLCALL ML_DestroyMessage (ML_Message *message)
 メッセージレイヤオブジェクトを破棄します。
ALICEMLAPI ML_SurfaceML_CreateSurfaceFromBackend (ML_Backend *backend, void *abstract_surface)
 サーフェイスオブジェクトをバックエンドから作成します。
ALICEMLAPI void ALICEMLCALL ML_DestroySurface (ML_Surface *surface)
 サーフェイスを破棄します。
ALICEMLAPI ML_Surface *ALICEMLCALL ML_GetSurface (ML_Message *message)
 このオブジェクトが持っているサーフェイスを取得します。
ALICEMLAPI void ALICEMLCALL ML_SetPrivateData (ML_Message *message, void *data)
 メッセージオブジェクトにユーザー固有のデータをバインドします。
ALICEMLAPI void *ALICEMLCALL ML_GetPrivateData (ML_Message *message)
 メッセージオブジェクトにバインドされたユーザー固有のデータを取得します。
ALICEMLAPI int ALICEMLCALL ML_Enable (ML_Message *message, ML_BoolIdentifier id)
 idで示される状態を有効にします。
ALICEMLAPI int ALICEMLCALL ML_Disable (ML_Message *message, ML_BoolIdentifier id)
 idで示される状態を無効にします。
ALICEMLAPI int ALICEMLCALL ML_SetBool (ML_Message *message, ML_BoolIdentifier id, ML_bool value)
 idで示される状態を変更します。
ALICEMLAPI ML_bool ALICEMLCALL ML_IsEnabled (ML_Message *message, ML_BoolIdentifier id)
 idで示される状態が有効であるかを取得します。
ALICEMLAPI ML_bool ALICEMLCALL ML_IsDisabled (ML_Message *message, ML_BoolIdentifier id)
 idで示される状態が無効であるかを取得します。
ALICEMLAPI int ALICEMLCALL ML_SetInteger (ML_Message *message, ML_IntIdentifier id, int value)
 idで示される値に整数値を設定します。
ALICEMLAPI int ALICEMLCALL ML_GetInteger (ML_Message *message, ML_IntIdentifier id, int *value)
 idで示される値を取得します。
ALICEMLAPI int ALICEMLCALL ML_PushContext (ML_Message *message)
 オブジェクトの状態の保存を行います。
ALICEMLAPI int ALICEMLCALL ML_PopContext (ML_Message *message)
 以前のオブジェクトの状態を復元します。
ALICEMLAPI int ALICEMLCALL ML_PushFont (ML_Message *message)
 現在のフォントを保存します。
ALICEMLAPI int ALICEMLCALL ML_PopFont (ML_Message *message)
 以前のフォントを復元します。
ALICEMLAPI int ALICEMLCALL ML_SetMode (ML_Message *message, ML_Mode mode)
 モードを設定します。
ALICEMLAPI int ALICEMLCALL ML_SetAutoModeWait (ML_Message *message, int newline_wait, int newpage_wait, int pause_wait)
 オートモードの時間設定をします。
ALICEMLAPI int ALICEMLCALL ML_SetNextCharTime (ML_Message *message, int next_char_time)
 文字ごとの表示時間などをまとめて設定します。
ALICEMLAPI int ALICEMLCALL ML_SetTextShowTime (ML_Message *message, int char_showing_time, int char_show_time, int char_hiding_time)
 文字のフェードイン/フェードアウトの時間を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetLineStyle (ML_Message *message, ML_TextAlign align, int line_space, int char_space)
 行に関する設定を行います。
ALICEMLAPI int ALICEMLCALL ML_SetDefaultFontFace (ML_Message *message, int index)
 フォントファイル名をデフォルト値に設定します。
ALICEMLAPI int ALICEMLCALL ML_SetFontFaceFromStr (ML_Message *message, const char *font_name, int index, ML_bool is_fullpath)
 フォントファイルを読み込み設定します。
ALICEMLAPI int ALICEMLCALL ML_SetFontFaceFromString (ML_Message *message, ML_String8 *font_name, int index, ML_bool is_fullpath)
 フォントファイルを読み込み設定します。
ALICEMLAPI int ALICEMLCALL ML_SetFontSize (ML_Message *message, int size)
 フォントサイズを設定します。
ALICEMLAPI int ALICEMLCALL ML_SetFontStyle (ML_Message *message, ML_FontStyle style)
 フォントスタイルを設定します。
ALICEMLAPI int ALICEMLCALL ML_SetFontColor4ub (ML_Message *message, ML_uint8 r, ML_uint8 g, ML_uint8 b, ML_uint8 a)
 フォントの色を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetShadowColor4ub (ML_Message *message, ML_uint8 r, ML_uint8 g, ML_uint8 b, ML_uint8 a)
 フォントの影を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetShadowOffset (ML_Message *message, int offset_x, int offset_y)
 フォントの影のオフセット値を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetHemmingColor4ub (ML_Message *message, ML_uint8 r, ML_uint8 g, ML_uint8 b, ML_uint8 a)
 フォントの縁取りを設定します。
ALICEMLAPI int ALICEMLCALL ML_SetHemmingWidth (ML_Message *message, int width_x, int width_y)
 フォントの縁取りの太さを決定します。
ALICEMLAPI int ALICEMLCALL ML_SetRubyStyle (ML_Message *message, int ruby_size, int ruby_offset)
 ルビ文字に関する設定を行います。
ALICEMLAPI int ALICEMLCALL ML_SetPosition (ML_Message *message, int left, int top)
 ウィンドウの基準位置を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetSize (ML_Message *message, int width, int height)
 ウィンドウのサイズを設定します。
ALICEMLAPI int ALICEMLCALL ML_SetBounds (ML_Message *message, int left, int top, int width, int height)
 ウィンドウの境界を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetMargin (ML_Message *message, int marginl, int margint, int marginr, int marginb)
 ウィンドウのマージン幅を設定します。
ALICEMLAPI int ALICEMLCALL ML_SetCallbackText (ML_Message *message, ML_Callback_Text callback)
 ページ終了時にそのとき画面に表示されていたテキストを得るための関数を設定します。
ALICEMLAPI int ALICEMLCALL ML_Update (ML_Message *message, int dt)
 メッセージレイヤ上の時間を進めます。
ALICEMLAPI int ALICEMLCALL ML_Refresh (ML_Message *message)
 メッセージレイヤ情報を更新します。主に内部で使います。
ALICEMLAPI int ALICEMLCALL ML_NextPage (ML_Message *message)
 ページを次に進めます。
ALICEMLAPI int ALICEMLCALL ML_PrevPage (ML_Message *message)
 ページを一つ戻します。
ALICEMLAPI int ALICEMLCALL ML_SetLastPage (ML_Message *message)
 一番最後のページに設定します。
ALICEMLAPI int ALICEMLCALL ML_Background (ML_Message *message, int dt, ML_bool is_sleep)
 余った時間で文字サーフェイスの先読みなどを行います。
ALICEMLAPI int ALICEMLCALL ML_Continue (ML_Message *message)
 再開します。
ALICEMLAPI int ALICEMLCALL ML_DrawText (ML_Message *message)
 ウィンドウ上にメッセージを描画します。
ALICEMLAPI int ALICEMLCALL ML_AddCharUCS4 (ML_Message *message, ML_char32 c)
 文字を追加します。
ALICEMLAPI int ALICEMLCALL ML_AddCharUTF16 (ML_Message *message, ML_char16 c)
ALICEMLAPI int ALICEMLCALL ML_AddCharUTF8 (ML_Message *message, ML_char8 c)
ALICEMLAPI int ALICEMLCALL ML_AddTextlUCS4 (ML_Message *message, const ML_char32 *text, ML_size length)
 表示テキストを追加します。
ALICEMLAPI int ALICEMLCALL ML_AddTextlUTF16 (ML_Message *message, const ML_char16 *text, ML_size length)
ALICEMLAPI int ALICEMLCALL ML_AddTextlUTF8 (ML_Message *message, const ML_char8 *text, ML_size length)
ALICEMLAPI int ALICEMLCALL ML_AddTextUCS4 (ML_Message *message, const ML_char32 *text)
 表示テキストを追加します。
ALICEMLAPI int ALICEMLCALL ML_AddTextUTF16 (ML_Message *message, const ML_char16 *text)
ALICEMLAPI int ALICEMLCALL ML_AddTextUTF8 (ML_Message *message, const ML_char8 *text)
ALICEMLAPI int ALICEMLCALL ML_AddTextWithRubyUCS4 (ML_Message *message, const ML_char32 *text, const ML_char32 *reading)
 テキストをルビ文字付きで追加します。
ALICEMLAPI int ALICEMLCALL ML_AddTextWithRubyUTF16 (ML_Message *message, const ML_char16 *text, const ML_char16 *reading)
ALICEMLAPI int ALICEMLCALL ML_AddTextWithRubyUTF8 (ML_Message *message, const ML_char8 *text, const ML_char8 *reading)
ALICEMLAPI int ALICEMLCALL ML_AddLinklUCS4 (ML_Message *message, int id, const ML_char32 *text, ML_size length)
 リンクテキストを文字の長さを指定して追加します。
ALICEMLAPI int ALICEMLCALL ML_AddLinklUTF16 (ML_Message *message, int id, const ML_char16 *text, ML_size length)
ALICEMLAPI int ALICEMLCALL ML_AddLinklUTF8 (ML_Message *message, int id, const ML_char8 *text, ML_size length)
ALICEMLAPI int ALICEMLCALL ML_AddLinkUCS4 (ML_Message *message, int id, const ML_char32 *text)
 リンクテキストを追加します。
ALICEMLAPI int ALICEMLCALL ML_AddLinkUTF16 (ML_Message *message, int id, const ML_char16 *text)
ALICEMLAPI int ALICEMLCALL ML_AddLinkUTF8 (ML_Message *message, int id, const ML_char8 *text)
ALICEMLAPI int ALICEMLCALL ML_AddCommand (ML_Message *message, ML_Command *command)
 直接コマンドを挿入します。
ALICEMLAPI int ALICEMLCALL ML_AddNewLine (ML_Message *message)
 改行します。
ALICEMLAPI int ALICEMLCALL ML_AddNewPage (ML_Message *message)
 改ページを行います。
ALICEMLAPI int ALICEMLCALL ML_AddPause (ML_Message *message)
 クリック待ちなどのために一旦停止します。
ALICEMLAPI int ALICEMLCALL ML_AddWait (ML_Message *message, int time, ML_bool can_skip)
 ウェイト指定を入れます。
ALICEMLAPI int ALICEMLCALL ML_MakeHistory (ML_Message *from, ML_Message *to)
 表示し終わったコマンドを他のオブジェクトに移します。
ALICEMLAPI int ALICEMLCALL ML_Clear (ML_Message *message)
 登録されているコマンドをすべて破棄します。
ALICEMLAPI ML_bool ALICEMLCALL ML_IsCommandFull (ML_Message *message)
 コマンドがいっぱいまで入っているか調べます。
ALICEMLAPI ML_size ALICEMLCALL ML_GetCommandSize (ML_Message *message)
 残っているコマンドの数を返します。
ALICEMLAPI int ALICEMLCALL ML_AddAvoidRect (ML_Message *message, ML_Rect *rect)
 テキスト描画時に回避する矩形を追加してください。
ALICEMLAPI int ALICEMLCALL ML_GetAvoidRectSize (ML_Message *message)
 回避矩形の数を取得します。
ALICEMLAPI ML_Rect *ALICEMLCALL ML_GetAvoidRect (ML_Message *message, int i)
 回避矩形を取得します。
ALICEMLAPI void ALICEMLCALL ML_ClearAvoidRect (ML_Message *message)
 回避矩形をすべて破棄します。
ALICEMLAPI int ALICEMLCALL ML_AddDirtyRect (ML_Message *message, ML_Rect *rect)
 更新矩形を追加します。ML_Update と ML_DrawText の間に呼び出してください。
ALICEMLAPI int ALICEMLCALL ML_GetDirtyRectSize (ML_Message *message)
 更新矩形の数を取得します。
ALICEMLAPI ML_Rect *ALICEMLCALL ML_GetDirtyRect (ML_Message *message, int i)
 更新矩形を取得します。
ALICEMLAPI ML_bool ALICEMLCALL ML_IntersectDirtyRect (ML_Message *message, ML_Rect *rect)
 更新矩形と交差する矩形領域を取得します。
ALICEMLAPI int ALICEMLCALL ML_GetLinkID (ML_Message *message, int x, int y)
 その座標を含むリンクがあればそれのIDを返します。
ALICEMLAPI void ALICEMLCALL ML_SetError (const char *format,...)
 エラー文字列を設定します。
ALICEMLAPI const char *ALICEMLCALL ML_GetError ()
 エラー文字列を取得します。
ALICEMLAPI void ALICEMLCALL ML_ClearError ()
 エラー文字列をクリアします。
ALICEMLAPI int ALICEMLCALL ML_CheckMemory ()
 確保されて、まだ解放されていないメモリがあるかどうかを調べます。
ALICEMLAPI ML_String8 *ALICEMLCALL ML_MakeFontPath (const ML_char8 *fontfile)
 フォントファイル名から、フォントのフルパスを取得します。
ALICEMLAPI ML_String8 *ALICEMLCALL ML_GetDefaultFont ()
 デフォルトのフォントファイルパスを取得します。
ALICEMLAPI ML_uint32 ALICEMLCALL ML_GetTicks ()
 現在時刻を得ます。
ALICEMLAPI int ALICEMLCALL ML_Delay (ML_uint32 time)
 指定されたミリ秒だけ、プログラムを止めます。


マクロ定義

#define ML_abs (  )     ((x) >= 0 ? (x) : -(x))

絶対値を取得します。

#define ML_AddCharWChar   ML_AddCharUTF16

#define ML_AddLinklWChar   ML_AddLinklUTF16

#define ML_AddLinkWChar   ML_AddLinkUTF16

#define ML_AddTextlWChar   ML_AddTextlUTF16

#define ML_AddTextWChar   ML_AddTextUTF16

#define ML_AddTextWithRubyWChar   ML_AddTextWithRubyUTF16

#define ML_FONTSTYLE_BOLD   0x0001

#define ML_FONTSTYLE_HEMMING   0x0010

#define ML_FONTSTYLE_ITALIC   0x0002

#define ML_FONTSTYLE_REGULAR   0x0000

#define ML_FONTSTYLE_SHADOW   0x0008

#define ML_FONTSTYLE_UNDERLINE   0x0004

#define ML_FONTSTYLE_VERTICAL   0x0020

#define ML_GetBool   ML_IsEnabled

idで示される状態が有効であるかを取得します。

#define ML_has_flag ( var,
flag   )     (((var) & (flag)) != 0)

var が特定のフラグをもっているか調べます。

#define ML_max ( x,
 )     ((x) > (y) ? (x) : (y))

大きい方の値を取得します。

#define ML_median ( x,
min_value,
max_value   )     ML_min((max_value), ML_max((min_value), (x)))

3つの値の中間値を取得します。

#define ML_min ( x,
 )     ((x) < (y) ? (x) : (y))

小さい方の値を取得します。


型定義

typedef struct ML_Backend ML_Backend

typedef void(ALICEMLCALL *) ML_Callback(ML_Message *message)

種々の変更をユーザーに通知します。

typedef int(ALICEMLCALL *) ML_Callback_Insert(void *elem)

オブジェクトの挿入時に呼び出される関数型です。

typedef void(ALICEMLCALL *) ML_Callback_Remove(void *elem)

オブジェクトの削除時に呼び出される関数型です。

typedef void(ALICEMLCALL *) ML_Callback_Text(ML_Message *message)

表示が終わったコマンドをユーザーに通知します。

typedef struct ML_Command ML_Command

typedef int(ALICEMLCALL *) ML_Comparator(const void *elem1, const void *elem2)

オブジェクトを比較するときに呼ばれる関数型です。

typedef struct ML_Font ML_Font

typedef int ML_FontStyle

フォントスタイルです。

enumだと&演算や|演算がイリーガルなものとなるので、 int型として定義しています。

typedef struct ML_Message ML_Message

typedef struct ML_Surface ML_Surface


列挙型

enum ML_BoolIdentifier

ML_Messageの状態値を有効/無効にするときに使います。

列挙型の値:
ML_VERTICAL  縦書きかどうかです。
ML_CONTINUE_TO_PAUSE  クリックによりページ末まで一気に表示させるかどうかです。
ML_WAIT  時間制限付きのウェイトを有効にするかです。
ML_PAUSE  クリック待ちのウェイトを有効にするかどうかです。
ML_AUTO_NEWLINE  表示領域を超える場合は自動的に改行します。
ML_AUTO_NEWPAGE  ページ末まで表示されたら自動的に改ページを入れるかどうかです。
ML_CHAR_AUTO_HIDE  文字を時間制限付きで消すかどうかです。
ML_CHAR_SHOWING  文字をフェードインで表示するかどうかです。
ML_CHAR_HIDING  文字をフェードアウトで消すかどうかです。
ML_AUTO_REFRESH  コマンド追加時に自動的に表示文字列を変更するかどうかです。

enum ML_IntIdentifier

ML_Messageの状態値を変更または取得する時に使います。

列挙型の値:
ML_AUTOMODE_NEWLINE_WAIT  自動読み進みモード時の改行の待ち時間です。
ML_AUTOMODE_NEWPAGE_WAIT  自動読み進みモード時の改ページの待ち時間です。
ML_AUTOMODE_PAUSE_WAIT  自動読み進みモード時のクリック待ち時間です。
ML_TEXT_ALIGN  テキストアラインです。
ML_LINE_SPACE  行間です。
ML_CHAR_SPACE  文字間です。
ML_FONT_SIZE  フォントサイズです。
ML_FONT_STYLE  フォントスタイルです。
ML_RUBY_SIZE  ルビ文字の大きさです。
ML_RUBY_OFFSET  ルビ文字のオフセットです。
ML_TEXT_SPEED  文字が表示されてから次の文字が表示されるまでの時間です。
ML_CHAR_SHOW_TIME  文字が表示されている時間です。
ML_CHAR_SHOWING_TIME  文字がフェードインするのに必要な時間です。
ML_CHAR_HIDING_TIME  文字がフェードアウトするのに必要な時間です。

enum ML_Mode

メッセージレイヤのモードを示します。

列挙型の値:
ML_MODE_NORMAL 
ML_MODE_AUTO 
ML_MODE_SKIP 
ML_MODE_SUSPEND 

enum ML_TextAlign

テキストの表示位置を決定します。

列挙型の値:
ML_ALIGN_CENTER 
ML_ALIGN_TOP 
ML_ALIGN_BOTTOM 
ML_ALIGN_LEFT 
ML_ALIGN_RIGHT 


関数

ALICEMLAPI int ALICEMLCALL ML_AddAvoidRect ( ML_Message message,
ML_Rect rect 
)

テキスト描画時に回避する矩形を追加してください。

ALICEMLAPI int ALICEMLCALL ML_AddCharUCS4 ( ML_Message message,
ML_char32  c 
)

文字を追加します。

ALICEMLAPI int ALICEMLCALL ML_AddCharUTF16 ( ML_Message message,
ML_char16  c 
)

ALICEMLAPI int ALICEMLCALL ML_AddCharUTF8 ( ML_Message message,
ML_char8  c 
)

ALICEMLAPI int ALICEMLCALL ML_AddCommand ( ML_Message message,
ML_Command command 
)

直接コマンドを挿入します。

ALICEMLAPI int ALICEMLCALL ML_AddDirtyRect ( ML_Message message,
ML_Rect rect 
)

更新矩形を追加します。ML_Update と ML_DrawText の間に呼び出してください。

ALICEMLAPI int ALICEMLCALL ML_AddLinklUCS4 ( ML_Message message,
int  id,
const ML_char32 text,
ML_size  length 
)

リンクテキストを文字の長さを指定して追加します。

ALICEMLAPI int ALICEMLCALL ML_AddLinklUTF16 ( ML_Message message,
int  id,
const ML_char16 text,
ML_size  length 
)

ALICEMLAPI int ALICEMLCALL ML_AddLinklUTF8 ( ML_Message message,
int  id,
const ML_char8 text,
ML_size  length 
)

ALICEMLAPI int ALICEMLCALL ML_AddLinkUCS4 ( ML_Message message,
int  id,
const ML_char32 text 
)

リンクテキストを追加します。

ALICEMLAPI int ALICEMLCALL ML_AddLinkUTF16 ( ML_Message message,
int  id,
const ML_char16 text 
)

ALICEMLAPI int ALICEMLCALL ML_AddLinkUTF8 ( ML_Message message,
int  id,
const ML_char8 text 
)

ALICEMLAPI int ALICEMLCALL ML_AddNewLine ( ML_Message message  ) 

改行します。

ALICEMLAPI int ALICEMLCALL ML_AddNewPage ( ML_Message message  ) 

改ページを行います。

ALICEMLAPI int ALICEMLCALL ML_AddPause ( ML_Message message  ) 

クリック待ちなどのために一旦停止します。

ALICEMLAPI int ALICEMLCALL ML_AddTextlUCS4 ( ML_Message message,
const ML_char32 text,
ML_size  length 
)

表示テキストを追加します。

ALICEMLAPI int ALICEMLCALL ML_AddTextlUTF16 ( ML_Message message,
const ML_char16 text,
ML_size  length 
)

ALICEMLAPI int ALICEMLCALL ML_AddTextlUTF8 ( ML_Message message,
const ML_char8 text,
ML_size  length 
)

ALICEMLAPI int ALICEMLCALL ML_AddTextUCS4 ( ML_Message message,
const ML_char32 text 
)

表示テキストを追加します。

ALICEMLAPI int ALICEMLCALL ML_AddTextUTF16 ( ML_Message message,
const ML_char16 text 
)

ALICEMLAPI int ALICEMLCALL ML_AddTextUTF8 ( ML_Message message,
const ML_char8 text 
)

ALICEMLAPI int ALICEMLCALL ML_AddTextWithRubyUCS4 ( ML_Message message,
const ML_char32 text,
const ML_char32 reading 
)

テキストをルビ文字付きで追加します。

ALICEMLAPI int ALICEMLCALL ML_AddTextWithRubyUTF16 ( ML_Message message,
const ML_char16 text,
const ML_char16 reading 
)

ALICEMLAPI int ALICEMLCALL ML_AddTextWithRubyUTF8 ( ML_Message message,
const ML_char8 text,
const ML_char8 reading 
)

ALICEMLAPI int ALICEMLCALL ML_AddWait ( ML_Message message,
int  time,
ML_bool  can_skip 
)

ウェイト指定を入れます。

ALICEMLAPI int ALICEMLCALL ML_Background ( ML_Message message,
int  dt,
ML_bool  is_sleep 
)

余った時間で文字サーフェイスの先読みなどを行います。

ALICEMLAPI int ALICEMLCALL ML_CheckMemory (  ) 

確保されて、まだ解放されていないメモリがあるかどうかを調べます。

ALICEMLAPI int ALICEMLCALL ML_Clear ( ML_Message message  ) 

登録されているコマンドをすべて破棄します。

ALICEMLAPI void ALICEMLCALL ML_ClearAvoidRect ( ML_Message message  ) 

回避矩形をすべて破棄します。

ALICEMLAPI void ALICEMLCALL ML_ClearError (  ) 

エラー文字列をクリアします。

ALICEMLAPI int ALICEMLCALL ML_Continue ( ML_Message message  ) 

再開します。

ALICEMLAPI ML_Message* ALICEMLCALL ML_CreateMessage ( ML_Surface surface  ) 

メッセージレイヤオブジェクトを作成します。

ALICEMLAPI ML_Message* ALICEMLCALL ML_CreateMessageWithSharedSurface ( ML_Surface surface  ) 

メッセージレイヤオブジェクトを作成します。

ALICEMLAPI ML_Surface* ML_CreateSurfaceFromBackend ( ML_Backend backend,
void *  abstract_surface 
)

サーフェイスオブジェクトをバックエンドから作成します。

ALICEMLAPI int ALICEMLCALL ML_Delay ( ML_uint32  time  ) 

指定されたミリ秒だけ、プログラムを止めます。

ALICEMLAPI void ALICEMLCALL ML_DestroyMessage ( ML_Message message  ) 

メッセージレイヤオブジェクトを破棄します。

ALICEMLAPI void ALICEMLCALL ML_DestroySurface ( ML_Surface surface  ) 

サーフェイスを破棄します。

ALICEMLAPI int ALICEMLCALL ML_Disable ( ML_Message message,
ML_BoolIdentifier  id 
)

idで示される状態を無効にします。

ALICEMLAPI int ALICEMLCALL ML_DrawText ( ML_Message message  ) 

ウィンドウ上にメッセージを描画します。

ALICEMLAPI int ALICEMLCALL ML_Enable ( ML_Message message,
ML_BoolIdentifier  id 
)

idで示される状態を有効にします。

ALICEMLAPI void ALICEMLCALL ML_free ( void *  ptr  ) 

メモリを解放します。

ALICEMLAPI ML_Rect* ALICEMLCALL ML_GetAvoidRect ( ML_Message message,
int  i 
)

回避矩形を取得します。

ALICEMLAPI int ALICEMLCALL ML_GetAvoidRectSize ( ML_Message message  ) 

回避矩形の数を取得します。

ALICEMLAPI ML_size ALICEMLCALL ML_GetCommandSize ( ML_Message message  ) 

残っているコマンドの数を返します。

ALICEMLAPI ML_String8* ALICEMLCALL ML_GetDefaultFont (  ) 

デフォルトのフォントファイルパスを取得します。

ALICEMLAPI ML_Rect* ALICEMLCALL ML_GetDirtyRect ( ML_Message message,
int  i 
)

更新矩形を取得します。

ALICEMLAPI int ALICEMLCALL ML_GetDirtyRectSize ( ML_Message message  ) 

更新矩形の数を取得します。

ALICEMLAPI const char* ALICEMLCALL ML_GetError (  ) 

エラー文字列を取得します。

ALICEMLAPI int ALICEMLCALL ML_GetInteger ( ML_Message message,
ML_IntIdentifier  id,
int *  value 
)

idで示される値を取得します。

ALICEMLAPI int ALICEMLCALL ML_GetLinkID ( ML_Message message,
int  x,
int  y 
)

その座標を含むリンクがあればそれのIDを返します。

ALICEMLAPI void* ALICEMLCALL ML_GetPrivateData ( ML_Message message  ) 

メッセージオブジェクトにバインドされたユーザー固有のデータを取得します。

ALICEMLAPI ML_Surface* ALICEMLCALL ML_GetSurface ( ML_Message message  ) 

このオブジェクトが持っているサーフェイスを取得します。

ALICEMLAPI ML_uint32 ALICEMLCALL ML_GetTicks (  ) 

現在時刻を得ます。

ALICEMLAPI ML_bool ALICEMLCALL ML_IntersectDirtyRect ( ML_Message message,
ML_Rect rect 
)

更新矩形と交差する矩形領域を取得します。

ALICEMLAPI ML_bool ALICEMLCALL ML_IsCommandFull ( ML_Message message  ) 

コマンドがいっぱいまで入っているか調べます。

ALICEMLAPI ML_bool ALICEMLCALL ML_IsDisabled ( ML_Message message,
ML_BoolIdentifier  id 
)

idで示される状態が無効であるかを取得します。

ALICEMLAPI ML_bool ALICEMLCALL ML_IsEnabled ( ML_Message message,
ML_BoolIdentifier  id 
)

idで示される状態が有効であるかを取得します。

ALICEMLAPI ML_String8* ALICEMLCALL ML_MakeFontPath ( const ML_char8 fontfile  ) 

フォントファイル名から、フォントのフルパスを取得します。

環境依存するフォントファイル名からフルパス名を取得します。

ALICEMLAPI int ALICEMLCALL ML_MakeHistory ( ML_Message from,
ML_Message to 
)

表示し終わったコマンドを他のオブジェクトに移します。

ALICEMLAPI void* ALICEMLCALL ML_malloc ( ML_size  size  ) 

メモリを確保します。

ALICEMLAPI int ALICEMLCALL ML_NextPage ( ML_Message message  ) 

ページを次に進めます。

ALICEMLAPI void ALICEMLCALL ML_pooled_free ( void *  ptr  ) 

プールメモリに使用済みのメモリを返します。

ALICEMLAPI void* ALICEMLCALL ML_pooled_malloc ( ML_size  size  ) 

プールされたメモリの確保を行います。

ALICEMLAPI int ALICEMLCALL ML_PopContext ( ML_Message message  ) 

以前のオブジェクトの状態を復元します。

ALICEMLAPI int ALICEMLCALL ML_PopFont ( ML_Message message  ) 

以前のフォントを復元します。

ALICEMLAPI int ALICEMLCALL ML_PrevPage ( ML_Message message  ) 

ページを一つ戻します。

ALICEMLAPI int ALICEMLCALL ML_PushContext ( ML_Message message  ) 

オブジェクトの状態の保存を行います。

ALICEMLAPI int ALICEMLCALL ML_PushFont ( ML_Message message  ) 

現在のフォントを保存します。

ALICEMLAPI int ALICEMLCALL ML_Refresh ( ML_Message message  ) 

メッセージレイヤ情報を更新します。主に内部で使います。

ALICEMLAPI int ALICEMLCALL ML_SetAutoModeWait ( ML_Message message,
int  newline_wait,
int  newpage_wait,
int  pause_wait 
)

オートモードの時間設定をします。

ALICEMLAPI int ALICEMLCALL ML_SetBool ( ML_Message message,
ML_BoolIdentifier  id,
ML_bool  value 
)

idで示される状態を変更します。

ALICEMLAPI int ALICEMLCALL ML_SetBounds ( ML_Message message,
int  left,
int  top,
int  width,
int  height 
)

ウィンドウの境界を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetCallbackText ( ML_Message message,
ML_Callback_Text  callback 
)

ページ終了時にそのとき画面に表示されていたテキストを得るための関数を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetDefaultFontFace ( ML_Message message,
int  index 
)

フォントファイル名をデフォルト値に設定します。

ALICEMLAPI void ALICEMLCALL ML_SetError ( const char *  format,
  ... 
)

エラー文字列を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetFontColor4ub ( ML_Message message,
ML_uint8  r,
ML_uint8  g,
ML_uint8  b,
ML_uint8  a 
)

フォントの色を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetFontFaceFromStr ( ML_Message message,
const char *  font_name,
int  index,
ML_bool  is_fullpath 
)

フォントファイルを読み込み設定します。

ALICEMLAPI int ALICEMLCALL ML_SetFontFaceFromString ( ML_Message message,
ML_String8 font_name,
int  index,
ML_bool  is_fullpath 
)

フォントファイルを読み込み設定します。

ALICEMLAPI int ALICEMLCALL ML_SetFontSize ( ML_Message message,
int  size 
)

フォントサイズを設定します。

ALICEMLAPI int ALICEMLCALL ML_SetFontStyle ( ML_Message message,
ML_FontStyle  style 
)

フォントスタイルを設定します。

ALICEMLAPI int ALICEMLCALL ML_SetHemmingColor4ub ( ML_Message message,
ML_uint8  r,
ML_uint8  g,
ML_uint8  b,
ML_uint8  a 
)

フォントの縁取りを設定します。

ALICEMLAPI int ALICEMLCALL ML_SetHemmingWidth ( ML_Message message,
int  width_x,
int  width_y 
)

フォントの縁取りの太さを決定します。

ALICEMLAPI int ALICEMLCALL ML_SetInteger ( ML_Message message,
ML_IntIdentifier  id,
int  value 
)

idで示される値に整数値を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetLastPage ( ML_Message message  ) 

一番最後のページに設定します。

ALICEMLAPI int ALICEMLCALL ML_SetLineStyle ( ML_Message message,
ML_TextAlign  align,
int  line_space,
int  char_space 
)

行に関する設定を行います。

ALICEMLAPI int ALICEMLCALL ML_SetMargin ( ML_Message message,
int  marginl,
int  margint,
int  marginr,
int  marginb 
)

ウィンドウのマージン幅を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetMode ( ML_Message message,
ML_Mode  mode 
)

モードを設定します。

ALICEMLAPI int ALICEMLCALL ML_SetNextCharTime ( ML_Message message,
int  next_char_time 
)

文字ごとの表示時間などをまとめて設定します。

ALICEMLAPI int ALICEMLCALL ML_SetPosition ( ML_Message message,
int  left,
int  top 
)

ウィンドウの基準位置を設定します。

ALICEMLAPI void ALICEMLCALL ML_SetPrivateData ( ML_Message message,
void *  data 
)

メッセージオブジェクトにユーザー固有のデータをバインドします。

ALICEMLAPI int ALICEMLCALL ML_SetRubyStyle ( ML_Message message,
int  ruby_size,
int  ruby_offset 
)

ルビ文字に関する設定を行います。

ALICEMLAPI int ALICEMLCALL ML_SetShadowColor4ub ( ML_Message message,
ML_uint8  r,
ML_uint8  g,
ML_uint8  b,
ML_uint8  a 
)

フォントの影を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetShadowOffset ( ML_Message message,
int  offset_x,
int  offset_y 
)

フォントの影のオフセット値を設定します。

ALICEMLAPI int ALICEMLCALL ML_SetSize ( ML_Message message,
int  width,
int  height 
)

ウィンドウのサイズを設定します。

ALICEMLAPI int ALICEMLCALL ML_SetTextShowTime ( ML_Message message,
int  char_showing_time,
int  char_show_time,
int  char_hiding_time 
)

文字のフェードイン/フェードアウトの時間を設定します。

ALICEMLAPI int ALICEMLCALL ML_Update ( ML_Message message,
int  dt 
)

メッセージレイヤ上の時間を進めます。


AliceMLに対してSat Apr 21 13:06:20 2007に生成されました。  doxygen 1.4.7