📄 xim.txt
字号:
following reasons: the argument name is not recognized, or the input methodencountered an input method implementation dependent error.3.3. IC Values ArgumentsThe following tables describe how IC values are interpreted by an input methoddepending on the input style chosen by the user.The first column lists the IC values. The second column indicates which valuesare involved in affecting, negotiating and setting the geometry of the inputmethod windows. The sub-entries under the third column indicate the differentinput styles supported. Each of these columns indicates how each of the ICvalues are treated by that input style. 16XIM Public Review Draft___________________________________________________________________________________________| || ||__________________________________________________|| || Geometry ||PreEdit | PreEdit | PreEdit | PreEdit | PreEdit || IC Value ||Management ||Callback | Position | Area | Nothing | None |______________________________________________________________________________________||Input Style || || C-G | C-G | C-G | C-G | C-G ||Client Window || || O-G | O-G | O-G | ignored | ignored ||Focus Window || GN || D-S-G | D-S-G | D-S-G | D-S-G | ignored ||Resource Name || ||ignored | D-S-G | D-S-G | D-S-G | ignored ||Resource Class || ||ignored | D-S-G | D-S-G | D-S-G | ignored ||Geometry Callback || ||ignored | ignored | D-S-G | ignored | ignored |______________________________________________________________________________________||PreEdit || || | | | | ||- Area || GS ||ignored | D-S-G | D-S-G | ignored | ignored ||- AreaNeeded || GN-GR ||ignored | ignored | S-G | ignored | ignored ||- SpotLocation || ||ignored | C-S-G | ignored | ignored | ignored ||- Colormap || ||ignored | D-S-G | D-S-G | D-S-G | ignored ||- Fg/Bg || ||ignored | D-S-G | D-S-G | D-S-G | ignored ||- Bg Pixmap || ||ignored | D-S-G | D-S-G | D-S-G | ignored ||- FontSet || GN ||ignored | C-S-G | C-S-G | D-S-G | ignored ||- LineSpacing || GN ||ignored | D-S-G | D-S-G | D-S-G | ignored ||- Cursor || ||ignored | D-S-G | D-S-G | D-S-G | ignored ||- PreEdit Callbacks || || C-S-G | ignored | ignored | ignored | ignored ||____________________||___________||_________|__________|_________|_________|_________| __________________________________________________________________________ | || || Input Style | | || ||_______________________________________| | IC Value || Geometry || Status | Status | Status | Status | __________________________________________________________________________| |Input Style || || C-G | C-G | C-G | C-G | |Client Window || || O-G | O-G | O-G | ignored | |Focus Window || GN || D-S-G | D-S-G | D-S-G | ignored | |Resource Name || ||ignored | D-S-G | D-S-G | ignored | |Resource Class || ||ignored | D-S-G | D-S-G | ignored | |Geometry Callback || ||ignored | D-S-G | ignored | ignored | |FilterEvents || || G | G | G | G | __________________________________________________________________________| |Status || || | | | | |- Area || GS ||ignored | D-S-G | ignored | ignored | |- AreaNeeded || GN-GR ||ignored | S-G | ignored | ignored | |- Colormap || ||ignored | D-S-G | D-S-G | ignored | |- Fg/Bg || ||ignored | D-S-G | D-S-G | ignored | |- Bg Pixmap || ||ignored | D-S-G | D-S-G | ignored | |- FontSet || GN ||ignored | C-S-G | D-S-G | ignored | |- LineSpacing || GN ||ignored | D-S-G | D-S-G | ignored | |- Cursor || ||ignored | D-S-G | D-S-G | ignored | |___________________||___________||_________|_________|_________|_________|Key:C This value must be set with XCreateIC(). 17XIM Public Review DraftD This value may be set using XCreateIC(). If not set, a default is pro- vided.G This value may be read using XGetICValues().GN This IC value may cause geometry negotiation when its value is set via XCreateIC() or XSetICValues().GR This value will be the response of the input method when any GN value is changed.GS This value will cause the geometry of the input method window to be set.O This value must be set once and only once. It need not be set at IC create time.S This value may be set with XSetICValues().ignored The IC value is ignored by the input method for the given input style.3.3.1. Input StyleArgument XNInputStyle specifies the input style to be used. The value of thisargument must be one of the values returned by function XGetIMValues with argu-ment XNQueryInputStyle in the supported_styles list, otherwise error BadStylewill be raised.This argument must be set at creation time and cannot be changed.3.3.2. Client WindowArgument XNClientWindow specifies to input method the client window in whichthe input method can display data or create subwindows. Geometry values forinput method areas are given with respect to the client window. Dynamic changeof client window is not supported. This argument may be set only once. Thisargument should be set before any input is done using this input context. If itis not set the input method may not operate correctly.If an attempt is made to set this value a second time with XSetICValues, thestring "XNClientWindow" will be returned by XSetICValues and the client windowshall not be changed.If the client window is not a valid window id on the display attached to theinput method this argument can generate a BadWindow error when this value isused by the input method.3.3.3. Focus WindowArgument XNFocusWindow specifies the focus window. The primary purpose of theXNFocusWindow is to identify the window which will receive the key event wheninput is composed. In addition, the input method may possibly affect the focuswindow: select events on it, send events to it, modify its properties, grab 18XIM Public Review Draftkeyboard within that window.The value associated to the argument must be of type Window. If the focus win-dow is not a valid window id on the display attached to the input method thisargument can generate a BadWindow error when this value is used by the inputmethod.When this slot is left unspecified, input method will default focus window toclient window.3.3.4. Resource Name and ClassArguments XNResourceName and XNResourceClass are strings that represent thefull name and class hierarchy used by the client to obtain resources for theclient window. These values should be used as prefixes for name and class whenlooking up resources that may vary according to the IC. If these values arenot set, the resources will not be fully specified.It is not intended that values which can be set as IC values be set asresources.3.3.5. Geometry CallbackThe argument XNGeometryCallback is a structure of type XIMCallback (seePreEdit/Status Callbacks).The argument XNGeometryCallback specifies the geometry callback which a clientcan set. This callback is not required for correct operation of either aninput method or a client. It can be set for a client whose user interface pol-icy permits an input method to request the dynamic change of that input methodswindow. An input method that does dynamic change will need to filter anyevents that it uses to initiate the change.3.3.6. Filter EventsThe argument XNFilterEvents will return the event mask that an input methodsneeds to have selected for. The client is expected to augment its own eventmask for the client window with this one.This argument is read-only. It is set by the input method at create time andis never changed.The type of this argument is unsigned long. Setting this value will cause anerror.3.3.7. PreEdit and Status AttributesArguments XNPreeditAttributes and XNStatusAttributes specify to input methodthe attributes to be used for the PreEdit and Status areas, if any. Thoseattributes are passed to XSetICValues or XGetICValues as a nested variablelength list. The names to be used in such lists are as described in the nextsubsection. 19XIM Public Review Draft3.3.7.1. AreaThe value of the argument XNArea must be a pointer to a structure of type XRec-tangle. The interpretation of argument XNArea is dependent on the input methodstyle set in the IC.If the input method style is XIMPreEditPosition, XNArea specifies the clippingregion within which preediting will take place. If the focus window has beenset the coordinates are assumed to be relative to the focus window. If thefocus window has not been set the coordinates are assumed to be relative to theclient window. If neither has been set, the results are undefined. If XNAreais not specified the input method will default the clipping region to thegeometry of the XNFocusWindow. If the area specified is NULL or invalid theresults are undefined.If the input style is XIMPreEditArea or XIMStatusArea, XNArea specifies thegeometry provided by the client to the input method. The input method may usethis area to display its data, either PreEdit or Status depending on the areadesignated. The input method may create a window as a child of the client win-dow with dimensions that fit the XNArea. The coordinates are relative to theclient window. If the client window has not been set yet, the input methodshould save these values and apply them when the client window is set. IfXNArea is not specified, is set to NULL or is invalid, the results are unde-fined.3.3.7.2. Area NeededWhen set, argument XNAreaNeeded specifies the geometry suggested by the clientfor this area (PreEdit or Status). The value associated with the argument mustbe a pointer to a structure of type XRectangle. The x, y values are not used.Non-zero values for width or height are constraints that the client wishes theinput method to respect.When read, argument XNAreaNeeded specifies the preferred geometry desired bythe input method for the area.This argument is only valid if the input style is XIMPreEditArea or XIMSta-tusArea. It is used for geometry negotiation between the client and the inputmethod and has no other effect upon the input method (refer to Geometry Manage-ment.)3.3.7.3. Spot LocationArgument XNSpotLocation specifies to input method the coordinates of the"spot", to be used by an input method executing with XNInputStyle set toXIMPreEditPosition. When specified to any input method other than NeedPositionthis slot is ignored.The x coordinate specifies the position where the next character would beinserted. The y coordinate is the position of the baseline used by currenttext line in the focus window. The x and y coordinates are relative to thefocus window if it has been set, else they are relative to the client window. 20XIM Public Review DraftIf neither focus window nor client window has been set the results are unde-fined.The value of the argument is a pointer to a structure of type XPoint.3.3.7.4. ColormapTwo arguments can be used to indicate what colormap the input method should useto allocate colors: one as a colormap XID, the other as a standard colormapname. Argument XNColormap is used to specify a colormap id. Argument value isof type Colormap. This argument may generate a BadColormap error when thecolormap is used by the input method. Argument XNStdColormap is used to indi-cate the name of the standard colormap in which input method should to allocatecolors. Argument value is an Atom that should be a valid atom for callingXGetStandardColormap. This argument may generate BadAtom or BadColormap errorwhen it is used by the input method.If colormap is left unspecified, it is defaulted to client window colormap.3.3.7.5. Foreground and background.Arguments XNForeground and XNBackground specifies respectively the foregroundand background pixel. Argument value is of type unsigned long. It must be avalid pixel in the input method colormap. Error BadPixel is raised when thisargument is used by the input method if pixel is not a valid pixel for thecolormap in use by the input method.If these values are left unspecified, the default is determined by the inputmethod.3.3.7.6. Background pixmap.Argument XNBackgroundPixmap specifies a background pixmap to be used as thebackground of the window. Slot value must be of type Pixmap. Can generateerror BadPixmap when this argument is used by the input method.If this value is left unspecified, the default is determined by the inputmethod.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -