GDK Reference ManualReturns : a bit-mask of all the styles allowed.
Starts editing, using the given input context and GdkWindow. This should be called when the widget receives the input focus, typically in the widget's focus_in_event method. ic : a GdkIC. window : the GdkWindow which will be receiving the key press events.
Stops editing using the input method. This should be called when the widget loses the input focus, typically in the widget's focus_out_event method. See Also Input Contexts Used for each widget that handles internationalized text input using the global input method. Input Contexts Name Input Contexts -- internationalized text input properties. Synopsis
Description A GdkIC input context is used for each user interface element which supports internationalized text input. See the Input Methods section for an overview of how internationalized text input works in GTK+. Details struct GdkIC struct GdkIC; The GdkIC struct is an opaque structure representing an input context for use with the global Input Method.
Creates a new GdkIC using the given attributes. attr : a GdkICAttr struct containing attributes to use for the input context. mask : a GdkICAttributesType mask specifying which of the attributes in attr are set. Returns : a new GdkIC.
Destroys the input context. ic : a GdkIC.
Returns the mask of events that the input method needs to function properly. This is typically called in a widget's realize method after creating the GdkIC. The returned event mask is then combined with the widget's own event mask and applied using gdk_window_set_events(). ic : a GdkIC. Returns : the mask of events that the input method needs to function properly.
Returns the pre-edit and status style of the GdkIC. ic : a GdkIC. Returns : the pre-edit and status style of the GdkIC.
Gets attributes of a GdkIC. ic : a GdkIC. attr : a GdkICAttr struct to contain the returned attributes. mask : a GdkICAttributesType mask specifying which attributes to get. Returns : a GdkICAttributesType mask specifying which of the attributes were not retrieved succesfully.
Sets attributes of the GdkIC. Note that the GDK_IC_STYLE and GDK_IC_CLIENT_WINDOW attributes can only be set when creating the GdkIC, and the GDK_IC_FILTER_EVENTS attribute is read-only. ic : a GdkIC. attr : a GdkICAttr struct containing attributes to use for the input context. 上一篇:GTK v1.2 Tutorial(英文) 下一篇:Java入门(12) 事件与错误处理 更多相关文章
|
推荐文章
精彩文章
|