Sha256: 0dbb949e6f196c6461c50173c726195bf7ffb9af822315f5e094132bfd745d47
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
class Shoes class Image include CommonMethods include Common::Clickable include DimensionsDelegations attr_reader :parent, :blk, :gui, :app, :file_path, :opts, :dimensions def initialize(app, parent, file_path, opts = {}, blk = nil) @app = app @parent = parent @file_path = file_path @opts = opts @blk = blk parent.add_child self @dimensions = Dimensions.new parent, opts @gui = Shoes.configuration.backend_for(self, @parent.gui, blk) clickable_options(opts) end def path @file_path end def path=(path) @file_path = path @gui.update_image end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | lib/shoes/image.rb |