Sha256: 44ae7b2ce164a4af7aa1c806d90f5263ed8198e83533e5d4dcaef773fcb84318
Contents?: true
Size: 980 Bytes
Versions: 2
Compression:
Stored size: 980 Bytes
Contents
class Shoes module Swt class Slot include Common::Container include Common::Clickable include Common::Visibility attr_reader :real, :dsl, :parent, :app def initialize(dsl, parent) @dsl = dsl @parent = parent @real = parent.real @app = @parent.app end # needed by Layouter code, but slots are no physical elements so they def update_position end # This is more like a temporary work around until slots have a real # backend representations that can just hide their contents all together # I decided to put this logic in the backend since the hiding is a backend # responsibility, although this is more DSL code # #904 #905 def update_visibility if dsl.hidden? dsl.contents.each(&:hide) else dsl.contents.each(&:show) end end end class Flow < Slot; end class Stack < Slot; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre4 | lib/shoes/swt/slot.rb |
shoes-swt-4.0.0.pre3 | lib/shoes/swt/slot.rb |