Class: SKUI::Label
Overview
Instance Attribute Summary
Attributes inherited from Control
Attributes inherited from Base
Instance Method Summary collapse
- #align ⇒ Control
- #caption ⇒ String
- #control ⇒ Control
-
#initialize(caption, control = nil) ⇒ Label
constructor
A new instance of Label.
- #url ⇒ String
Methods inherited from Control
#enabled, #left, #name, #position, #release, #size, #stretch, #tab_index, #tooltip, #visible, #width, #z_index
Methods inherited from Base
#background_color, #font, #foreground_color, #inspect, #parent, #release, #to_js, #typename, #ui_id
Methods included from Events
#add_event_handler, included, #release_events, #trigger_event
Constructor Details
#initialize(caption, control = nil) ⇒ Label
Returns a new instance of Label.
32 33 34 35 36 37 38 39 40 41 42 |
# File 'src/SKUI/label.rb', line 32 def initialize( , control = nil ) super() @properties[ :align ] = :left @properties[ :caption ] = @properties[ :control ] = control add_event_handler( :open_url ) { |param| UI.openURL( param ) } end |