File: text.rb

package info (click to toggle)
ruby-ox 2.14.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,504 kB
  • sloc: xml: 39,683; ansic: 9,626; ruby: 6,441; sh: 47; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Test
  module Ox
    class Text < Shape
      attr_accessor :text
      attr_accessor :font
      attr_accessor :font_size
      attr_accessor :just
      attr_accessor :text_color

      def initialize(text, left, top, wide, high, color=nil)
        super(left, top, wide, high, color)
        @text = text
        @font = 'helvetica'
        @font_size = 14
        @just = 'left'
        @text_color = 'black'
      end
    end # Text
  end # Ox
end # Test