module Glimmer::LibUI::CustomWindow
Public Class Methods
launch(*args, &content)
click to toggle source
# File lib/glimmer/libui/custom_window.rb, line 33 def launch(*args, &content) launched_custom_shell = send(keyword, *args, &content) launched_custom_shell.show end
new(parent, *swt_constants, options, &content)
click to toggle source
Calls superclass method
Glimmer::LibUI::CustomControl::new
# File lib/glimmer/libui/custom_window.rb, line 39 def initialize(parent, *swt_constants, options, &content) original_logger = Glimmer::Config.logger require 'stringio' Glimmer::Config.logger = Logger.new(StringIO.new) super Glimmer::Config.logger = original_logger raise Glimmer::Error, 'Invalid custom window body root! Must be a window, another custom window, or a custom control with window as its body root!' unless body_root.is_a?(Glimmer::LibUI::ControlProxy::WindowProxy) || body_root.is_a?(Glimmer::LibUI::CustomWindow) || (body_root.is_a?(Glimmer::LibUI::CustomControl) && body_root.body_root.is_a?(Glimmer::LibUI::ControlProxy::WindowProxy)) end
Public Instance Methods
destroy()
click to toggle source
TODO consider using Forwardable instead
# File lib/glimmer/libui/custom_window.rb, line 54 def destroy body_root.destroy end
destroying?()
click to toggle source
# File lib/glimmer/libui/custom_window.rb, line 58 def destroying? body_root.destroying? end
show()
click to toggle source
Classes may override
# File lib/glimmer/libui/custom_window.rb, line 49 def show body_root.show end