Class: SKUI::Image

Inherits:
Control show all
Defined in:
src/SKUI/image.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(filename) ⇒ Image

Returns a new instance of Image.

Parameters:

  • filename (String)

Since:

  • 1.0.0



16
17
18
19
# File 'src/SKUI/image.rb', line 16

def initialize( filename )
  super()
  @properties[ :file ] = filename
end

Instance Method Details

#fileString

Returns:

  • (String)

Since:

  • 1.0.0



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

prop( :file, &TypeCheck::STRING )