rdoc/gosu.rb in gosu-1.0.0 vs rdoc/gosu.rb in gosu-1.1.0.pre1

- old
+ new

@@ -810,10 +810,22 @@ ## # @return [true, false] whether this window is resizable. def resizable?; end ## + # Toggles between resizable and fixed modes. + attr_writer :resizable + + ## + # @return [true, false] whether this window is borderless. + def borderless?; end + + ## + # Toggles between borderless mode and having window chrome. + attr_writer :borderless + + ## # @return [Float] the interval between calls to {#update}, in milliseconds. attr_accessor :update_interval ## # Creates a new window with the requested size. @@ -826,10 +838,11 @@ # # @param width [Integer] the desired window width. # @param height [Integer] the desired window height. # @param [Hash] options # @option options [true, false] :fullscreen (false) whether to present the window in fullscreen mode. - # @option options [true, false] :resizable (false) whether the window can be resized by the user. + # @option options [true, false] :resizable (false) whether the window can be resized by the user. Not useful if the window is either fullscreen or borderless. + # @option options [true, false] :borderless (false) whether the window should hide all its window chrome. Does not affect fullscreen windows. # @option options [Float] :update_interval (16.666666) the interval between frames, in milliseconds. def initialize(width, height, options); end ## # Enters a modal loop where the Window is visible on screen and receives calls to draw, update etc.