⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdk-unused.sgml

📁 This GTK+ version 2.12.3. GTK+ is a multi-platform toolkit for creating graphical user interfaces.
💻 SGML
📖 第 1 页 / 共 2 页
字号:
<!-- ##### SECTION ./tmpl/color_contexts.sgml:Long_Description ##### --><para>The #GdkColorContext type is used for allocating groups of colors.</para><para>It is now deprecated in favor of the gdk_colormap_*() functions described inthe <link linkend="gdk-Colormaps-and-Colors">Colormaps and Colors</link>section.</para><!-- ##### SECTION ./tmpl/color_contexts.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/color_contexts.sgml:Short_Description ##### -->routines for allocating colors (deprecated).<!-- ##### SECTION ./tmpl/color_contexts.sgml:Title ##### -->Color Contexts<!-- ##### SECTION ./tmpl/input_contexts.sgml:Long_Description ##### --><para>A #GdkIC input context is used for each user interface element which supportsinternationalized text input. See the<link linkend="gdk-Input-Methods">Input Methods</link> section for an overviewof how internationalized text input works in GTK+.</para><!-- ##### SECTION ./tmpl/input_contexts.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/input_contexts.sgml:Short_Description ##### -->internationalized text input properties.<!-- ##### SECTION ./tmpl/input_contexts.sgml:Title ##### -->Input Contexts<!-- ##### SECTION ./tmpl/input_methods.sgml:Long_Description ##### --><para>Input Methods provide a way for complex character sets to be used in GTK+.Languages such as Chinese, Japanese, and Korean (often abbreviated to CJK)use a large number of ideographs, making it impossible to support allcharacters with a simple keyboard. Instead, text is usually<emphasis>pre-edited</emphasis> using a phonetic alphabet and then<emphasis>composed</emphasis> to form the ideographs.</para><para>GTK+ makes use of the input method mechanism provided by the X Windowsplatform. When a GTK+ application is started, it opens a connection to theinput method appropriate for the current locale (if any). </para><para>Widgets which handle textual input, such as #GtkEntry, need to do a number ofthings to support internationalized text input:<variablelist><varlistentry><term>When the widget is realized:</term><listitem><para>Check if an input method is being used with gdk_im_ready().If it is, create a new <link linkend="gdk-Input-Contexts">Input Context</link>using gdk_ic_new(). Find out which events the<link linkend="gdk-Input-Contexts">Input Context</link> needs to receivewith gdk_ic_get_events(), and make sure that the widget's window receivesthese events using gdk_window_set_events().</para></listitem></varlistentry><varlistentry><term>When the widget's size, state or cursor position changes:</term><listitem><para>Update the appropriate<link linkend="gdk-Input-Contexts">Input Context</link> attributesusing gdk_ic_set_attr().</para></listitem></varlistentry><varlistentry><term>When the keyboard focus enters or leaves the widget:</term><listitem><para>Call gdk_im_begin() or gdk_im_end() to start or finish editing the text.</para></listitem></varlistentry><varlistentry><term>When the widget receives a key_press event:</term><listitem><para>The <structfield>string</structfield> and <structfield>length</structfield>fields of the #GdkEventKey struct should be used to insert the composed textinto the widget.</para></listitem></varlistentry><varlistentry><term>When the widget is unrealized:</term><listitem><para>Destroy the <link linkend="gdk-Input-Contexts">Input Context</link>.</para></listitem></varlistentry></variablelist></para><para>See the XLib reference manual for more detailed information on input methods,and the #GtkEntry and #GtkText widgets for some example code.</para><!-- ##### SECTION ./tmpl/input_methods.sgml:See_Also ##### --><para><variablelist><varlistentry><term><link linkend="gdk-Input-Contexts">Input Contexts</link></term><listitem><para>Used for each widget that handles internationalized text input using theglobal input method.</para></listitem></varlistentry></variablelist></para><!-- ##### SECTION ./tmpl/input_methods.sgml:Short_Description ##### -->support for internationalized text input.<!-- ##### SECTION ./tmpl/input_methods.sgml:Title ##### -->Input Methods<!-- ##### MACRO GDK_CORE_POINTER ##### --><para>This macro contains an integer value representingthe device ID for the core pointer device.</para><!-- ##### MACRO GDK_GC_X11 ##### --><para></para>@object: <!-- ##### MACRO GDK_GC_X11_GET_CLASS ##### --><para></para>@obj: <!-- ##### MACRO GDK_WINDOWING_FB ##### --><para>This macro is defined if GDK is configured to use the Linux framebuffer backend.</para><!-- ##### MACRO GDK_WINDOWING_NANOX ##### --><para></para><!-- ##### STRUCT GdkColorContext ##### --><para></para>@visual: @colormap: @num_colors: @max_colors: @num_allocated: @mode: @need_to_free_colormap: @std_cmap_atom: @clut: @cmap: @color_hash: @palette: @num_palette: @fast_dither: <!-- ##### STRUCT GdkColorContextDither ##### --><para></para>@fast_rgb: @fast_err: @fast_erg: @fast_erb: <!-- ##### ENUM GdkColorContextMode ##### --><para></para>@GDK_CC_MODE_UNDEFINED: @GDK_CC_MODE_BW: @GDK_CC_MODE_STD_CMAP: @GDK_CC_MODE_TRUE: @GDK_CC_MODE_MY_GRAY: @GDK_CC_MODE_PALETTE: <!-- ##### STRUCT GdkDeviceClass ##### --><para></para><!-- ##### STRUCT GdkDeviceInfo ##### --><para>The #GdkDeviceInfo structure contains information about a device. It has the following fields:</para>@deviceid: a unique integer ID for this device.@name: the human-readable name for the device.@source: the type of device.@mode: a value indicating whether the device is enabled and       how the device coordinates map to the screen.@has_cursor: if %TRUE, a cursor will be displayed indicating              the current on-screen location to the user. Otherwise,             the application is responsible for drawing a cursor              itself.@num_axes: the number of axes for this device.@axes: a pointer to an array of GdkAxisUse values which       give the mapping of axes onto the possible valuators       for a GDK device.@num_keys: the number of macro buttons.@keys: a pointer to an array of #GdkDeviceKey structures         which describe what key press events are generated       for each macro button.<!-- ##### STRUCT GdkDrawableClass ##### --><para></para><!-- ##### STRUCT GdkGCClass ##### --><para></para><!-- ##### STRUCT GdkIC ##### --><para>The #GdkIC struct is an opaque structure representing an input contextfor use with the global <link linkend="gdk-Input-Methods">Input Method</link>.</para><!-- ##### STRUCT GdkICAttr ##### --><para>The #GdkICAttr struct is used when getting and setting attributes of theinput context. It is used together with a #GdkICAttributesType mask whichspecifies which of the fields are being set or returned.</para>@style: the pre-edit and status style. This attribute is required whencreating the #GdkIC, and cannot be changed.@client_window: the #GdkWindow in which the input method will display itspre-edit and status areas or create subwindows.The preedit_area and status_area attributes are specified relative to thiswindow. This attribute is required when creating the #GdkIC, and cannot bechanged.@focus_window: the #GdkWindow which is to be used when editing text.gdk_im_begin() sets this attribute before starting the text input process,so it is normally not necessary to set it elsewhere.@filter_events: the mask of events that the input method requires.See the gdk_ic_get_events() function. This attribute is read-only and isnever changed.@spot_location: the position of the insertion cursor, for use with the%GDK_IM_PREEDIT_POSITION style. The y coordinate specifies the baseline ofthe text.@line_spacing: the line spacing to be used in the pre-edit and status areaswhen displaying multi-line text.@cursor: the cursor to use in the input method's windows.If this attribute isn't set it is determined by the input method.@preedit_fontset: the font to use for the pre-edit area.If this attribute isn't set it is determined by the input method.@preedit_area: the area in which the input method will display pre-editingdata, used for the %GDK_IM_PREEDIT_POSITION and %GDK_IM_PREEDIT_AREA styles.@preedit_area_needed: the area that the input method requests for displayingpre-editing data, used for the %GDK_IM_PREEDIT_POSITION and%GDK_IM_PREEDIT_AREA styles.@preedit_foreground: the foreground color to use for the pre-edit area.This color must already be allocated in the preedit_colormap.If this attribute isn't set it is determined by the input method.@preedit_background: the background color to use for the pre-edit area.This color must already be allocated in the preedit_colormap.If this attribute isn't set it is determined by the input method.@preedit_pixmap: the background pixmap to use for the pre-edit area.If this attribute isn't set it is determined by the input method.@preedit_colormap: the colormap the input method should use to allocate colors.The default value is the colormap of client_window.@status_fontset: the font to use for the status area.If this attribute isn't set it is determined by the input method.@status_area: the are that the input method will display status information in.This is used for the %GDK_IM_STATUS_AREA style.@status_area_needed: the size that the input method requests for displayingstatus information, for the %GDK_IM_STATUS_AREA style.@status_foreground: the foreground color to use for the status area.This color must already be allocated in the status_colormap.If this attribute isn't set it is determined by the input method.@status_background: the background color to use for the status area.This color must already be allocated in the status_colormap.If this attribute isn't set it is determined by the input method.@status_pixmap: the background pixmap to use for the status area.If this attribute isn't set it is determined by the input method.@status_colormap: the colormap the input method should use to allocate colors.The default value is the colormap of client_window.<!-- ##### ENUM GdkICAttributesType ##### --><para>The #GdkICAttributesType contains a set of bit-flags which are used tospecify which of the attributes in a #GdkICAttr are being set or returned.</para><para>It also contains several combinations of the flags which specify requiredattributes for the various styles:<variablelist><varlistentry><term>%GDK_IC_ALL_REQ:</term><listitem><para>the set of attributes required for all styles.</para></listitem></varlistentry><varlistentry><term>%GDK_IC_PREEDIT_AREA_REQ:</term><listitem><para>the set of additional attributes required for the%GDK_IM_PREEDIT_AREA pre-edit style.</para></listitem></varlistentry><varlistentry><term>%GDK_IC_PREEDIT_POSITION_REQ:</term><listitem><para>the set of additional attributes required for the%GDK_IM_PREEDIT_POSITION pre-edit style.</para></listitem></varlistentry><varlistentry><term>%GDK_IC_STATUS_AREA_REQ:</term><listitem><para>the set of additional attributes required for the%GDK_IM_STATUS_AREA status style.</para></listitem></varlistentry></variablelist></para>@GDK_IC_STYLE: @GDK_IC_CLIENT_WINDOW: @GDK_IC_FOCUS_WINDOW: @GDK_IC_FILTER_EVENTS: @GDK_IC_SPOT_LOCATION: @GDK_IC_LINE_SPACING: @GDK_IC_CURSOR: @GDK_IC_PREEDIT_FONTSET: @GDK_IC_PREEDIT_AREA: @GDK_IC_PREEDIT_AREA_NEEDED: @GDK_IC_PREEDIT_FOREGROUND: @GDK_IC_PREEDIT_BACKGROUND: @GDK_IC_PREEDIT_PIXMAP: @GDK_IC_PREEDIT_COLORMAP: @GDK_IC_STATUS_FONTSET: @GDK_IC_STATUS_AREA: @GDK_IC_STATUS_AREA_NEEDED: @GDK_IC_STATUS_FOREGROUND: @GDK_IC_STATUS_BACKGROUND: @GDK_IC_STATUS_PIXMAP: @GDK_IC_STATUS_COLORMAP: @GDK_IC_ALL_REQ: @GDK_IC_PREEDIT_AREA_REQ: @GDK_IC_PREEDIT_POSITION_REQ: @GDK_IC_STATUS_AREA_REQ: <!-- ##### ENUM GdkIMStyle ##### --><para>A set of bit-flags used to specify the input method styles which are supportedor which are currently in use. The flags can be divided into 2 groups, thepre-edit flags and the status flags.</para><para>The pre-edit flags specify how pre-editing data is displayed.For example, this could display the text being typed in the phoneticalphabet before it is composed and inserted as an ideograph.</para><para>The status flags specify how status information is displayed.The status information can be thought of as an extension of thestandard keyboard mode indicators, such as the Caps Lock indicator.</para><note><para>The %GDK_IM_PREEDIT_CALLBACKS and %GDK_IM_STATUS_CALLBACKS styles are not currently supported in GTK+.</para></note>@GDK_IM_PREEDIT_AREA: The application provides the input method with an areain which to perform <emphasis>off-the-spot</emphasis> pre-editing.@GDK_IM_PREEDIT_CALLBACKS: The application registers a number of callbackfunctions which are used to display pre-editing data.@GDK_IM_PREEDIT_POSITION: The application provides the input method with theposition of the insertion cursor, for <emphasis>over-the-spot</emphasis>pre-editing. The input method creates its own window over the widget todisplay the pre-editing data.@GDK_IM_PREEDIT_NOTHING: The input method uses the root X window to performpre-editing, so the application does not need to do anything.@GDK_IM_PREEDIT_NONE: No pre-editing is done by the input method, or nopre-editing data needs to be displayed.@GDK_IM_PREEDIT_MASK: A bit-mask containing all the pre-edit flags.@GDK_IM_STATUS_AREA: The application provides the input method with an areain which to display status information.@GDK_IM_STATUS_CALLBACKS: The applications registers a number of callbackfunctions which are used to display status information.@GDK_IM_STATUS_NOTHING: The input method uses the root X window to displaystatus information, so the application does not need to do anything.@GDK_IM_STATUS_NONE: The input method does not display status information.@GDK_IM_STATUS_MASK: A bit-mask containing all the status flags.<!-- ##### STRUCT GdkKeyInfo ##### --><para></para>@keycode: @group: @level: <!-- ##### STRUCT GdkKeymapClass ##### --><para></para><!-- ##### ENUM GdkPixbufAlphaMode ##### --><para></para>@GDK_PIXBUF_ALPHA_BILEVEL: @GDK_PIXBUF_ALPHA_FULL: <!-- ##### FUNCTION gdk_color_context_add_palette ##### --><para></para>@cc: @palette: @num_palette: @Returns: <!-- ##### FUNCTION gdk_color_context_free ##### --><para></para>@cc: <!-- ##### FUNCTION gdk_color_context_free_dither ##### --><para></para>@cc: <!-- ##### FUNCTION gdk_color_context_get_index_from_palette ##### --><para>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -