lib/win/window.rb in win-0.0.3 vs lib/win/window.rb in win-0.0.4

- old
+ new

@@ -1,8 +1,11 @@ require 'win/library' module Win + + # Contains constants, functions and wrappers related to Windows manipulation + # module Window include Win::Library #General constants: @@ -153,11 +156,10 @@ namespace.enforce_count( args, api.prototype, -2) args += [string = buffer, string.length] num_chars = api.call(*args) return nil if num_chars == 0 string = string.force_encoding('utf-16LE').encode(encode) if encode - p string string.rstrip end end ## @@ -472,9 +474,10 @@ end d.wait_for_close if d return d end + # Thin wrapper around window handle class Window include Win::Window extend Win::Window attr_reader :handle