![]() ![]() ![]()
|
SophiaFramework UNIVERSE 5.0 |
#include <SFZMultipleEditBoxControl.h.hpp>
class SFZMultipleEditBoxControl : public SFYBoxControl;
SFMTYPEDEFCLASS(SFZMultipleEditBoxControl)


SFZMultipleEditBoxControl は、操作キー押下時にテキスト入力画面に遷移し、入力終了時にイベントを受信できるクラスです。
行数が多くスクロールして表示する必要がある場合には、上下キーでスクロールすることができます。
| コンストラクタ/デストラクタ |
|---|
|
SFZMultipleEditBoxControl( Void ) SFZMultipleEditBoxControl クラスのコンストラクタです。
|
|
~SFZMultipleEditBoxControl( Void ) SFZMultipleEditBoxControl クラスのデストラクタです。
|
| パブリック関数 | |
|---|---|
| AEEFont |
GetFont( Void ) フォントを取得します。
|
| HorizontalEnum |
GetHorizontalAlign( Void ) 水平アラインメントの値を取得します。
|
| AEETextInputMode |
GetInputMode( Void ) テキスト入力モードを取得します。
|
| UInt16 |
GetMaximumLength( Void ) 最大文字入力数を取得します。
|
| AVKType |
GetPageDownKey( Void ) 仮想領域を下方向に1ページ分スクロールするキーを取得します。
|
| AVKType |
GetPageUpKey( Void ) 仮想領域を上方向に1ページ分スクロールするキーを取得します。
|
| Bool |
GetPasswordMode( Void ) パスワード モードの値を取得します。
|
| AEECLSID |
GetSFBMenuCtlClassID( Void ) SFBMenuCtl のクラス ID を取得します。
|
| AEECLSID |
GetSFBTextCtlClassID( Void ) SFBTextCtl のクラス ID を取得します。
|
| AVKType |
GetScrollDownKey( Void ) 仮想領域を下方向にスクロールするキーを取得します。
|
| SInt16 |
GetScrollStep( Void ) スクロールの移動量を取得します。
|
| AVKType |
GetScrollUpKey( Void ) 仮想領域を上方向にスクロールするキーを取得します。
|
| AVKType |
GetSnapDownKey( Void ) 仮想領域を下端までスクロールするキーを取得します。
|
| AVKType |
GetSnapUpKey( Void ) 仮想領域を上端までスクロールするキーを取得します。
|
| SFXWideStringConstRef |
GetText( Void ) テキストを取得します。
|
| SFXRGBColorConstRef |
GetTextColor( Void ) テキストの色を取得します。
|
| VerticalEnum |
GetVerticalAlign( Void ) 垂直アラインメントの値を取得します。
|
| static SFZMultipleEditBoxControlSmp |
NewInstance(
SFCErrorPtr exception = null
) 新しいインスタンスを作成します。
|
| Bool |
PageDown( Void ) 仮想領域を下方向に1ページ分スクロールします。
|
| Bool |
PageUp( Void ) 仮想領域を上方向に1ページ分スクロールします。
|
| Bool |
ScrollDown( Void ) 仮想領域を下方向にスクロールします。
|
| Bool |
ScrollUp( Void ) 仮想領域を上方向にスクロールします。
|
| Void |
SetFont(
AEEFont param
) フォントを設定します。
|
| Void |
SetHorizontalAlign(
HorizontalEnum param
) 水平アラインメントを設定します。
|
| Void |
SetInputMode(
AEETextInputMode param
) テキスト入力モードを設定します。
|
| SFCError |
SetMaximumLength(
UInt16 param
) 最大文字入力数を設定します。
|
| Void |
SetPageDownKey(
AVKType param
) 仮想領域を下方向に1ページ分スクロールするキーを設定します。
|
| Void |
SetPageUpKey(
AVKType param
) 仮想領域を上方向に1ページ分スクロールするキーを設定します。
|
| SFCError |
SetPasswordMode(
Bool param
) パスワード モードを設定します。
|
| Void |
SetSFBMenuCtlClassID(
AEECLSID param
) SFBMenuCtl のクラス ID を設定します。
|
| Void |
SetSFBTextCtlClassID(
AEECLSID param
) SFBTextCtl のクラス ID を設定します。
|
| Void |
SetScrollDownKey(
AVKType param
) 仮想領域を下方向にスクロールするキーを設定します。
|
| Void |
SetScrollStep(
SInt16 param
) スクロールの移動量を設定します。
|
| Void |
SetScrollUpKey(
AVKType param
) 仮想領域を上方向にスクロールするキーを設定します。
|
| Void |
SetSnapDownKey(
AVKType param
) 仮想領域を下端までスクロールするキーを設定します。
|
| Void |
SetSnapUpKey(
AVKType param
) 仮想領域を上端までスクロールするキーを設定します。
|
| SFCError |
SetText(
SFXPathConstRef path
, UInt16 id
) SetText( SFXWideStringConstRef param ) テキストを設定します。
|
| Void |
SetTextColor(
SFXRGBColorConstRef param
) テキストの色を設定します。
|
| Void |
SetVerticalAlign(
VerticalEnum param
) 垂直アラインメントを設定します。
|
| Bool |
SnapAlign( Void ) スクロール位置を初期状態に戻します。
|
| Bool |
SnapDown( Void ) 仮想領域の下端までスクロールします。
|
| Bool |
SnapUp( Void ) 仮想領域の上端までスクロールします。
|
| Void |
ClearHandler( Void )
(SFYResponder から継承)
ハンドラの登録をすべて解除します。
|
| Void |
ClearTracer( Void )
(SFYResponder から継承)
トレーサの登録をすべて解除します。
|
| SFCError |
Distribute(
SFXEventConstRef event
, BoolPtr result = null
)
(SFYResponder から継承)
配信エンジンを起動してイベントを配信します。
|
| SFXRGBColorConstRef |
GetBackgroundColor( Void )
(SFYWidget から継承)
背景の色を取得します。
|
| SFXBevelColorConstRef |
GetBevelColor( Void )
(SFYBoxControl から継承)
3D のボックスコントロールを描画するためのベベルカラーを取得します。
|
| SFYResponderSmp |
GetChildBack( Void )
(SFYResponder から継承)
GetChildBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetChildBack( UInt32 id ) (SFYResponder から継承) GetChildBack( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 最背面に位置する子レスポンダを取得します。
|
| SFYResponderSmp |
GetChildBackward(
SInt32 index
)
(SFYResponder から継承)
GetChildBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetChildBackward( SInt32 index , UInt32 id ) (SFYResponder から継承) GetChildBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 背面から数えて指定された順番に位置する子レスポンダを取得します。
|
| SInt32 |
GetChildCount( Void )
(SFYResponder から継承)
GetChildCount( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetChildCount( UInt32 id ) (SFYResponder から継承) GetChildCount( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 子レスポンダの数を取得します。
|
| SFYResponderSmp |
GetChildForward(
SInt32 index
)
(SFYResponder から継承)
GetChildForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetChildForward( SInt32 index , UInt32 id ) (SFYResponder から継承) GetChildForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 前面から数えて指定された順番に位置する子レスポンダを取得します。
|
| SFYResponderSmp |
GetChildFront( Void )
(SFYResponder から継承)
GetChildFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetChildFront( UInt32 id ) (SFYResponder から継承) GetChildFront( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 最前面に位置する子レスポンダを取得します。
|
| SInt32 |
GetCurrentValue( Void )
(SFYControl から継承)
コントロールの現在値を取得します。
|
| SFYDistributerPtr |
GetDistributer( Void )
(SFYResponder から継承)
配信エンジンを取得します。
|
| SFXRGBColorConstRef |
GetFocusColor( Void )
(SFYBoxControl から継承)
フォーカス状態にあるときの枠線の色を取得します。
|
| SFXRGBColorConstRef |
GetFrameColor( Void )
(SFYBoxControl から継承)
外側の枠線の色を取得します。
|
| SFXRectangle |
GetGlobalBound( Void )
(SFYResponder から継承)
グローバル領域を取得します。
|
| UInt32 |
GetID( Void )
(SFYResponder から継承)
ID を取得します。
|
| SFXRectangle |
GetLocalBound( Void )
(SFYResponder から継承)
ローカル領域を取得します。
|
| SInt32 |
GetMaximumValue( Void )
(SFYControl から継承)
コントロールの最大値を取得します。
|
| SInt32 |
GetMinimumValue( Void )
(SFYControl から継承)
コントロールの最小値を取得します。
|
| SInt32 |
GetNthBackward( Void )
(SFYResponder から継承)
GetNthBackward( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetNthBackward( UInt32 id ) (SFYResponder から継承) GetNthBackward( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダが背面から数えて何番目に位置するかを取得します。
|
| SInt32 |
GetNthForward( Void )
(SFYResponder から継承)
GetNthForward( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) GetNthForward( UInt32 id ) (SFYResponder から継承) GetNthForward( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダが前面から数えて何番目に位置するかを取得します。
|
| AVKType |
GetOperateKey( Void )
(SFYBoxControl から継承)
操作キーを取得します。
|
| SFYResponderSmp |
GetParent( Void )
(SFYResponder から継承)
親レスポンダを取得します。
|
| Bool |
GetPropertyTransparent( Void )
(SFYResponder から継承)
透過属性を取得します。
|
| SFXRectangleConstRef |
GetRealBound( Void )
(SFYResponder から継承)
実領域を取得します。
|
| VoidPtr |
GetReference( Void )
(SFYResponder から継承)
リファレンス値を取得します。
|
| SFYRendererPtr |
GetRenderer( Void )
(SFYResponder から継承)
描画エンジンを取得します。
|
| SFYResponderSmp |
GetRoot( Void )
(SFYResponder から継承)
ルートレスポンダを取得します。
|
| Bool |
GetStateActive(
Bool inherit = false
)
(SFYResponder から継承)
活性状態を取得します。
|
| Bool |
GetStateEnable(
Bool inherit = false
)
(SFYResponder から継承)
操作可能状態を取得します。
|
| Bool |
GetStateFocus(
Bool inherit = false
)
(SFYResponder から継承)
フォーカス状態を取得します。
|
| Bool |
GetStateVisible(
Bool inherit = false
)
(SFYResponder から継承)
可視状態を取得します。
|
| SFXRectangle |
GetSuitableBound( Void )
(SFYResponder から継承)
GetSuitableBound( SFXRectangleConstRef param ) (SFYResponder から継承) 最適な大きさを取得します。
|
| SFXMargin |
GetSuitableMargin( Void )
(SFYResponder から継承)
最適な余白を取得します。
|
| SFCType |
GetType( Void )
(SFYResponder から継承)
タイプを取得します。
|
| SFXRectangleConstRef |
GetVirtualBound( Void )
(SFYResponder から継承)
仮想領域を取得します。
|
| Void |
Initialize( Void )
(SFYResponder から継承)
レスポンダを初期化します。
|
| Void |
Invalidate( Void )
(SFYResponder から継承)
Invalidate( SFXRectangleConstRef param ) (SFYResponder から継承) 再描画領域を登録します。
|
| Void |
InvokeBackward(
SFXEventConstRef event
, Bool overload
, BoolPtr result = null
)
(SFYResponder から継承)
レスポンダにイベントを送信します。ハンドラ関数はハンドラリストに登録された順序で呼び出されます。
|
| Void |
InvokeForward(
SFXEventConstRef event
, Bool overload
, BoolPtr result = null
)
(SFYResponder から継承)
レスポンダにイベントを送信します。ハンドラ関数はハンドラリストに登録された逆順で呼び出されます。
|
| Bool |
IsBack( Void )
(SFYResponder から継承)
IsBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) IsBack( UInt32 id ) (SFYResponder から継承) IsBack( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダが最背面に位置するかどうかを判定します。
|
| Bool |
IsFront( Void )
(SFYResponder から継承)
IsFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) IsFront( UInt32 id ) (SFYResponder から継承) IsFront( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダが最前面に位置するかどうかを判定します。
|
| Bool |
IsNthBackward(
SInt32 index
)
(SFYResponder から継承)
IsNthBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) IsNthBackward( SInt32 index , UInt32 id ) (SFYResponder から継承) IsNthBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダが背面から数えて指定された順番に位置するかどうかを判定します。
|
| Bool |
IsNthForward(
SInt32 index
)
(SFYResponder から継承)
IsNthForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) IsNthForward( SInt32 index , UInt32 id ) (SFYResponder から継承) IsNthForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダが前面から数えて指定された順番に位置するかどうかを判定します。
|
| Bool |
IsRoot( Void )
(SFYResponder から継承)
自レスポンダがルートレスポンダかどうかを判定します。
|
| SFCError |
RegisterHandler(
SFXEventRangeConstRef range
, SFYHandler::RuleRecConstRef rule
)
(SFYResponder から継承)
RegisterHandler( SFXEventRangeConstPtr range , SFYHandler::HandlerSPPConstPtr spp , VoidPtrConstPtr reference , SInt32 length ) (SFYResponder から継承) RegisterHandler( SFXEventRangeConstPtr range , SFYHandler::RuleRecConstPtr rule , SInt32 length ) (SFYResponder から継承) RegisterHandler( SFXEventRangeConstRef range , SFYHandler::HandlerSPP spp , VoidPtr reference ) (SFYResponder から継承) ハンドラを登録します。
|
| SFCError |
RegisterTracer(
SFXEventRangeConstRef range
, SFYTracer::RuleRecConstRef rule
)
(SFYResponder から継承)
RegisterTracer( SFXEventRangeConstPtr range , SFYTracer::OrderEnumConstPtr order , SFYTracer::StateEnumConstPtr state , BoolConstPtr overload , SInt32 length ) (SFYResponder から継承) RegisterTracer( SFXEventRangeConstPtr range , SFYTracer::RuleRecConstPtr rule , SInt32 length ) (SFYResponder から継承) RegisterTracer( SFXEventRangeConstRef range , SFYTracer::OrderEnum order , SFYTracer::StateEnum state , Bool overload ) (SFYResponder から継承) トレーサを登録します。
|
| SFCError |
Render(
Bool force = false
)
(SFYResponder から継承)
描画エンジンを起動して再描画します。
|
| Void |
SetBackgroundColor(
SFXRGBColorConstRef param
)
(SFYWidget から継承)
背景の色を設定します。
|
| Void |
SetBevelColor(
SFXBevelColorConstRef param
)
(SFYBoxControl から継承)
3D のボックスコントロールを描画するためのベベルカラーを設定します。
|
| Void |
SetCurrentValue(
SInt32 param
)
(SFYControl から継承)
コントロールの現在値を設定します。
|
| Void |
SetDistributer(
SFYDistributerPtr param
)
(SFYResponder から継承)
配信エンジンを設定します。
|
| Void |
SetFocusColor(
SFXRGBColorConstRef param
)
(SFYBoxControl から継承)
フォーカス状態にあるときの枠線の色を設定します。
|
| Void |
SetFrameColor(
SFXRGBColorConstRef param
)
(SFYBoxControl から継承)
外側の枠線の色を設定します。
|
| Void |
SetID(
UInt32 param
)
(SFYResponder から継承)
ID を設定します。
|
| Void |
SetMaximumValue(
SInt32 param
)
(SFYControl から継承)
コントロールの最大値を設定します。
|
| Void |
SetMinimumValue(
SInt32 param
)
(SFYControl から継承)
コントロールの最小値を設定します。
|
| Void |
SetOperateKey(
AVKType param
)
(SFYBoxControl から継承)
操作キーを設定します。
|
| SFCError |
SetParent(
SFYResponderSmpConstRef param
)
(SFYResponder から継承)
親レスポンダを設定します。
|
| Void |
SetProperty(
Bool transparent
)
(SFYResponder から継承)
属性をまとめて設定します。
|
| Void |
SetPropertyTransparent(
Bool param
)
(SFYResponder から継承)
透過属性を設定します。
|
| Void |
SetRealBound(
SFXRectangleConstRef param
)
(SFYResponder から継承)
実領域を設定します。
|
| Void |
SetReference(
VoidPtr param
)
(SFYResponder から継承)
リファレンス値を設定します。
|
| Void |
SetRenderer(
SFYRendererPtr param
)
(SFYResponder から継承)
描画エンジンを設定します。
|
| Void |
SetState(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(SFYResponder から継承)
状態をまとめて設定します。
|
| Void |
SetStateActive(
Bool param
)
(SFYResponder から継承)
活性状態を設定します。
|
| Void |
SetStateEnable(
Bool param
)
(SFYResponder から継承)
操作可能状態を設定します。
|
| Void |
SetStateFocus(
Bool param
)
(SFYResponder から継承)
フォーカス状態を設定します。
|
| Void |
SetStateVisible(
Bool param
)
(SFYResponder から継承)
可視状態を設定します。
|
| Void |
SetVirtualBound(
SFXRectangleConstRef param
)
(SFYResponder から継承)
仮想領域を設定します。
|
| Void |
Terminate( Void )
(SFYResponder から継承)
レスポンダの終了処理をします。
|
| Void |
ToBack( Void )
(SFYResponder から継承)
ToBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) ToBack( UInt32 id ) (SFYResponder から継承) ToBack( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダを姉妹レスポンダのなかで最背面に移動します。
|
| Void |
ToFront( Void )
(SFYResponder から継承)
ToFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) ToFront( UInt32 id ) (SFYResponder から継承) ToFront( Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダを姉妹レスポンダのなかで最前面に移動します。
|
| Void |
ToNthBackward(
SInt32 index
)
(SFYResponder から継承)
ToNthBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) ToNthBackward( SInt32 index , UInt32 id ) (SFYResponder から継承) ToNthBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダを背面から数えて指定された順番に移動します。
|
| Void |
ToNthForward(
SInt32 index
)
(SFYResponder から継承)
ToNthForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) ToNthForward( SInt32 index , UInt32 id ) (SFYResponder から継承) ToNthForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (SFYResponder から継承) 自レスポンダを前面から数えて指定された順番に移動します。
|
| Void |
UnregisterHandler(
SFXEventRangeConstRef range
, SFYHandler::RuleRecConstRef rule
)
(SFYResponder から継承)
UnregisterHandler( SFXEventRangeConstPtr range , SFYHandler::HandlerSPPConstPtr spp , VoidPtrConstPtr reference , SInt32 length ) (SFYResponder から継承) UnregisterHandler( SFXEventRangeConstPtr range , SFYHandler::RuleRecConstPtr rule , SInt32 length ) (SFYResponder から継承) UnregisterHandler( SFXEventRangeConstRef range , SFYHandler::HandlerSPP spp , VoidPtr reference ) (SFYResponder から継承) ハンドラの登録を解除します。
|
| Void |
UnregisterTracer(
SFXEventRangeConstRef range
)
(SFYResponder から継承)
UnregisterTracer( SFXEventRangeConstPtr range , SInt32 length ) (SFYResponder から継承) トレーサの登録を解除します。
|
| T const & |
static_catch(
Void
)
(static_exception から継承)
現在保持している例外を取得します。
|
| プロテクト関数 | |
|---|---|
| SFYMultipleEditWidgetSmpConstRef |
GetWidget( Void ) ウィジェットを取得します。
|
| Void |
HandleBoundOptimize(
SFXRectanglePtr rectangle
) 指定した矩形に収まる範囲内で最適なサイズを計算します。
|
| Void |
HandleBoundRequest(
SFXRectanglePtr rectangle
) 最適な矩形を計算します。
|
| Void |
HandleBoundVirtual( Void ) 仮想領域の変更処理を行います。
|
| Void |
HandleOperateKey( Void ) 操作キーが押されたときに実行される処理です。
|
| Bool |
HandlePageDownKey( Void ) PageDown キーが押されたときに実行される処理です。
|
| Bool |
HandlePageUpKey( Void ) PageUp キーが押されたときに実行される処理です。
|
| Void |
HandleRenderRequest(
SFXGraphicsPtr graphics
) レスポンダを描画します。
|
| Bool |
HandleScrollDownKey( Void ) ScrollDown キーが押されたときに実行される処理です。
|
| Bool |
HandleScrollUpKey( Void ) ScrollUp キーが押されたときに実行される処理です。
|
| Bool |
HandleSnapDownKey( Void ) SnapDown キーが押されたときに実行される処理です。
|
| Bool |
HandleSnapUpKey( Void ) SnapUp キーが押されたときに実行される処理です。
|
| Void |
DrawBox(
SFXGraphicsPtr graphics
, SFXRectangleConstRef rectangle
)
(SFYBoxControl から継承)
ボックスコントロールを描画します。
|
| static SFYResponderSmp |
Factory(
SFYResponderPtr responder
, SFCErrorPtr exception = null
)
(SFYResponder から継承)
NewInstance 関数の実装を補助します。
|
| static SFXMarginConstRef |
GetBoxMargin( Void )
(SFYBoxControl から継承)
ボックスコントロールのマージンの値を取得します。
|
| SFYResponderSmp |
GetThis( Void )
(SFYResponder から継承)
スマートポインタで保持された this を取得します。
|
| Void |
HandleBoundGlobal(
SFXRectangleConstRef rectangle
)
(SFYWidget から継承)
グローバル領域の変更処理を行います。
|
| Void |
HandleBoundReal( Void )
(SFYControl から継承)
実領域の変更処理を行います。
|
| Void |
SetType(
SFCType param
)
(SFYResponder から継承)
タイプを設定します。
|
| Void |
static_throw(
static_exception< T > const & param
)
(static_exception から継承)
static_throw( T const & param ) (static_exception から継承) 例外を設定します。
|
| Bool |
static_try(
Void
)
(static_exception から継承)
例外が保持されているかどうかを確かめます。
|
| 型 |
|---|
|
CodeEnum SFZMultipleEditBoxControl クラスを表す定数です。
|
|
DefaultEnum 各種パラメータのデフォルト値を表します。
|
|
HorizontalEnum 水平方向のアラインメントを表す定数です。
|
|
VerticalEnum 垂直方向のアラインメントを表す定数です。
|
[ protected, explicit ] SFZMultipleEditBoxControl(Void);
[ protected, virtual ] virtual ~SFZMultipleEditBoxControl(Void);
[ public, const ] AEEFont GetFont(Void);
[ public, const ] HorizontalEnum GetHorizontalAlign(Void);
水平アラインメントの値。
[ public, const ] AEETextInputMode GetInputMode(Void);
テキスト入力モード。
[ public, const ] UInt16 GetMaximumLength(Void);
[ public, const ] AVKType GetPageDownKey(Void);
仮想領域を下方向に1ページ分スクロールするキー。
[ public, const ] AVKType GetPageUpKey(Void);
仮想領域を上方向に1ページ分スクロールするキー。
[ public, const ] Bool GetPasswordMode(Void);
[ public, const ] AEECLSID GetSFBMenuCtlClassID(Void);
[ public, const ] AEECLSID GetSFBTextCtlClassID(Void);
[ public, const ] AVKType GetScrollDownKey(Void);
仮想領域を下方向にスクロールするキー。
[ public, const ] SInt16 GetScrollStep(Void);
[ public, const ] AVKType GetScrollUpKey(Void);
仮想領域を上方向にスクロールするキー。
[ public, const ] AVKType GetSnapDownKey(Void);
仮想領域を下端までスクロールするキー。
[ public, const ] AVKType GetSnapUpKey(Void);
仮想領域を上端までスクロールするキー。
[ public, const ] SFXWideStringConstRef GetText(Void);
[ public, const ] SFXRGBColorConstRef GetTextColor(Void);
[ public, const ] VerticalEnum GetVerticalAlign(Void);
垂直アラインメントの値。
[ protected, const ] SFYMultipleEditWidgetSmpConstRef GetWidget(Void);
エディットボックスコントロールのウィジェット。
![]() |
ウィジェットとは |
|---|---|
|
ウィジェットはコントロールなどが内部的に利用するレスポンダです。イベントに直接反応せず、描画機能だけが実装されています。 ただし、イベントへの応答や各種パラメータの設定のための API が用意されており、 ウィジェットを利用するコントロールなどがイベントに応答してこれらの API を呼び出します。 ウィジェットは同じ機能のコンポーネント化を目指して作成されています。 たとえば、ボタンコントロールとラベルコントロールでスクロールするテキストを実際に描画しているのは、 これらのコントロールが保持している SFYSingleTextWidget です。 このように、スクロールするテキストなど基本的な機能を提供するのがウィジェットであり、 新しいコントロールを作成する場合などに適宜ウィジェットを子レスポンダとして 用いれば複雑な処理を記述せずに簡単に実装することができます。 | |
[ protected, virtual, const ] Void HandleBoundOptimize( SFXRectanglePtr rectangle // 矩形 );
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) イベントを受信したときに呼び出される関数です。
指定した矩形に収まる範囲内で最適なサイズを計算します。
[ protected, virtual, const ] Void HandleBoundRequest( SFXRectanglePtr rectangle // 計算された座標 );
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) イベントを受信したときに呼び出される関数です。
レスポンダに最適な大きさの矩形を計算して返したい場合は、この関数をオーバーライドします。
デフォルトの実装は、テキストの大きさを最適な矩形とします。
[ protected, virtual ] Void HandleBoundVirtual(Void);
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) イベントを受信したときに呼び出される関数です。
仮想領域の変更時に追加の処理を行いたい場合は、この関数をオーバーライドします。
デフォルトの実装は、テキストを仮想領域の中央に再配置します。
![]() |
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) イベントの送信 |
|---|---|
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) イベントは SFYResponder::SetRealBound または SFYResponder::SetVirtualBound 関数を呼び出したときなどに発生します。 | |
![]() |
仮想領域の変更処理 |
|---|---|
|
この仮想関数をオーバーライドする以外に、 領域イベント専用ハンドラ[XANDLER_DECLARE_VOIDBOUND]を定義・実装し レスポンダに登録して行うことも可能です。 仮想領域の変更処理は、最初に仮想関数を実行し、次に領域イベント専用ハンドラを登録した順に実行して行われます。 領域イベント専用ハンドラを宣言し登録する手間が省けるので、通常はこの仮想関数をオーバーライドだけして仮想領域の変更処理を行います。 | |
SFYResponder::SetRealBound | SFYResponder::SetVirtualBound | 領域イベント(SFEVT_RESPONDER_BOUND) | 領域イベント専用ハンドラ[XANDLER_DECLARE_VOIDBOUND]
[ protected, virtual ] Void HandleOperateKey(Void);
SFEVT_KEY イベントを受信し、SetOperateKey 関数で設定した操作キーと一致したときに呼び出される関数です。
独自のキーイベント処理を行いたい場合は、この関数をオーバーライドします。
デフォルトの実装は、テキストのスクロール位置を初期化します。
[ protected, virtual ] Bool HandlePageDownKey(Void);
この関数は、SFZMultipleEditBoxControl::SetPageDownKey 関数によって設定された PageDown キーを受信したときに呼び出されます。
開発者は、独自の処理のためにこの関数をオーバーライドできます。
デフォルトの実装では、SFZMultipleEditBoxControl::PageDown 関数を呼び出して、仮想領域を下方向に1ページスクロールします。
[ protected, virtual ] Bool HandlePageUpKey(Void);
この関数は、SFZMultipleEditBoxControl::SetPageUpKey 関数によって設定された PageUp キーを受信したときに呼び出されます。
開発者は、独自の処理のためにこの関数をオーバーライドできます。
デフォルトの実装では、SFZMultipleEditBoxControl::PageUp 関数を呼び出して、仮想領域を上方向に1ページスクロールします。
[ protected, virtual, const ] Void HandleRenderRequest( SFXGraphicsPtr graphics // グラフィックスオブジェクト );
(SFEVT_RESPONDER_RENDER, SFP16_RENDER_REQUEST) イベントを受信したときに呼び出される関数です。
独自の描画処理を行いたい場合は、この関数をオーバーライドします。
デフォルトの実装は、エディットボックスコントロールを描画します。
![]() |
描画処理の方法 |
|---|---|
|
この仮想関数をオーバーライドする以外に、 描画イベント専用ハンドラ[XANDLER_DECLARE_VOIDRENDER]を定義・実装し レスポンダに登録して行うことも可能です。 描画処理は、最初に仮想関数を実行し、次に描画イベント専用ハンドラを登録した順に実行して行われます。 描画イベント専用ハンドラを宣言し登録する手間が省けるので、通常はこの仮想関数をオーバーライドだけして描画を行います。 | |
![]() |
描画処理の手順 |
|---|---|
|
描画ハンドラは描画イベント(SFEVT_RESPONDER_RENDER)の発生によって起動されます。 そして実際の描画は描画ハンドラによって行われます。 描画イベント(SFEVT_RESPONDER_RENDER)自体は、 SFYResponder::Render 関数によって描画エンジンが起動してから 描画エンジンが登録された再描画領域のなかから再描画が必要な領域を含むレスポンダだけに SFYResponder::InvokeBackward 関数を使って送信します。 なお、SFYResponder::Render 関数は イベントループの最後で自動的に呼び出されるか、 コールバックなどの処理なかから明示的に呼び出されるかのどちらかです。 また、SFYResponder::Render 関数の引数を true にして呼び出すと、 再描画領域の登録に関係無くレスポンダツリーの自レスポンダ以下の枝部分で実際に携帯電話の画面に描画されるすべてのレスポンダに描画イベントが送信されます。 | |
SFYResponder::Invalidate | SFYResponder::Render | SFYResponder::InvokeBackward | 描画イベント(SFEVT_RESPONDER_RENDER) | 描画イベント専用ハンドラ[XANDLER_DECLARE_VOIDRENDER] | 描画処理
[ protected, virtual ] Bool HandleScrollDownKey(Void);
この関数は、SFZMultipleEditBoxControl::SetScrollDownKey 関数によって設定された ScrollDown キーを受信したときに呼び出されます。
開発者は、独自の処理のためにこの関数をオーバーライドできます。
デフォルトの実装では、SFZMultipleEditBoxControl::ScrollDown 関数を呼び出して、仮想領域を下方向にスクロールします。
[ protected, virtual ] Bool HandleScrollUpKey(Void);
この関数は、SFZMultipleEditBoxControl::SetScrollUpKey 関数によって設定された ScrollUp キーを受信したときに呼び出されます。
開発者は、独自の処理のためにこの関数をオーバーライドできます。
デフォルトの実装では、SFZMultipleEditBoxControl::ScrollUp 関数を呼び出して、仮想領域を上方向にスクロールします。
[ protected, virtual