• R/O
  • SSH
  • HTTPS

dxruby: Commit


Commit MetaInfo

Revision448 (tree)
Time2014-04-27 20:36:19
Authormirichi

Log Message

いらないメソッドの削除

Change Summary

Incremental Difference

--- branches/1.5dev/input.c (revision 447)
+++ branches/1.5dev/input.c (revision 448)
@@ -1689,16 +1689,6 @@
16891689
16901690
16911691 /*--------------------------------------------------------------------
1692- IME位置設定
1693- ---------------------------------------------------------------------*/
1694-static VALUE Input_IME_setcursor( VALUE obj, VALUE vx, VALUE vy )
1695-{
1696- SetImeCursor( NUM2INT( vx ), NUM2INT( vy ) );
1697- return Qnil;
1698-}
1699-
1700-
1701-/*--------------------------------------------------------------------
17021692 IMEのenable
17031693 ---------------------------------------------------------------------*/
17041694 static VALUE Input_IME_setenable( VALUE obj, VALUE vflag )
@@ -1718,17 +1708,6 @@
17181708
17191709
17201710 /*--------------------------------------------------------------------
1721- IMEのフォント設定
1722- ---------------------------------------------------------------------*/
1723-static VALUE Input_IME_setfont( VALUE obj, VALUE vfont )
1724-{
1725- DXRUBY_CHECK_TYPE( Font, vfont );
1726- SetImeFont( vfont );
1727- return vfont;
1728-}
1729-
1730-
1731-/*--------------------------------------------------------------------
17321711 IMEの状態取得
17331712 ---------------------------------------------------------------------*/
17341713 static VALUE Input_IME_getcompositing( VALUE obj )
@@ -2415,12 +2394,8 @@
24152394 /* Input::IMEモジュールにメソッド登録 */
24162395 rb_define_singleton_method( mIME, "get_string" , Input_IME_getstring , 0 );
24172396 rb_define_singleton_method( mIME, "getString" , Input_IME_getstring , 0 );
2418- rb_define_singleton_method( mIME, "set_cursor" , Input_IME_setcursor , 2 );
2419- rb_define_singleton_method( mIME, "setCursor" , Input_IME_setcursor , 2 );
24202397 rb_define_singleton_method( mIME, "enabled?" , Input_IME_getenable , 0 );
24212398 rb_define_singleton_method( mIME, "enable=" , Input_IME_setenable , 1 );
2422- rb_define_singleton_method( mIME, "set_font" , Input_IME_setfont , 1 );
2423- rb_define_singleton_method( mIME, "setFont" , Input_IME_setfont , 1 );
24242399 rb_define_singleton_method( mIME, "compositing?" , Input_IME_getcompositing , 0 );
24252400 rb_define_singleton_method( mIME, "push_keys", Input_IME_getpushkeys , 0 );
24262401 rb_define_singleton_method( mIME, "pushKeys" , Input_IME_getpushkeys , 0 );
@@ -2427,6 +2402,7 @@
24272402 rb_define_singleton_method( mIME, "release_keys", Input_IME_getreleasekeys , 0 );
24282403 rb_define_singleton_method( mIME, "releaseKeys" , Input_IME_getreleasekeys , 0 );
24292404 rb_define_singleton_method( mIME, "get_comp_info" , Input_IME_getcompositioninfo , 0 );
2405+ rb_define_singleton_method( mIME, "getCompInfo" , Input_IME_getcompositioninfo , 0 );
24302406
24312407 rb_define_const( mIME, "ATTR_INPUT" , INT2FIX(ATTR_INPUT) );
24322408 rb_define_const( mIME, "ATTR_TARGET_CONVERTED" , INT2FIX(ATTR_TARGET_CONVERTED) );
--- branches/1.5dev/messagethread.c (revision 447)
+++ branches/1.5dev/messagethread.c (revision 448)
@@ -554,22 +554,6 @@
554554 SetCursor( LoadCursor( NULL, (LPSTR)lParam ));
555555 return 0;
556556
557- case WM_APP + 5:
558- {/* IMEのカーソル位置設定 */
559- COMPOSITIONFORM com = {0};
560- HIMC hIMC;
561-
562- hIMC = ImmGetContext( g_hWnd );
563-
564- com.dwStyle = CFS_POINT;
565- com.ptCurrentPos.x = (int)wParam;
566- com.ptCurrentPos.y = (int)lParam;
567- ImmSetCompositionWindow( hIMC, &com );
568-
569- ImmReleaseContext( g_hWnd, hIMC );
570- return 0;
571- }
572-
573557 case WM_APP + 6:
574558 /* IMEの有効化/無効化 */
575559 WINNLSEnableIME( g_hWnd, (int)lParam );
@@ -579,16 +563,6 @@
579563 /* IMEの状態を返す */
580564 return WINNLSGetEnableStatus( g_hWnd );
581565
582- case WM_APP + 8:
583- /* IMEのフォント設定 */
584- {
585- HIMC hIMC;
586-
587- hIMC = ImmGetContext( g_hWnd );
588- ImmSetCompositionFont( hIMC, (LOGFONT*)lParam );
589- ImmReleaseContext( g_hWnd, hIMC );
590- return 0;
591- }
592566 case WM_APP + 9:
593567 /* IMEの変換中情報取得 */
594568 {
@@ -1052,11 +1026,6 @@
10521026 SendMessage( g_hWnd, WM_APP + 4, 0, cursorname );
10531027 }
10541028
1055-void SetImeCursor( int x, int y )
1056-{
1057- SendMessage( g_hWnd, WM_APP + 5, x, y );
1058-}
1059-
10601029 void SetImeEnable( int flag )
10611030 {
10621031 SendMessage( g_hWnd, WM_APP + 6, 0, flag );
@@ -1067,13 +1036,6 @@
10671036 return SendMessage( g_hWnd, WM_APP + 7, 0, 0 );
10681037 }
10691038
1070-void SetImeFont( VALUE vfont )
1071-{
1072- LOGFONT logfont;
1073- GetObject(DXRUBY_GET_STRUCT( Font, vfont )->hFont, sizeof(LOGFONT), &logfont);
1074- SendMessage( g_hWnd, WM_APP + 8, 0, (LPARAM)&logfont );
1075-}
1076-
10771039 int UpdateCompositionString( void )
10781040 {
10791041 return SendMessage( g_hWnd, WM_APP + 9, 0, 0 );
--- branches/1.5dev/messagethread.h (revision 447)
+++ branches/1.5dev/messagethread.h (revision 448)
@@ -6,10 +6,8 @@
66 void ShowCursorMessage( void );
77 void HideCursorMessage( void );
88 void SetCursorMessage( int cursorname );
9-void SetImeCursor( int x, int y );
109 void SetImeEnable( int flag );
1110 int GetImeEnable( void );
12-void SetImeFont( VALUE vfont );
1311 int UpdateCompositionString( void );
1412
1513 enum DXRubyErrorMessage
Show on old repository browser