Class: TT::GUI::Groupbox

Inherits:
Container show all
Defined in:
TT_Lib2/gui.rb

Overview

Since:

  • 2.7.0

Instance Attribute Summary collapse

Attributes included from ContainerElement

#controls

Attributes inherited from Control

#bottom, #font_bold, #font_italic, #font_name, #font_size, #height, #left, #name, #parent, #right, #tooltip, #top, #ui_id, #width, #window

Instance Method Summary collapse

Methods included from ContainerElement

#add_control, #get_control_by_name, #get_control_by_ui_id, #release!, #remove_control

Methods inherited from Control

#add_event_handler, #call_event, #disabled=, #disabled?, #enabled=, #enabled?, events, has_event?, #inspect, #move, #position, #positioned?, #properties, #release!, #size

Methods included from ControlEvents

included

Constructor Details

#initialize(label = '') ⇒ Groupbox

Returns a new instance of Groupbox

Parameters:

  • label (String) (defaults to: '')

Since:

  • 2.7.0



507
508
509
510
# File 'TT_Lib2/gui.rb', line 507

def initialize( label = '' )
  super
  @label = label
end

Instance Attribute Details

#labelObject

Since:

  • 2.7.0



502
503
504
# File 'TT_Lib2/gui.rb', line 502

def label
  @label
end

Instance Method Details

#custom_propertiesTT::JSON

Returns:

Since:

  • 2.7.0



524
525
526
527
528
# File 'TT_Lib2/gui.rb', line 524

def custom_properties
  prop = TT::JSON.new
  prop['label'] = @label
  prop
end