Module: QML::Access
- Extended by:
- ClassMethods
- Includes:
- SignalInitialization, Dispatchable, Reactive::Object, Wrappable
- Included in:
- ImageProvider::Callback
- Defined in:
- lib/qml/access.rb
Overview
Access enables classes to be exposed to QML.
Defined Under Namespace
Modules: ClassMethods, SignalInitialization
Constant Summary collapse
- ALLOWED_PATTERN =
allowed name patterns for exposed method names
/^[a-zA-Z_]\w*$/
Instance Attribute Summary collapse
- #access_wrappers ⇒ Object readonly private
Class Method Summary collapse
- .register_classes ⇒ Object private
- .unregistered_classes ⇒ Object private
Instance Method Summary collapse
Methods included from ClassMethods
access_wrapper_factory, register_to_qml, register_to_qml_real
Methods included from Reactive::Object
#properties, #property, #signal, #signals
Methods included from Reactive::Object::ClassMethods
#alias_property, #alias_signal, #instance_properties, #instance_property, #instance_signal, #instance_signals, #on, #on_changed, #property, #signal, #variadic_signal
Methods included from Dispatchable
Instance Attribute Details
#access_wrappers ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
131 132 133 |
# File 'lib/qml/access.rb', line 131 def access_wrappers @access_wrappers end |
Class Method Details
.register_classes ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 |
# File 'lib/qml/access.rb', line 31 def self.register_classes unregistered_classes.each(&:register_to_qml_real) end |
.unregistered_classes ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/qml/access.rb', line 26 def self.unregistered_classes @unregistered_classes ||= [] end |
Instance Method Details
#create_wrapper ⇒ Object
138 139 140 |
# File 'lib/qml/access.rb', line 138 def create_wrapper self.class.access_wrapper_factory.create(self) end |
#initialize(*args, &block) ⇒ Object
133 134 135 136 |
# File 'lib/qml/access.rb', line 133 def initialize(*args, &block) super @access_wrappers = [] end |