Sha256: a4465b6c3aca48b910ecb41c748a0f08ba7c56df3045e1814c5bc596f8e7066c

Contents?: true

Size: 587 Bytes

Versions: 15

Compression:

Stored size: 587 Bytes

Contents

module GObjectIntrospection
  # Wraps a GIFunctioInfo struct.
  # Represents a function.
  class IFunctionInfo < ICallableInfo
    def symbol
      Lib.g_function_info_get_symbol @gobj
    end
    def flags
      Lib.g_function_info_get_flags @gobj
    end

    #TODO: Use some sort of bitfield
    def method?
      flags & 1 != 0
    end
    def constructor?
      flags & 2 != 0
    end
    def getter?
      flags & 4 != 0
    end
    def setter?
      flags & 8 != 0
    end
    def wraps_vfunc?
      flags & 16 != 0
    end
    def throws?
      flags & 32 != 0
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gir_ffi-0.7.0 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.7 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.6 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.5 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.4 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.3 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.2 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.1 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.6.0 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.5.2 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.5.1 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.5.0 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.2.1 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.2.0 lib/ffi-gobject_introspection/i_function_info.rb
gir_ffi-0.1.0 lib/ffi-gobject_introspection/i_function_info.rb