Sha256: 93ec7253fe9fd97f63a716030dead871eb4ccd1db5ff75d91450c04d9e8066ad

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

require 'glimmer/swt/property_owner'

module Glimmer
  module SWT
    class LayoutDataProxy
      include Glimmer::SWT::PropertyOwner
      attr_reader :parent, 
                  :args, 
                  :horizontal_alignment, 
                  :vertical_alignment, 
                  :grab_excess_horizontal_space,
                  :grab_excess_vertical_space,
                  :height_hint
    
      def initialize(parent, args)
        @parent = parent
        @args = args
        reapply
      end

      def height_hint=(height_hint)
        @height_hint = height_hint
        reapply
      end

      def horizontal_alignment=(horizontal_alignment)
        @horizontal_alignment = horizontal_alignment
        reapply
      end
      
      def vertical_alignment=(vertical_alignment)
        @vertical_alignment = vertical_alignment
        reapply
      end
      
      def grab_excess_horizontal_space=(grab_excess_horizontal_space)
        @grab_excess_horizontal_space = grab_excess_horizontal_space
        reapply
      end

      def grab_excess_vertical_space=(grab_excess_vertical_space)
        @grab_excess_vertical_space = grab_excess_vertical_space
        reapply
      end

      def reapply
#         @parent.css = <<~CSS
#         CSS
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glimmer-dsl-opal-0.2.0 lib/glimmer/swt/layout_data_proxy.rb
glimmer-dsl-opal-0.1.0 lib/glimmer/swt/layout_data_proxy.rb