Sha256: a9ab8777684e6de8a224b9262e3f9d622d74b3debd225155319e0c6bf4dc3335
Contents?: true
Size: 1000 Bytes
Versions: 1
Compression:
Stored size: 1000 Bytes
Contents
def add_load_path(path) full_path = File.expand_path path $LOAD_PATH.unshift full_path unless $LOAD_PATH.include?(path) || $LOAD_PATH.include?(full_path) end add_load_path File.dirname(__FILE__) =begin Copyright 2013 Shane Brinkman-Davis See README for licence information. =end %w{ constants tools color buffer version event_queue event_manager evented evented_variable xterm_event_parser xterm_log xterm_output xterm_state xterm_input xterm_screen buffered_screen window_redraw_areas window windowed_screen widgets/draggable_background widgets/label widgets/slider widgets/text_field }.each do |file| require "window_blessing/#{file}" end module WindowBlessing class << self include Tools def main(&block) main_window = Window.new Screen.new.open do instance_exec(main_window, &block) on_tick do main_window.area = rect(screen_buffer.size) main_window.draw screen_buffer end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
window_blessing-0.0.4 | lib/window_blessing.rb |