Lines Matching defs:ic
280 _SetICValueData(XIC ic, XIMArg *values, XICOp_t mode)
288 ic->core.input_style = (XIMStyle)p->value;
290 ic->core.client_window = (Window)p->value ;
292 ic->core.focus_window = (Window)p->value ;
295 return_name = _SetICValueData(ic, (XIMArg*)p->value, mode);
306 _GetICValueData(XIC ic, XIMArg *values, XICOp_t mode)
313 *((XIMStyle *)(p->value)) = ic->core.input_style;
315 *((Window *)(p->value)) = ic->core.client_window;
317 *((Window *)(p->value)) = ic->core.focus_window;
319 *((unsigned long *)(p->value))= ic->core.filter_events;
322 return_name = _GetICValueData(ic, (XIMArg*)p->value, mode);
335 XIC ic;
337 if ((ic = Xcalloc(1, sizeof(XICRec))) == (XIC)NULL) {
341 ic->methods = (XICMethods)&local_ic_methods;
342 ic->core.im = im;
343 ic->core.filter_events = KeyPressMask;
345 if (_SetICValueData(ic, arg, CREATE_IC) != NULL)
347 if (!(ic->core.input_style))
350 return (XIC)ic;
352 XFree(ic);
357 _DestroyIC(XIC ic)
359 /*BugId4255571. This Xfree() should be removed because XDestroyIC() still need ic after invoking _DestroyIC() and there is a XFree(ic) at the end of XDestroyIC() already.
360 if(ic)
361 XFree(ic); */
365 _SetFocus(XIC ic)
370 _UnsetFocus(XIC ic)
375 _SetICValues(XIC ic, XIMArg *args)
378 if (!ic) {
381 ret = _SetICValueData(ic, args, SET_ICVAL);
386 _GetICValues(XIC ic, XIMArg *args)
389 if (!ic) {
392 ret = _GetICValueData(ic, args, GET_ICVAL);