mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added support for DrawThemeButton() and friends.
This commit is contained in:
parent
f853be980e
commit
6253a114a7
3 changed files with 186 additions and 3 deletions
|
@ -73,6 +73,13 @@ CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
|
|||
CFMutableStringRef = OpaqueByValueType("CFMutableStringRef", "CFMutableStringRefObj")
|
||||
TruncCode = Type("TruncCode", "h")
|
||||
|
||||
|
||||
ThemeButtonKind = UInt16
|
||||
ThemeButtonDrawInfo_ptr = OpaqueType("ThemeButtonDrawInfo", "ThemeButtonDrawInfo")
|
||||
ThemeEraseUPP = FakeType("NULL")
|
||||
ThemeButtonDrawUPP = FakeType("NULL")
|
||||
|
||||
|
||||
includestuff = includestuff + """
|
||||
#ifdef WITHOUT_FRAMEWORKS
|
||||
#include <Appearance.h>
|
||||
|
@ -80,6 +87,13 @@ includestuff = includestuff + """
|
|||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
int ThemeButtonDrawInfo_Convert(PyObject *v, ThemeButtonDrawInfo *p_itself)
|
||||
{
|
||||
return PyArg_Parse(v, "(iHH)", &p_itself->state, &p_itself->value, &p_itself->adornment);
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
class MyObjectDefinition(GlobalObjectDefinition):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue