The python export class for CosmeticExtension. More...

#include <CosmeticExtensionPy.h>

Public Types

typedef CosmeticExtensionPointerType
 
- Public Types inherited from App::DocumentObjectExtensionPy
typedef DocumentObjectExtensionPointerType
 
- Public Types inherited from App::ExtensionPy
typedef ExtensionPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0 , Immutable = 1 , Notify = 2 , NoTrack = 3 }
 

Public Member Functions

 CosmeticExtensionPy (CosmeticExtension *pcObject, PyTypeObject *T=&Type)
 
virtual PyTypeObject * GetType (void)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constructor) More...
 
std::string representation (void) const
 
callbacks and implementers for the python object attributes
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
CosmeticExtensiongetCosmeticExtensionPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from App::DocumentObjectExtensionPy
 DocumentObjectExtensionPy (DocumentObjectExtension *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
DocumentObjectExtensiongetDocumentObjectExtensionPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from App::ExtensionPy
 ExtensionPy (Extension *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
ExtensiongetExtensionPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual) More...
 
PyObjectBaseIncRef (void)
 incref method wrapper (see python extending manual) More...
 
bool isConst ()
 
bool isNotTracking () const
 
bool isValid ()
 
 PyObjectBase (void *, PyTypeObject *T)
 Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More...
 
void setConst ()
 
void setInvalid ()
 
void setNotTracking (bool on=true)
 
void setShouldNotify (bool on)
 
bool shouldNotify () const
 
void startNotify ()
 

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from App::DocumentObjectExtensionPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from App::ExtensionPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of CosmeticExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of CosmeticExtensionPy. More...
 
static PyTypeObject Type
 Type structure of CosmeticExtensionPy. More...
 
- Static Public Attributes inherited from App::DocumentObjectExtensionPy
static PyGetSetDef GetterSetter []
 Attribute structure of DocumentObjectExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of DocumentObjectExtensionPy. More...
 
static PyTypeObject Type
 Type structure of DocumentObjectExtensionPy. More...
 
- Static Public Attributes inherited from App::ExtensionPy
static PyGetSetDef GetterSetter []
 Attribute structure of ExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of ExtensionPy. More...
 
static PyTypeObject Type
 Type structure of ExtensionPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~CosmeticExtensionPy ()
 
- Protected Member Functions inherited from App::DocumentObjectExtensionPy
 ~DocumentObjectExtensionPy ()
 
- Protected Member Functions inherited from App::ExtensionPy
 ~ExtensionPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
void setTwinPointer (void *ptr)
 Overrides the pointer to the twin object. More...
 
virtual ~PyObjectBase ()
 destructor More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for CosmeticExtension.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~CosmeticExtensionPy()

CosmeticExtensionPy::~CosmeticExtensionPy ( )
protected

◆ CosmeticExtensionPy()

CosmeticExtensionPy::CosmeticExtensionPy ( CosmeticExtension pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ getCosmeticExtensionPtr()

CosmeticExtension * CosmeticExtensionPy::getCosmeticExtensionPtr ( void  ) const

getter for the object handled by this class

◆ getCustomAttributes()

PyObject * CosmeticExtensionPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ GetType()

virtual PyTypeObject* TechDraw::CosmeticExtensionPy::GetType ( void  )
virtual

Reimplemented from App::DocumentObjectExtensionPy.

◆ PyInit()

int CosmeticExtensionPy::PyInit ( PyObject ,
PyObject  
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from App::DocumentObjectExtensionPy.

◆ PyMake()

PyObject * CosmeticExtensionPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
)
static

◆ representation()

◆ setCustomAttributes()

int CosmeticExtensionPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

Member Data Documentation

◆ GetterSetter

PyGetSetDef CosmeticExtensionPy::GetterSetter
static
Initial value:
= {
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of CosmeticExtensionPy.

◆ Methods

PyMethodDef CosmeticExtensionPy::Methods
static
Initial value:
= {
{NULL, NULL, 0, NULL}
}

Methods structure of CosmeticExtensionPy.

◆ Type


The documentation for this class was generated from the following files:
  • Sources/FreeCAD-SourceDocs/src/Mod/TechDraw/App/CosmeticExtensionPy.h
  • Sources/FreeCAD/src/Mod/TechDraw/App/CosmeticExtensionPyImp.cpp
  • Sources/FreeCAD-SourceDocs/src/Mod/TechDraw/App/CosmeticExtensionPy.cpp