class GirFFI::Builder::EnumInOutArgument

Implements argument processing for arguments with direction :inout that are enums.

Public Instance Methods

post() click to toggle source
# File lib/gir_ffi/builder/argument.rb, line 366
def post
  [ "#{retname} = #{argument_class_name}[#{callarg}.to_value]" ]
end
pre() click to toggle source
# File lib/gir_ffi/builder/argument.rb, line 360
def pre
  pr = []
  pr << "#{callarg} = GirFFI::InOutPointer.from :gint32, #{argument_class_name}[#{@name}]"
  pr
end