Class: XRC2Ruby::ObjectTypes::PANEWINDOW

Inherits:
Container show all
Defined in:
lib/wx_sugar/xrc/xrc2ruby_types/containers.rb

Overview

Special class for the interior pane of a CollapsiblePane; not represented by a “real” Window in wxRuby, instead accessed via CollapsiblePane#get_pane

Constant Summary

Constants inherited from Window

Window::BASE_NAME

Instance Attribute Summary collapse

Attributes included from Parent

#children, #main_sizer, #sizer_items

Attributes inherited from Window

#bg, #enabled, #exstyle, #fg, #help, #hidden, #tooltip

Attributes inherited from Object

#centered, #name, #parent, #sub_class, #win_class

Instance Method Summary collapse

Methods included from Parent

#add_child, #child_output, #named_windows, #size_child

Methods inherited from Window

#args, #setup

Methods included from InitArgs

#inherited, #init_arg, #init_args, #translatable_string_init_arg

Methods inherited from Object

#inspect, next_id

Constructor Details

#initialize(coll_pane, an_id = nil) ⇒ PANEWINDOW

Returns a new instance of PANEWINDOW.



80
81
82
83
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 80

def initialize(coll_pane, an_id = nil)
  @coll_pane = coll_pane
  @coll_pane.pane = self
end

Instance Attribute Details

#coll_paneObject (readonly)

Returns the value of attribute coll_pane.



79
80
81
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 79

def coll_pane
  @coll_pane
end

Instance Method Details

#outputObject



89
90
91
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 89

def output
  "\n" + child_output
end

#var_nameObject



85
86
87
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 85

def var_name 
  "#{coll_pane.var_name}.pane"
end