Class: SKUI::Textbox

Inherits:
Control show all
Defined in:
src/SKUI/textbox.rb

Overview

Since:

  • 1.0.0

Instance Attribute Summary

Attributes inherited from Control

#rect

Attributes inherited from Base

#properties, #window

Instance Method Summary collapse

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(value = '') ⇒ Textbox

Returns a new instance of Textbox.

Parameters:

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

Since:

  • 1.0.0



35
36
37
38
# File 'src/SKUI/textbox.rb', line 35

def initialize( value = '' )
  super()
  @properties[ :value ] = value
end

Instance Method Details

#multilineBoolean

Returns:

  • (Boolean)

Since:

  • 1.0.0



15
# File 'src/SKUI/textbox.rb', line 15

prop_bool( :multiline, &TypeCheck::BOOLEAN )

#passwordBoolean

Returns:

  • (Boolean)

Since:

  • 1.0.0



23
# File 'src/SKUI/textbox.rb', line 23

prop_bool( :password, &TypeCheck::BOOLEAN )

#readonlyBoolean

Returns:

  • (Boolean)

Since:

  • 1.0.0



19
# File 'src/SKUI/textbox.rb', line 19

prop_bool( :readonly, &TypeCheck::BOOLEAN )

#valueString

Returns:

  • (String)

Since:

  • 1.0.0



11
# File 'src/SKUI/textbox.rb', line 11

prop_writer( :value, &TypeCheck::STRING )