class Rubygame::ResizeEvent

Indicates that the application window was resized. (After this event occurs, you should use Screen#set_mode to change the display surface to the new size.)

This event has these attributes:

size

the new size of the window, in pixels [w,h].

Attributes

size[RW]

Public Class Methods

new(new_size) click to toggle source
# File lib/rubygame/event.rb, line 406
def initialize(new_size)
        @size = new_size
end