Sha256: 23466cb12f04ac236bf9efbbcd29beea4a9694e7f26f095f45b0a985ff76de75
Contents?: true
Size: 835 Bytes
Versions: 4
Compression:
Stored size: 835 Bytes
Contents
# frozen_string_literal: true class Shoes module Swt class Border extend Forwardable include Common::Fill include Common::Stroke include Common::Remove include Common::Visibility include Common::Translate include ::Shoes::BackendDimensionsDelegations def_delegators :dsl, :angle attr_reader :app, :dsl, :painter, :transform def initialize(dsl, app) @dsl = dsl @app = app @container = @app.real @painter = Painter.new(self) @app.add_paint_listener @painter end def corners dsl.curve end class Painter < RectPainter def fill_setup(_gc) # don't draw end def draw_setup(gc) @obj.apply_stroke gc true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre12 | lib/shoes/swt/border.rb |
shoes-swt-4.0.0.pre11 | lib/shoes/swt/border.rb |
shoes-swt-4.0.0.pre10 | lib/shoes/swt/border.rb |
shoes-swt-4.0.0.pre9 | lib/shoes/swt/border.rb |