Sha256: ac7f8556ab80a30ca264dbe26ae7e784e6668f95e42a5893a59972c839cf8b4d
Contents?: true
Size: 944 Bytes
Versions: 17
Compression:
Stored size: 944 Bytes
Contents
require 'glimmer/error' module Glimmer module UI module CustomShell include SuperModule include Glimmer::UI::CustomWidget def initialize(parent, *swt_constants, options, &content) super @swt_widget.set_data('custom_shell', self) raise Error, 'Invalid custom shell body root! Must be a shell or another custom shell.' unless body_root.swt_widget.is_a?(org.eclipse.swt.widgets.Shell) end # Classes may override def open body_root.open end # DO NOT OVERRIDE. JUST AN ALIAS FOR `#open`. OVERRIDE `#open` INSTEAD. def show open end def close body_root.close end def hide body_root.hide end def visible? body_root.visible? end def center body_root.center end def start_event_loop body_root.start_event_loop end end end end
Version data entries
17 entries across 17 versions & 1 rubygems