class GObject::ParamSpec

Overrides for GParamSpec, GObject’s base class for parameter specifications.

Constants

FLAGS_OFFSET
VALUE_TYPE_OFFSET

Public Instance Methods

accessor_name() click to toggle source
# File lib/ffi-gobject/param_spec.rb, line 16
def accessor_name
  get_name.tr("-", "_")
end
flags() click to toggle source
# File lib/ffi-gobject/param_spec.rb, line 24
def flags
  GObject::ParamFlags.get_value_from_pointer(to_ptr, FLAGS_OFFSET)
end
ref() click to toggle source
# File lib/ffi-gobject/param_spec.rb, line 11
def ref
  Lib.g_param_spec_ref self
  self
end
value_type() click to toggle source
# File lib/ffi-gobject/param_spec.rb, line 20
def value_type
  to_ptr.get_gtype(VALUE_TYPE_OFFSET)
end