Sha256: 5b11581298595da0c2cf9d0213fd16db28f46817f63c2678c37cc6bd9880938f
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
class Shoes module Swt class TextBlock class Painter include ::Swt::Events::PaintListener include Common::Resource attr_reader :app def initialize(dsl) @dsl = dsl end def paintControl(paint_event) # See #636 for discussion, contents_alignment may not run or if the # space is very narrow we might squish things down to be very narrow. # If paint is triggered then, code later on will crash. return if @dsl.hidden? || @dsl.gui.segments.nil? || @dsl.gui.segments.empty? reset_graphics_context(paint_event.gc) @dsl.gui.segments.paint_control(paint_event.gc) end 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/text_block/painter.rb |