Sha256: b043eddfd00db118e55ae72ec5cd03ef97dec2bda39d700cea1ac830f830debf

Contents?: true

Size: 482 Bytes

Versions: 30

Compression:

Stored size: 482 Bytes

Contents

class KlondikeSolitaire
  module View
    class HiddenPlayingCard
      include Glimmer::UI::CustomShape
  
      options :card_x, :card_y
      
      before_body do
        self.card_x ||= 0
        self.card_y ||= 0
      end
      
      body {
        rectangle(card_x, card_y, 49, 79, 15, 15) {
          background :red
          
          # border
          rectangle(0, 0, 49, 79, 15, 15) {
            foreground :black
          }
        }
      }
  
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
glimmer-dsl-swt-4.20.14.0 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.18 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.17 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.16 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.15 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.14 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.13 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.12 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.11 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb
glimmer-dsl-swt-4.20.13.10 samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb