File: borderobject.h

package info (click to toggle)
skencil 0.6.17-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,136 kB
  • ctags: 8,589
  • sloc: python: 36,672; ansic: 16,571; sh: 151; makefile: 92
file content (24 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef BORDEROBJECT_H
#define BORDEROBJECT_H

#include <Python.h>
#include <tk.h>

typedef struct {
    PyObject_HEAD
    Tk_3DBorder tkborder;
    Tk_Window	tkwin;
    int		borrowed;	/* whether the Tk_3DBOrder is borrowed
				   from some widget or was explicitly
				   allocated for this object */
} PaxBorderObject;

extern PyTypeObject PaxBorderType;
#define PaxBorder_Check(v)	((v)->ob_type == &PaxBorderType)


PyObject * PaxBorder_FromTkBorder(Tk_3DBorder tkborder, Tk_Window tkwin,
				  int borrowed);
Tk_3DBorder PaxBorder_AsTkBorder(PyObject *);

#endif /* BORDEROBJECT_H */