Bindgen::Processor::Qt
Inherits Bindgen::Processor::Base < Bindgen::Graph::Visitor < Reference < Object
Processor for C++/Qt specific behaviour. This includes:
- Handle
Q_GADGETtypes - Adding signal connection methods, delivering in the main thread
- Support for private signals
- Remove
Q_OBJECTinternal methods in superclass wrappers - Keep objects given a parent alive, as the parent owns them
#hashfromqHash,#to_sand#inspectfromtoString
Constants
Value of Qt::AutoConnection, the default connection type.
Type of the result of a Qt-sinal connect call.
Type of the connection type argument of the connection method. The
enum has to be wrapped, by enums: in the configuration.
Name of the connection type argument, as in QObject::connect.
The hash function of a value type, bound as a method by
member_functions: [qHash], forwarded to #hash.
Processor for C++/Qt specific behaviour. This includes:
- Handle
Q_GADGETtypes - Adding signal connection methods, delivering in the main thread
- Support for private signals
- Remove
Q_OBJECTinternal methods in superclass wrappers - Keep objects given a parent alive, as the parent owns them
#hashfromqHash,#to_sand#inspectfromtoString
Names of the constructor argument giving the object a parent, in the
PARENT_OWNED_CLASSES.
Classes whose instances belong to their parent, which deletes them.
parent_arguments: of the type rules adds others, like
QTreeWidgetItem.
Defined by Q_OBJECT, and thus in every signal-emitting class.
Internal virtual methods generated by Q_OBJECT that will not be copied
into superclass wrapper structs, nor be overridable from Crystal:
Processor::QtMetaObject overrides them in the C++ subclass.
We'll remove all member methods of this name.
Methods giving the object a new parent, or none with nullptr.
The string conversion of a value type, forwarded to #to_s.
Instance methods
Visits a Graph::Class. The default implementation calls
#visit_children to visit all child nodes.