Class: PdflibMini::Handle::Path
- Includes:
- InfoReader
- Defined in:
- lib/pdflib_mini/handle/path.rb
Constant Summary collapse
- INFO_KEYWORD =
[ PdflibMini::Info::INFO_KEYWORD_TABLE_6_3, PdflibMini::Info::INFO_KEYWORD_TABLE_7_8, ].reduce([], :+)
Instance Method Summary collapse
-
#add_path_point(*args) ⇒ Object
7.6 Path Objects int add_path_point(int path, float x, float y, string type, string optlist).
-
#delete_path ⇒ Object
7.6 Path Objects delete_path(int path).
-
#draw_path(*args) ⇒ Object
7.6 Path Objects draw_path(int path, float x, float y, string optlist).
-
#info_path(*args) ⇒ Object
7.6 Path Objects float info_path(int path, string keyword, string optlist).
-
#initialize(path, p) ⇒ Path
constructor
A new instance of Path.
Methods included from InfoReader
Methods inherited from Base
Constructor Details
#initialize(path, p) ⇒ Path
Returns a new instance of Path.
15 16 17 18 |
# File 'lib/pdflib_mini/handle/path.rb', line 15 def initialize(path, p) super(path) @p = p end |
Instance Method Details
#add_path_point(*args) ⇒ Object
7.6 Path Objects int add_path_point(int path, float x, float y, string type, string optlist)
22 23 24 |
# File 'lib/pdflib_mini/handle/path.rb', line 22 def add_path_point(*args) @p.add_path_point(self, *args) end |
#delete_path ⇒ Object
7.6 Path Objects delete_path(int path)
40 41 42 |
# File 'lib/pdflib_mini/handle/path.rb', line 40 def delete_path @p.delete_path(self) end |
#draw_path(*args) ⇒ Object
7.6 Path Objects draw_path(int path, float x, float y, string optlist)
28 29 30 |
# File 'lib/pdflib_mini/handle/path.rb', line 28 def draw_path(*args) @p.draw_path(self, *args) end |
#info_path(*args) ⇒ Object
7.6 Path Objects float info_path(int path, string keyword, string optlist)
34 35 36 |
# File 'lib/pdflib_mini/handle/path.rb', line 34 def info_path(*args) @p.info_path(self, *args) end |