Class: Interphase::Entry

Inherits:
Widget
  • Object
show all
Defined in:
lib/interphase/widgets/entry.rb

Overview

A box containing text which can be edited by the user.

Instance Attribute Summary collapse

Attributes inherited from Widget

#gtk_instance, #name, #parent

Instance Method Summary collapse

Methods inherited from Widget

#destroy, #method_missing, #on, #respond_to_missing?, #show, #size

Constructor Details

#initialize(text = "", **options, &block) ⇒ Entry

Creates a new text entry widget.


11
12
13
14
# File 'lib/interphase/widgets/entry.rb', line 11

def initialize(text="", **options, &block)
  super(Gtk::Entry.new, **options, &block)
  @text = text
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Interphase::Widget

Instance Attribute Details

#textObject

Returns the value of attribute text


8
9
10
# File 'lib/interphase/widgets/entry.rb', line 8

def text
  @text
end