static PyObject *Fm_SetPreserveGlyph(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Boolean preserveGlyph;
#ifndef SetPreserveGlyph
    PyMac_PRECHECK(SetPreserveGlyph);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &preserveGlyph))
        return NULL;
    SetPreserveGlyph(preserveGlyph);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
static PyObject *Fm_SetFractEnable(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Boolean fractEnable;
#ifndef SetFractEnable
    PyMac_PRECHECK(SetFractEnable);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &fractEnable))
        return NULL;
    SetFractEnable(fractEnable);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
static PyObject *Fm_SetOutlinePreferred(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Boolean outlinePreferred;
#ifndef SetOutlinePreferred
    PyMac_PRECHECK(SetOutlinePreferred);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &outlinePreferred))
        return NULL;
    SetOutlinePreferred(outlinePreferred);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #4
0
static PyObject *Evt_LMSetKeyRepThresh(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	SInt16 value;
#ifndef LMSetKeyRepThresh
	PyMac_PRECHECK(LMSetKeyRepThresh);
#endif
	if (!PyArg_ParseTuple(_args, "h",
	                      &value))
		return NULL;
	LMSetKeyRepThresh(value);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #5
0
static PyObject *Evt_LMSetKbdLast(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	UInt8 value;
#ifndef LMSetKbdLast
	PyMac_PRECHECK(LMSetKbdLast);
#endif
	if (!PyArg_ParseTuple(_args, "b",
	                      &value))
		return NULL;
	LMSetKbdLast(value);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #6
0
static PyObject *Evt_KeyScript(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	short code;
#ifndef KeyScript
	PyMac_PRECHECK(KeyScript);
#endif
	if (!PyArg_ParseTuple(_args, "h",
	                      &code))
		return NULL;
	KeyScript(code);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #7
0
static PyObject *Res_ResError(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    OSErr _err;
#ifndef ResError
    PyMac_PRECHECK(ResError);
#endif
    if (!PyArg_ParseTuple(_args, ""))
        return NULL;
    _err = ResError();
    if (_err != noErr) return PyMac_Error(_err);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #8
0
static PyObject *Icn_DisposeCIcon(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	CIconHandle theIcon;
#ifndef DisposeCIcon
	PyMac_PRECHECK(DisposeCIcon);
#endif
	if (!PyArg_ParseTuple(_args, "O&",
	                      ResObj_Convert, &theIcon))
		return NULL;
	DisposeCIcon(theIcon);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #9
0
static PyObject *DragObj_DisposeDrag(DragObjObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef DisposeDrag
	PyMac_PRECHECK(DisposeDrag);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = DisposeDrag(_self->ob_itself);
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #10
0
static PyObject *Evt_SetEventMask(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    EventMask value;
#ifndef SetEventMask
    PyMac_PRECHECK(SetEventMask);
#endif
    if (!PyArg_ParseTuple(_args, "H",
                          &value))
        return NULL;
    SetEventMask(value);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #11
0
static PyObject *AE_AEObjectInit(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef AEObjectInit
	PyMac_PRECHECK(AEObjectInit);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = AEObjectInit();
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #12
0
static PyObject *TE_LMSetWordRedraw(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    UInt8 value;
#ifndef LMSetWordRedraw
    PyMac_PRECHECK(LMSetWordRedraw);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &value))
        return NULL;
    LMSetWordRedraw(value);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #13
0
static PyObject *TE_TEToScrap(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    OSErr _err;
#ifndef TEToScrap
    PyMac_PRECHECK(TEToScrap);
#endif
    if (!PyArg_ParseTuple(_args, ""))
        return NULL;
    _err = TEToScrap();
    if (_err != noErr) return PyMac_Error(_err);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #14
0
static PyObject *CmpInstObj_CloseComponent(ComponentInstanceObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef CloseComponent
	PyMac_PRECHECK(CloseComponent);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = CloseComponent(_self->ob_itself);
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #15
0
static PyObject *TE_TESetScrapLength(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    long length;
#ifndef TESetScrapLength
    PyMac_PRECHECK(TESetScrapLength);
#endif
    if (!PyArg_ParseTuple(_args, "l",
                          &length))
        return NULL;
    TESetScrapLength(length);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #16
0
static PyObject *AEDesc_AESetTheCurrentEvent(AEDescObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef AESetTheCurrentEvent
	PyMac_PRECHECK(AESetTheCurrentEvent);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = AESetTheCurrentEvent(&_self->ob_itself);
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #17
0
static PyObject *TE_TESetScrapHandle(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Handle value;
#ifndef TESetScrapHandle
    PyMac_PRECHECK(TESetScrapHandle);
#endif
    if (!PyArg_ParseTuple(_args, "O&",
                          ResObj_Convert, &value))
        return NULL;
    TESetScrapHandle(value);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #18
0
static PyObject *TEObj_TEAutoView(TEObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Boolean fAuto;
#ifndef TEAutoView
    PyMac_PRECHECK(TEAutoView);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &fAuto))
        return NULL;
    TEAutoView(fAuto,
               _self->ob_itself);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #19
0
static PyObject *TEObj_TEUpdate(TEObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Rect rUpdate;
#ifndef TEUpdate
    PyMac_PRECHECK(TEUpdate);
#endif
    if (!PyArg_ParseTuple(_args, "O&",
                          PyMac_GetRect, &rUpdate))
        return NULL;
    TEUpdate(&rUpdate,
             _self->ob_itself);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #20
0
static PyObject *TEObj_TESetAlignment(TEObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    short just;
#ifndef TESetAlignment
    PyMac_PRECHECK(TESetAlignment);
#endif
    if (!PyArg_ParseTuple(_args, "h",
                          &just))
        return NULL;
    TESetAlignment(just,
                   _self->ob_itself);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #21
0
static PyObject *TEObj_TEKey(TEObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    CharParameter key;
#ifndef TEKey
    PyMac_PRECHECK(TEKey);
#endif
    if (!PyArg_ParseTuple(_args, "h",
                          &key))
        return NULL;
    TEKey(key,
          _self->ob_itself);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #22
0
static PyObject *TE_as_TE(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    TEHandle _rv;
    Handle h;
#ifndef as_TE
    PyMac_PRECHECK(as_TE);
#endif
    if (!PyArg_ParseTuple(_args, "O&",
                          ResObj_Convert, &h))
        return NULL;
    _rv = as_TE(h);
    _res = Py_BuildValue("O&",
                         TEObj_New, _rv);
    return _res;
}
Example #23
0
static PyObject *CmpInstObj_SetComponentInstanceError(ComponentInstanceObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr theError;
#ifndef SetComponentInstanceError
	PyMac_PRECHECK(SetComponentInstanceError);
#endif
	if (!PyArg_ParseTuple(_args, "h",
	                      &theError))
		return NULL;
	SetComponentInstanceError(_self->ob_itself,
	                          theError);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #24
0
static PyObject *AE_AEGetInteractionAllowed(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
	AEInteractAllowed level;
#ifndef AEGetInteractionAllowed
	PyMac_PRECHECK(AEGetInteractionAllowed);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = AEGetInteractionAllowed(&level);
	if (_err != noErr) return PyMac_Error(_err);
	_res = Py_BuildValue("b",
	                     level);
	return _res;
}
Example #25
0
static PyObject *CmpInstObj_SetComponentInstanceStorage(ComponentInstanceObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	Handle theStorage;
#ifndef SetComponentInstanceStorage
	PyMac_PRECHECK(SetComponentInstanceStorage);
#endif
	if (!PyArg_ParseTuple(_args, "O&",
	                      ResObj_Convert, &theStorage))
		return NULL;
	SetComponentInstanceStorage(_self->ob_itself,
	                            theStorage);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #26
0
static PyObject *TEObj_TESetStyleHandle(TEObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    TEStyleHandle theHandle;
#ifndef TESetStyleHandle
    PyMac_PRECHECK(TESetStyleHandle);
#endif
    if (!PyArg_ParseTuple(_args, "O&",
                          ResObj_Convert, &theHandle))
        return NULL;
    TESetStyleHandle(theHandle,
                     _self->ob_itself);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
Example #27
0
static PyObject *CmpObj_SetComponentRefcon(ComponentObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	long theRefcon;
#ifndef SetComponentRefcon
	PyMac_PRECHECK(SetComponentRefcon);
#endif
	if (!PyArg_ParseTuple(_args, "l",
	                      &theRefcon))
		return NULL;
	SetComponentRefcon(_self->ob_itself,
	                   theRefcon);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Example #28
0
static PyObject *Drag_WaitMouseMoved(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	Boolean _rv;
	Point initialMouse;
#ifndef WaitMouseMoved
	PyMac_PRECHECK(WaitMouseMoved);
#endif
	if (!PyArg_ParseTuple(_args, "O&",
	                      PyMac_GetPoint, &initialMouse))
		return NULL;
	_rv = WaitMouseMoved(initialMouse);
	_res = Py_BuildValue("b",
	                     _rv);
	return _res;
}
Example #29
0
static PyObject *AE_AEDisposeToken(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
	AEDesc theToken;
#ifndef AEDisposeToken
	PyMac_PRECHECK(AEDisposeToken);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = AEDisposeToken(&theToken);
	if (_err != noErr) return PyMac_Error(_err);
	_res = Py_BuildValue("O&",
	                     AEDesc_New, &theToken);
	return _res;
}
Example #30
0
static PyObject *Cm_CountComponents(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	long _rv;
	ComponentDescription looking;
#ifndef CountComponents
	PyMac_PRECHECK(CountComponents);
#endif
	if (!PyArg_ParseTuple(_args, "O&",
	                      CmpDesc_Convert, &looking))
		return NULL;
	_rv = CountComponents(&looking);
	_res = Py_BuildValue("l",
	                     _rv);
	return _res;
}