mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- Changed GestaltEqu.h to Gestalt.h
- Changed FragLoader.h to CodeFragments.h - Removed Desk.h - Regenerated bgen modules from new universal headers - Changed some of the s# in PyArg_ParseTuple to m# (unfortunately: this should have been a different commit)
This commit is contained in:
parent
6a528149db
commit
4a8c54e6d9
17 changed files with 114 additions and 205 deletions
|
@ -5730,125 +5730,6 @@ static PyObject *Qt_RemoveMovieResource(_self, _args)
|
|||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Qt_GetVideoMediaGraphicsMode(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
HandlerError _rv;
|
||||
MediaHandler mh;
|
||||
long graphicsMode;
|
||||
RGBColor opColor;
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
CmpInstObj_Convert, &mh))
|
||||
return NULL;
|
||||
_rv = GetVideoMediaGraphicsMode(mh,
|
||||
&graphicsMode,
|
||||
&opColor);
|
||||
_res = Py_BuildValue("llO&",
|
||||
_rv,
|
||||
graphicsMode,
|
||||
QdRGB_New, &opColor);
|
||||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Qt_SetVideoMediaGraphicsMode(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
HandlerError _rv;
|
||||
MediaHandler mh;
|
||||
long graphicsMode;
|
||||
RGBColor opColor;
|
||||
if (!PyArg_ParseTuple(_args, "O&lO&",
|
||||
CmpInstObj_Convert, &mh,
|
||||
&graphicsMode,
|
||||
QdRGB_Convert, &opColor))
|
||||
return NULL;
|
||||
_rv = SetVideoMediaGraphicsMode(mh,
|
||||
graphicsMode,
|
||||
&opColor);
|
||||
_res = Py_BuildValue("l",
|
||||
_rv);
|
||||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Qt_GetSoundMediaBalance(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
HandlerError _rv;
|
||||
MediaHandler mh;
|
||||
short balance;
|
||||
if (!PyArg_ParseTuple(_args, "O&",
|
||||
CmpInstObj_Convert, &mh))
|
||||
return NULL;
|
||||
_rv = GetSoundMediaBalance(mh,
|
||||
&balance);
|
||||
_res = Py_BuildValue("lh",
|
||||
_rv,
|
||||
balance);
|
||||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Qt_SetSoundMediaBalance(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
HandlerError _rv;
|
||||
MediaHandler mh;
|
||||
short balance;
|
||||
if (!PyArg_ParseTuple(_args, "O&h",
|
||||
CmpInstObj_Convert, &mh,
|
||||
&balance))
|
||||
return NULL;
|
||||
_rv = SetSoundMediaBalance(mh,
|
||||
balance);
|
||||
_res = Py_BuildValue("l",
|
||||
_rv);
|
||||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Qt_FindNextText(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
{
|
||||
PyObject *_res = NULL;
|
||||
ComponentResult _rv;
|
||||
MediaHandler mh;
|
||||
Ptr text;
|
||||
long size;
|
||||
short findFlags;
|
||||
TimeValue startTime;
|
||||
TimeValue foundTime;
|
||||
TimeValue foundDuration;
|
||||
long offset;
|
||||
if (!PyArg_ParseTuple(_args, "O&slhl",
|
||||
CmpInstObj_Convert, &mh,
|
||||
&text,
|
||||
&size,
|
||||
&findFlags,
|
||||
&startTime))
|
||||
return NULL;
|
||||
_rv = FindNextText(mh,
|
||||
text,
|
||||
size,
|
||||
findFlags,
|
||||
startTime,
|
||||
&foundTime,
|
||||
&foundDuration,
|
||||
&offset);
|
||||
_res = Py_BuildValue("llll",
|
||||
_rv,
|
||||
foundTime,
|
||||
foundDuration,
|
||||
offset);
|
||||
return _res;
|
||||
}
|
||||
|
||||
static PyObject *Qt_NewMovieFromScrap(_self, _args)
|
||||
PyObject *_self;
|
||||
PyObject *_args;
|
||||
|
@ -5963,16 +5844,6 @@ static PyMethodDef Qt_methods[] = {
|
|||
"(short fRefNum, long fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)"},
|
||||
{"RemoveMovieResource", (PyCFunction)Qt_RemoveMovieResource, 1,
|
||||
"(short resRefNum, short resId) -> None"},
|
||||
{"GetVideoMediaGraphicsMode", (PyCFunction)Qt_GetVideoMediaGraphicsMode, 1,
|
||||
"(MediaHandler mh) -> (HandlerError _rv, long graphicsMode, RGBColor opColor)"},
|
||||
{"SetVideoMediaGraphicsMode", (PyCFunction)Qt_SetVideoMediaGraphicsMode, 1,
|
||||
"(MediaHandler mh, long graphicsMode, RGBColor opColor) -> (HandlerError _rv)"},
|
||||
{"GetSoundMediaBalance", (PyCFunction)Qt_GetSoundMediaBalance, 1,
|
||||
"(MediaHandler mh) -> (HandlerError _rv, short balance)"},
|
||||
{"SetSoundMediaBalance", (PyCFunction)Qt_SetSoundMediaBalance, 1,
|
||||
"(MediaHandler mh, short balance) -> (HandlerError _rv)"},
|
||||
{"FindNextText", (PyCFunction)Qt_FindNextText, 1,
|
||||
"(MediaHandler mh, Ptr text, long size, short findFlags, TimeValue startTime) -> (ComponentResult _rv, TimeValue foundTime, TimeValue foundDuration, long offset)"},
|
||||
{"NewMovieFromScrap", (PyCFunction)Qt_NewMovieFromScrap, 1,
|
||||
"(long newMovieFlags) -> (Movie _rv)"},
|
||||
{"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue