blob: 992612c2a1aa5f4ad6bbaa6530f0ced561c98c5e [file] [log] [blame]
Jack Jansene0581891999-02-07 14:02:03 +00001f = Function(ControlHandle, 'as_Control',
2 (Handle, 'h', InMode))
3functions.append(f)
4
Jack Jansena1a0fef1999-12-23 14:32:06 +00005f = Method(Handle, 'as_Resource', (ControlHandle, 'ctl', InMode))
Jack Jansen5d56f4b1995-06-18 20:16:33 +00006methods.append(f)
Jack Jansencfb60ee1996-10-01 10:46:46 +00007
Jack Jansen1a7d5b12000-03-21 16:25:23 +00008f = Method(void, 'GetControlRect', (ControlHandle, 'ctl', InMode), (Rect, 'rect', OutMode))
9methods.append(f)
10
Jack Jansencfb60ee1996-10-01 10:46:46 +000011DisposeControl_body = """
12 if (!PyArg_ParseTuple(_args, ""))
13 return NULL;
14 if ( _self->ob_itself ) {
Jack Jansena755e681997-09-20 17:40:22 +000015 SetControlReference(_self->ob_itself, (long)0); /* Make it forget about us */
Jack Jansencfb60ee1996-10-01 10:46:46 +000016 DisposeControl(_self->ob_itself);
17 _self->ob_itself = NULL;
18 }
19 Py_INCREF(Py_None);
20 _res = Py_None;
21 return _res;
22"""
23
24f = ManualGenerator("DisposeControl", DisposeControl_body)
25f.docstring = lambda : "() -> None"
26
27methods.append(f)