1999-02-07 14:02:03 +00:00
|
|
|
f = Function(ControlHandle, 'as_Control',
|
|
|
|
(Handle, 'h', InMode))
|
|
|
|
functions.append(f)
|
|
|
|
|
1999-12-23 14:32:06 +00:00
|
|
|
f = Method(Handle, 'as_Resource', (ControlHandle, 'ctl', InMode))
|
1995-06-18 20:16:33 +00:00
|
|
|
methods.append(f)
|
1996-10-01 10:46:46 +00:00
|
|
|
|
2000-03-21 16:25:23 +00:00
|
|
|
f = Method(void, 'GetControlRect', (ControlHandle, 'ctl', InMode), (Rect, 'rect', OutMode))
|
|
|
|
methods.append(f)
|
|
|
|
|
1996-10-01 10:46:46 +00:00
|
|
|
DisposeControl_body = """
|
|
|
|
if (!PyArg_ParseTuple(_args, ""))
|
|
|
|
return NULL;
|
|
|
|
if ( _self->ob_itself ) {
|
1997-09-20 17:40:22 +00:00
|
|
|
SetControlReference(_self->ob_itself, (long)0); /* Make it forget about us */
|
1996-10-01 10:46:46 +00:00
|
|
|
DisposeControl(_self->ob_itself);
|
|
|
|
_self->ob_itself = NULL;
|
|
|
|
}
|
|
|
|
Py_INCREF(Py_None);
|
|
|
|
_res = Py_None;
|
|
|
|
return _res;
|
|
|
|
"""
|
|
|
|
|
|
|
|
f = ManualGenerator("DisposeControl", DisposeControl_body)
|
|
|
|
f.docstring = lambda : "() -> None"
|
|
|
|
|
|
|
|
methods.append(f)
|