[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::Window

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2005年 3月 17日 (木) 22:11:16 JST


-------------------------
REMOTE_ADDR = 218.114.126.13
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki        URL = http://ruby-gnome2.sourceforge.jp/cgi-bin/hiki/ja/hiki.cgi?Gtk%3A%3AWindow
-------------------------
@@ -186,23 +186,22 @@
     * 戻り値:現在フォーカスされているウィジェット
 
 --- focus=(focus)
-    If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If focus is nil, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use Gtk::Widget#grab_focus instead of this method.
-    * focus: Gtk::Widget to be the new focus widget, or nil to unset any focus widget for the toplevel window. 
-    * Returns: focus
+    focusが現在のフォーカスウィジェットではなく、フォーカス可能であればウィンドウに対してフォーカスウィジェットを設定します。focusがnilならばフォーカスウィジェットを設定しません。トップレベルでの特殊なウィジェットへのフォーカスの設定は、通常このメソッドの代わりにGtk::Widget#grab_focusを使用した方がより便利です。
+    * focus:新しくフォーカスウィジェットにするGtk::Widget。トップレベルウィンドウに対するフォーカスウィジェットを解除する場合にはnil
+    * 戻り値:focus
 --- set_focus(focus)
-    Same as focus=.
-    * focus: Gtk::Widget to be the new focus widget, or nil to unset any focus widget for the toplevel window. 
-    * Returns: self
+    focus=と同様のものです。
+    * focus:新しくフォーカスウィジェットにするGtk::Widget。トップレベルウィンドウに対するフォーカスウィジェットを解除する場合にはnil
+    * 戻り値:self
 
 --- default=(default_widget)
-    The default widget is the widget that's activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget for a Gtk::Window about. When setting (rather than unsetting) the default widget it's generally easier to call Gtk::Widget#grab_focus on the widget. Before making a widget the default widget, you must set the Gtk::Widget::CAN_DEFAULT flag on the widget you'd like to make the default using Gtk::Widget#flags=.
-    * default_widget : widget to be the default, or nil to unset the default widget for the toplevel. 
-    * Returns: default_widget
-
+    デフォルトウィジェットとは、ダイアログでユーザーがEnterを押した際にアクティブになるようなウィジェットのことです。このメソッドはGtk::Windowについてデフォルトウィジェットの設定や解除を行います。デフォルトウィジェットを設定する(というよりむしろ解除する)ときは普通ウィジェットでGtk::Widget#grab_focusを呼ぶ方が簡単です。ウィジェットをデフォルトウィジェットとする前に、Gtk::Widget#flags=を用いてウィジェットにGtk::Widget::CAN_DEFAULTフラグを設定しなければなりません。
+    * default_widget:デフォルトにするウィジェット。トップレベルに対するデフォルトウィジェットを解除する場合にはnil
+    * 戻り値:default_widget
 --- set_default(default_widget)
-    Same as default=.
-    * default_widget : widget to be the default, or nil to unset the default widget for the toplevel. 
-    * Returns: self
+    default=と同様のものです。
+    * default_widget:デフォルトにするウィジェット。トップレベルに対するデフォルトウィジェットを解除する場合にはnil
+    * 戻り値:self
 
 --- present
     Presents a window to the user. This may mean raising the window in the stacking order, deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus, possibly dependent on the user's platform, window manager, and preferences.





ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index