class RIView

Attributes

background_color[RW]
height[RW]
title[RW]
width[RW]

Public Class Methods

exit() click to toggle source
# File lib/RIUI/RIView.rb, line 15
def self.exit
  extend Ruby2D::DSL
  close
end
initialize(opts = {}) click to toggle source
# File lib/RIUI/RIView.rb, line 4
def self.initialize(opts = {})
  @width = opts[:width] || 250
  @height = opts[:height] || 300
  @background_color = opts[:background_color] || 'white'
  @title = opts[:title] || "RIUI View"
end
show() click to toggle source
# File lib/RIUI/RIView.rb, line 10
def self.show
  extend Ruby2D::DSL
  set width: @width, height: @height, background: @background_color, title: @title
  show
end