class GirFFI::UserDefinedPropertyInfo

Represents a property of a user defined type. Wraps a GParamSpec with useful helper methods for building property accessors etc.

Attributes

container[R]
offset[R]
param_spec[R]

Public Class Methods

new(param_spec, container, offset) click to toggle source
# File lib/gir_ffi/user_defined_property_info.rb, line 105
def initialize(param_spec, container, offset)
  @param_spec = param_spec
  @container = container
  @offset = offset
end

Public Instance Methods

ffi_type() click to toggle source
# File lib/gir_ffi/user_defined_property_info.rb, line 129
def ffi_type
  field_type.ffi_type
end
field_symbol() click to toggle source
# File lib/gir_ffi/user_defined_property_info.rb, line 133
def field_symbol
  name.to_sym
end
field_type() click to toggle source
# File lib/gir_ffi/user_defined_property_info.rb, line 117
def field_type
  @field_type ||= UserDefinedTypeInfo.new @param_spec
end
name() click to toggle source
# File lib/gir_ffi/user_defined_property_info.rb, line 113
def name
  @param_spec.accessor_name
end
writable?() click to toggle source
# File lib/gir_ffi/user_defined_property_info.rb, line 125
def writable?
  param_spec.flags[:writable]
end