Class: Interphase::SimpleStatusBar

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

Overview

Provides a simple status bar which can display a single message.

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(**options, &block) ⇒ SimpleStatusBar

Create a new simple status bar.


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

def initialize(**options, &block)
  super(Gtk::Statusbar.new, options, &block)
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/status_bar.rb', line 8

def text
  @text
end