Sha256: ea5660e4e2c309257eb53224da2803f3d9593f10f237bfc7d753b441f0c78af4

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

module ManabuDesktop
  class Windows
    @@main_menu = nil
    @@window_list = []

    def self.set_main_menu(handle)
      return false if @@main_menu != nil
      @@main_menu = handle
      true
    end

    def self.get_main_menu()
      @@main_menu
    end

    def self.add_window(handle)
      @@window_list << handle
    end

    def self.destroy_all()
      @@window_list.each do |window|
        window.destroy()
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
manabu-desktop-0.0.5 lib/windows.rb
manabu-desktop-0.0.4 lib/windows.rb
manabu-desktop-0.0.3 lib/windows.rb