OROCHI
 
Loading...
Searching...
No Matches
GxImeText::GxImeData Struct Reference

イベント構造体 More...

#include <GxInputImeText.h>

Static Public Member Functions

メンバ変数
static GX_STR concatenate (GX_STR dst, GxImeData *pSrc)
 utf8文字を連結
 
static GX_STR backSpace (GX_STR dst)
 utf8文字を1文字(バイトではない)削除
 
static GX_STR addEnter (GX_STR dst)
 改行を連結
 
static u32 leftCharByte (GX_STR start, GX_STR src)
 前の1文字のバイト数を取得
 
static u32 rightCharByte (GX_STR src)
 次の1文字のバイト数を取得
 
static u32 endOfLineByte (GX_STR src)
 行末までのバイト数を取得
 
static u32 begOfLineByte (GX_STR start, GX_STR src)
 行頭までのバイト数を取得
 
static void trimLeft (GX_STR dst, u32 bytes)
 文字列の先頭を bytes バイト削除して前方を詰める
 

定義

static constexpr u8 COMMAND_BACK_SPACE = 8
 バックスペース
 
static constexpr u8 COMMAND_CUT = 24
 カット
 
static constexpr u8 COMMAND_COPY = 3
 コピー
 
static constexpr u8 COMMAND_PASTE = 22
 ペースト
 
static constexpr u8 COMMAND_SELECT_ALL = 1
 全選択
 
static constexpr u8 COMMAND_ENTER = 13
 エンター
 
static constexpr u8 COMMAND_BELL = 7
 ベル
 
static constexpr u8 COMMAND_LEFT = 17
 
 
static constexpr u8 COMMAND_UP = 18
 
 
static constexpr u8 COMMAND_RIGHT = 19
 
 
static constexpr u8 COMMAND_DOWN = 20
 
 
static constexpr u8 COMMAND_INSERT = 21
 挿入
 
static constexpr u8 COMMAND_DELETE = 23
 削除
 
static constexpr u8 COMMAND_END = 25
 終了
 
static constexpr u8 COMMAND_HOME = 26
 ホーム
 
static constexpr u8 ACCELERATE_MASK_SHIFT = 1
 シフト
 
static constexpr u8 ACCELERATE_MASK_CONTROL = 2
 コントロール
 
static constexpr u8 ACCELERATE_MASK_ALT = 4
 オルト
 
static constexpr s32 CALLBACK_MASK_EXECUTE = 1
 01: この処理を実行する
 
static constexpr s32 CALLBACK_MASK_BREAK = 2
 10: ただちに終了
 
union { 
 
   struct { 
 
      u8   _command 
 コマンド
 
      u8   _accelerate 
 アクセラレート
 
      u8   _data2 
 データ
 
      u8   _data3 
 データ
 
   }  
 
   u32   _access32 
 データ
 
};  
 

Detailed Description

イベント構造体

Member Function Documentation

◆ addEnter()

GX_STR GxImeText::GxImeData::addEnter ( GX_STR dst)
static

改行を連結

Parameters
dst[in, out] 連結後の文字列
Returns
連結後の文字列
Here is the caller graph for this function:

◆ backSpace()

GX_STR GxImeText::GxImeData::backSpace ( GX_STR dst)
static

utf8文字を1文字(バイトではない)削除

Parameters
dst[in, out] 削除後の文字列
Returns
削除後の文字列
Here is the caller graph for this function:

◆ begOfLineByte()

u32 GxImeText::GxImeData::begOfLineByte ( GX_STR start,
GX_STR src )
static

行頭までのバイト数を取得

Parameters
start[in] 元の文字列の先頭位置
src[in] 元の文字列
Returns
行頭までのバイト数
Here is the caller graph for this function:

◆ concatenate()

GX_CHAR * GxImeText::GxImeData::concatenate ( GX_STR dst,
GxImeText::GxImeData * pSrc )
static

utf8文字を連結

Parameters
dst[out] 連結後の文字列
pSrc[in] 元の文字列
Returns
連結後の文字列
Here is the caller graph for this function:

◆ endOfLineByte()

u32 GxImeText::GxImeData::endOfLineByte ( GX_STR src)
static

行末までのバイト数を取得

Parameters
src[in] 元の文字列
Returns
行末までのバイト数
Here is the caller graph for this function:

◆ leftCharByte()

u32 GxImeText::GxImeData::leftCharByte ( GX_STR start,
GX_STR src )
static

前の1文字のバイト数を取得

Parameters
start[in] 元の文字列の先頭位置
src[in] 元の文字列
Returns
前の1文字のバイト数
Here is the caller graph for this function:

◆ rightCharByte()

u32 GxImeText::GxImeData::rightCharByte ( GX_STR src)
static

次の1文字のバイト数を取得

Parameters
src[in] 元の文字列
Returns
次の1文字のバイト数
Here is the call graph for this function:
Here is the caller graph for this function:

◆ trimLeft()

void GxImeText::GxImeData::trimLeft ( GX_STR dst,
u32 bytes )
static

文字列の先頭を bytes バイト削除して前方を詰める

Parameters
dst[in,out] 加工文字列
bytes[in] 削除バイト数
Here is the caller graph for this function:

The documentation for this struct was generated from the following files: