Class: Gtk::EntryBuffer
- Inherits:
-
Object
- Object
- Gtk::EntryBuffer
- Defined in:
- lib/gtk4/entry-buffer.rb
Instance Method Summary collapse
-
#initialize(text = nil) ⇒ EntryBuffer
constructor
A new instance of EntryBuffer.
- #initialize_raw ⇒ Object
Constructor Details
#initialize(text = nil) ⇒ EntryBuffer
Returns a new instance of EntryBuffer.
20 21 22 23 24 25 26 |
# File 'lib/gtk4/entry-buffer.rb', line 20 def initialize(text=nil) if text.nil? initialize_raw(nil, -1) else initialize_raw(text, text.size) end end |
Instance Method Details
#initialize_raw ⇒ Object
19 |
# File 'lib/gtk4/entry-buffer.rb', line 19 alias_method :initialize_raw, :initialize |