Sha256: 0078354201d1486b6cff3a2e27581440dd7c2f1eeed8ceef3e802d639887c554

Contents?: true

Size: 384 Bytes

Versions: 9

Compression:

Stored size: 384 Bytes

Contents

require 'ffi'

module Mohawk
  module Win32
    extend FFI::Library
    ffi_lib 'user32.dll'
    attach_function :set_foreground_window, :SetForegroundWindow, [:long], :bool
    attach_function :foreground_window, :GetForegroundWindow, [], :int
    attach_function :is_window, :IsWindow, [:int], :bool
    attach_function :activate, :SetActiveWindow, [:int], :int
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mohawk-1.0 lib/mohawk/win_32.rb
mohawk-0.4.4 lib/mohawk/win_32.rb
mohawk-0.4.3 lib/mohawk/win_32.rb
mohawk-0.4.2 lib/mohawk/win_32.rb
mohawk-0.4.1 lib/mohawk/win_32.rb
mohawk-0.4 lib/mohawk/win_32.rb
mohawk-0.3 lib/mohawk/win_32.rb
mohawk-0.2.1 lib/mohawk/win_32.rb
mohawk-0.2 lib/mohawk/win_32.rb