Sha256: 9db82895be379e75d546bac83d63f7c6f946a2b9f2b57ad176040ebec371d6be
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
class Shoes module Swt class Progress include Common::Child include Common::Remove include Common::Visibility include Common::UpdatePosition include DisposedProtection include ::Shoes::BackendDimensionsDelegations attr_reader :parent, :dsl def initialize(dsl, parent) @dsl = dsl @parent = parent @real = ::Swt::Widgets::ProgressBar.new(@parent.real, ::Swt::SWT::SMOOTH) real.minimum = 0 real.maximum = 100 if @dsl.element_width && @dsl.element_height real.setSize dsl.element_width, dsl.element_height else real.pack @dsl.element_width = real.size.x @dsl.element_height = real.size.y end end def fraction=(value) real.selection = (value * 100).to_i end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre4 | lib/shoes/swt/progress.rb |