Sha256: 92421bcaa399477a9bea227d39df28c2327c9fef6c6aa3641833c1a7b52ec2f4
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
module GirFFI # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.3 | lib/gir_ffi/i_function_info.rb |
gir_ffi-0.0.2 | lib/gir_ffi/i_function_info.rb |
gir_ffi-0.0.1 | lib/gir_ffi/i_function_info.rb |