From c824d5e30e8f70bc90bfa4c9a6221584ccdc14e9 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Mon, 9 Jun 2014 07:31:19 -0700 Subject: [PATCH] Remove ImageDisplay, it is useless, again --- lib/tailor/GUI/ImageDisplay.rb | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 lib/tailor/GUI/ImageDisplay.rb diff --git a/lib/tailor/GUI/ImageDisplay.rb b/lib/tailor/GUI/ImageDisplay.rb deleted file mode 100644 index 174a9ca..0000000 --- a/lib/tailor/GUI/ImageDisplay.rb +++ /dev/null @@ -1,22 +0,0 @@ -module Tailor - module GUI - class ImageDisplay < Wx::Panel - def initialize(*args) - super(*args) - @bitmap = nil - end - - def set_image image - @bitmap = image.to_bitmap - refresh - end - - def on_draw dc - dc.set_background Wx::WHITE_BRUSH - dc.clear - return if @bitmap == nil - dc.draw_bitmap(@bitmap, 0, 0, true) - end - end - end -end