Sha256: 283538f8183343b30df8c0109aa6c1376cc2a9e3f96aefe9f12c7674f42a0b44
Contents?: true
Size: 837 Bytes
Versions: 4
Compression:
Stored size: 837 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) clip_context_to(paint_event.gc, @dsl.parent) do |gc| @dsl.gui.segments.paint_control(gc) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems