Class: GObject::ParamSpec
- Inherits:
-
Object
- Object
- GObject::ParamSpec
- Defined in:
- lib/ffi-gobject/param_spec.rb
Overview
Overrides for GParamSpec, GObject’s base class for parameter specifications.
Constant Summary collapse
- VALUE_TYPE_OFFSET =
Struct.offset_of :value_type
- FLAGS_OFFSET =
Struct.offset_of :flags
Instance Method Summary collapse
Instance Method Details
#accessor_name ⇒ Object
16 17 18 |
# File 'lib/ffi-gobject/param_spec.rb', line 16 def accessor_name get_name.tr("-", "_") end |
#flags ⇒ Object
24 25 26 |
# File 'lib/ffi-gobject/param_spec.rb', line 24 def flags GObject::ParamFlags.get_value_from_pointer(to_ptr, FLAGS_OFFSET) end |
#ref ⇒ Object
11 12 13 14 |
# File 'lib/ffi-gobject/param_spec.rb', line 11 def ref Lib.g_param_spec_ref self self end |
#value_type ⇒ Object
20 21 22 |
# File 'lib/ffi-gobject/param_spec.rb', line 20 def value_type to_ptr.get_gtype(VALUE_TYPE_OFFSET) end |