PythonQt
Public Member Functions | Public Attributes | List of all members
PythonQtPropertyData Struct Reference

#include <PythonQtProperty.h>

Public Member Functions

 PythonQtPropertyData ()
 
bool callSetter (PyObject *wrapper, PyObject *newValue)
 
PyObjectcallGetter (PyObject *wrapper)
 
bool callReset (PyObject *wrapper)
 Call the freset method in Python, bound to the wrapper object. More...
 

Public Attributes

QByteArray cppType
 
PyObjectfget
 
PyObjectfset
 
PyObjectfdel
 
PyObjectfreset
 
PyObjectnotify
 
PyObjectdoc
 
bool designable
 
bool scriptable
 
bool stored
 
bool user
 
bool constant
 
bool final
 

Detailed Description

Definition at line 46 of file PythonQtProperty.h.

Constructor & Destructor Documentation

◆ PythonQtPropertyData()

PythonQtPropertyData::PythonQtPropertyData ( )
inline

Definition at line 48 of file PythonQtProperty.h.

48  {
49  fget = nullptr;
50  fset = nullptr;
51  fdel = nullptr;
52  freset = nullptr;
53  notify = nullptr;
54  doc = nullptr;
55  designable = true;
56  scriptable = true;
57  stored = true;
58  user = false;
59  constant = false;
60  final = false;
61  }

References constant, designable, doc, fdel, fget, freset, fset, notify, scriptable, stored, and user.

Member Function Documentation

◆ callGetter()

PyObject* PythonQtPropertyData::callGetter ( PyObject wrapper)

Call the fget method in Python, bound to the wrapper object. Returns the return value of the call (with a new ref).

◆ callReset()

bool PythonQtPropertyData::callReset ( PyObject wrapper)

Call the freset method in Python, bound to the wrapper object.

◆ callSetter()

bool PythonQtPropertyData::callSetter ( PyObject wrapper,
PyObject newValue 
)

Call the fset method in Python, bound to the wrapper object. Returns true if successful

Member Data Documentation

◆ constant

bool PythonQtPropertyData::constant

Definition at line 87 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ cppType

QByteArray PythonQtPropertyData::cppType

Definition at line 74 of file PythonQtProperty.h.

◆ designable

bool PythonQtPropertyData::designable

Definition at line 83 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ doc

PyObject* PythonQtPropertyData::doc

Definition at line 81 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ fdel

PyObject* PythonQtPropertyData::fdel

Definition at line 78 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ fget

PyObject* PythonQtPropertyData::fget

Definition at line 76 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ final

bool PythonQtPropertyData::final

Definition at line 88 of file PythonQtProperty.h.

◆ freset

PyObject* PythonQtPropertyData::freset

Definition at line 79 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ fset

PyObject* PythonQtPropertyData::fset

Definition at line 77 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ notify

PyObject* PythonQtPropertyData::notify

Definition at line 80 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ scriptable

bool PythonQtPropertyData::scriptable

Definition at line 84 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ stored

bool PythonQtPropertyData::stored

Definition at line 85 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().

◆ user

bool PythonQtPropertyData::user

Definition at line 86 of file PythonQtProperty.h.

Referenced by PythonQtPropertyData().


The documentation for this struct was generated from the following file: