<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Fox::FXDCPrint
— FXRuby API Documentation
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "Fox::FXDCPrint";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (F)</a> »
<span class='title'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span>
»
<span class="title">FXDCPrint</span>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="../class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Class: Fox::FXDCPrint
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="FXDC.html" title="Fox::FXDC (class)">FXDC</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="FXDC.html" title="Fox::FXDC (class)">FXDC</a></span></li>
<li class="next">Fox::FXDCPrint</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>rdoc-sources/FXDCPrint.rb<span class="defines">,<br />
lib/fox16/iterators.rb</span>
</dd>
</dl>
</div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>Postscript Printer Device Context</p>
</div>
</div>
<div class="tags">
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="FXDC.html" title="Fox::FXDC (class)">FXDC</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXDC.html#app-instance_method" title="Fox::FXDC#app (method)">#app</a></span>, <span class='object_link'><a href="FXDC.html#background-instance_method" title="Fox::FXDC#background (method)">#background</a></span>, <span class='object_link'><a href="FXDC.html#clipHeight-instance_method" title="Fox::FXDC#clipHeight (method)">#clipHeight</a></span>, <span class='object_link'><a href="FXDC.html#clipRectangle-instance_method" title="Fox::FXDC#clipRectangle (method)">#clipRectangle</a></span>, <span class='object_link'><a href="FXDC.html#clipRegion=-instance_method" title="Fox::FXDC#clipRegion= (method)">#clipRegion</a></span>, <span class='object_link'><a href="FXDC.html#clipWidth-instance_method" title="Fox::FXDC#clipWidth (method)">#clipWidth</a></span>, <span class='object_link'><a href="FXDC.html#clipX-instance_method" title="Fox::FXDC#clipX (method)">#clipX</a></span>, <span class='object_link'><a href="FXDC.html#clipY-instance_method" title="Fox::FXDC#clipY (method)">#clipY</a></span>, <span class='object_link'><a href="FXDC.html#dashLength-instance_method" title="Fox::FXDC#dashLength (method)">#dashLength</a></span>, <span class='object_link'><a href="FXDC.html#dashOffset-instance_method" title="Fox::FXDC#dashOffset (method)">#dashOffset</a></span>, <span class='object_link'><a href="FXDC.html#dashPattern-instance_method" title="Fox::FXDC#dashPattern (method)">#dashPattern</a></span>, <span class='object_link'><a href="FXDC.html#fillRule-instance_method" title="Fox::FXDC#fillRule (method)">#fillRule</a></span>, <span class='object_link'><a href="FXDC.html#fillStyle-instance_method" title="Fox::FXDC#fillStyle (method)">#fillStyle</a></span>, <span class='object_link'><a href="FXDC.html#font-instance_method" title="Fox::FXDC#font (method)">#font</a></span>, <span class='object_link'><a href="FXDC.html#foreground-instance_method" title="Fox::FXDC#foreground (method)">#foreground</a></span>, <span class='object_link'><a href="FXDC.html#function-instance_method" title="Fox::FXDC#function (method)">#function</a></span>, <span class='object_link'><a href="FXDC.html#lineCap-instance_method" title="Fox::FXDC#lineCap (method)">#lineCap</a></span>, <span class='object_link'><a href="FXDC.html#lineJoin-instance_method" title="Fox::FXDC#lineJoin (method)">#lineJoin</a></span>, <span class='object_link'><a href="FXDC.html#lineStyle-instance_method" title="Fox::FXDC#lineStyle (method)">#lineStyle</a></span>, <span class='object_link'><a href="FXDC.html#lineWidth-instance_method" title="Fox::FXDC#lineWidth (method)">#lineWidth</a></span>, <span class='object_link'><a href="FXDC.html#stipple-instance_method" title="Fox::FXDC#stipple (method)">#stipple</a></span>, <span class='object_link'><a href="FXDC.html#tile-instance_method" title="Fox::FXDC#tile (method)">#tile</a></span></p>
<h2>
Instance Method Summary
<small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#beginPage-instance_method" title="#beginPage (instance method)">#<strong>beginPage</strong>(page = 1) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Generate beginning of <em>page</em> (the page number).</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#beginPage0-instance_method" title="#beginPage0 (instance method)">#<strong>beginPage0</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>:nodoc:.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#beginPrint-instance_method" title="#beginPrint (instance method)">#<strong>beginPrint</strong>(job) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Begin print session described by <em>job</em> (an FXPrinter instance).</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#beginPrint0-instance_method" title="#beginPrint0 (instance method)">#<strong>beginPrint0</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>:nodoc:.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#endPage-instance_method" title="#endPage (instance method)">#<strong>endPage</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Generate end of page.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#endPrint-instance_method" title="#endPrint (instance method)">#<strong>endPrint</strong> ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Generate print job epilog.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app) ⇒ FXDCPrint </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>Returns an initialized FXDCPrint instance.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#setContentRange-instance_method" title="#setContentRange (instance method)">#<strong>setContentRange</strong>(pxmin, pymin, pxmax, pymax) ⇒ Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXDC.html" title="Fox::FXDC (class)">FXDC</a></span></h3>
<p class="inherited"><span class='object_link'><a href="FXDC.html#clearClipMask-instance_method" title="Fox::FXDC#clearClipMask (method)">#clearClipMask</a></span>, <span class='object_link'><a href="FXDC.html#clearClipRectangle-instance_method" title="Fox::FXDC#clearClipRectangle (method)">#clearClipRectangle</a></span>, <span class='object_link'><a href="FXDC.html#clipChildren-instance_method" title="Fox::FXDC#clipChildren (method)">#clipChildren</a></span>, <span class='object_link'><a href="FXDC.html#drawArc-instance_method" title="Fox::FXDC#drawArc (method)">#drawArc</a></span>, <span class='object_link'><a href="FXDC.html#drawArcs-instance_method" title="Fox::FXDC#drawArcs (method)">#drawArcs</a></span>, <span class='object_link'><a href="FXDC.html#drawArea-instance_method" title="Fox::FXDC#drawArea (method)">#drawArea</a></span>, <span class='object_link'><a href="FXDC.html#drawBitmap-instance_method" title="Fox::FXDC#drawBitmap (method)">#drawBitmap</a></span>, <span class='object_link'><a href="FXDC.html#drawCircle-instance_method" title="Fox::FXDC#drawCircle (method)">#drawCircle</a></span>, <span class='object_link'><a href="FXDC.html#drawEllipse-instance_method" title="Fox::FXDC#drawEllipse (method)">#drawEllipse</a></span>, <span class='object_link'><a href="FXDC.html#drawFocusRectangle-instance_method" title="Fox::FXDC#drawFocusRectangle (method)">#drawFocusRectangle</a></span>, <span class='object_link'><a href="FXDC.html#drawHashBox-instance_method" title="Fox::FXDC#drawHashBox (method)">#drawHashBox</a></span>, <span class='object_link'><a href="FXDC.html#drawIcon-instance_method" title="Fox::FXDC#drawIcon (method)">#drawIcon</a></span>, <span class='object_link'><a href="FXDC.html#drawIconShaded-instance_method" title="Fox::FXDC#drawIconShaded (method)">#drawIconShaded</a></span>, <span class='object_link'><a href="FXDC.html#drawIconSunken-instance_method" title="Fox::FXDC#drawIconSunken (method)">#drawIconSunken</a></span>, <span class='object_link'><a href="FXDC.html#drawImage-instance_method" title="Fox::FXDC#drawImage (method)">#drawImage</a></span>, <span class='object_link'><a href="FXDC.html#drawImageText-instance_method" title="Fox::FXDC#drawImageText (method)">#drawImageText</a></span>, <span class='object_link'><a href="FXDC.html#drawLine-instance_method" title="Fox::FXDC#drawLine (method)">#drawLine</a></span>, <span class='object_link'><a href="FXDC.html#drawLineSegments-instance_method" title="Fox::FXDC#drawLineSegments (method)">#drawLineSegments</a></span>, <span class='object_link'><a href="FXDC.html#drawLines-instance_method" title="Fox::FXDC#drawLines (method)">#drawLines</a></span>, <span class='object_link'><a href="FXDC.html#drawLinesRel-instance_method" title="Fox::FXDC#drawLinesRel (method)">#drawLinesRel</a></span>, <span class='object_link'><a href="FXDC.html#drawPoint-instance_method" title="Fox::FXDC#drawPoint (method)">#drawPoint</a></span>, <span class='object_link'><a href="FXDC.html#drawPoints-instance_method" title="Fox::FXDC#drawPoints (method)">#drawPoints</a></span>, <span class='object_link'><a href="FXDC.html#drawPointsRel-instance_method" title="Fox::FXDC#drawPointsRel (method)">#drawPointsRel</a></span>, <span class='object_link'><a href="FXDC.html#drawRectangle-instance_method" title="Fox::FXDC#drawRectangle (method)">#drawRectangle</a></span>, <span class='object_link'><a href="FXDC.html#drawRectangles-instance_method" title="Fox::FXDC#drawRectangles (method)">#drawRectangles</a></span>, <span class='object_link'><a href="FXDC.html#drawRoundRectangle-instance_method" title="Fox::FXDC#drawRoundRectangle (method)">#drawRoundRectangle</a></span>, <span class='object_link'><a href="FXDC.html#drawText-instance_method" title="Fox::FXDC#drawText (method)">#drawText</a></span>, <span class='object_link'><a href="FXDC.html#fillArc-instance_method" title="Fox::FXDC#fillArc (method)">#fillArc</a></span>, <span class='object_link'><a href="FXDC.html#fillArcs-instance_method" title="Fox::FXDC#fillArcs (method)">#fillArcs</a></span>, <span class='object_link'><a href="FXDC.html#fillChord-instance_method" title="Fox::FXDC#fillChord (method)">#fillChord</a></span>, <span class='object_link'><a href="FXDC.html#fillChords-instance_method" title="Fox::FXDC#fillChords (method)">#fillChords</a></span>, <span class='object_link'><a href="FXDC.html#fillCircle-instance_method" title="Fox::FXDC#fillCircle (method)">#fillCircle</a></span>, <span class='object_link'><a href="FXDC.html#fillComplexPolygon-instance_method" title="Fox::FXDC#fillComplexPolygon (method)">#fillComplexPolygon</a></span>, <span class='object_link'><a href="FXDC.html#fillComplexPolygonRel-instance_method" title="Fox::FXDC#fillComplexPolygonRel (method)">#fillComplexPolygonRel</a></span>, <span class='object_link'><a href="FXDC.html#fillConcavePolygon-instance_method" title="Fox::FXDC#fillConcavePolygon (method)">#fillConcavePolygon</a></span>, <span class='object_link'><a href="FXDC.html#fillConcavePolygonRel-instance_method" title="Fox::FXDC#fillConcavePolygonRel (method)">#fillConcavePolygonRel</a></span>, <span class='object_link'><a href="FXDC.html#fillEllipse-instance_method" title="Fox::FXDC#fillEllipse (method)">#fillEllipse</a></span>, <span class='object_link'><a href="FXDC.html#fillPolygon-instance_method" title="Fox::FXDC#fillPolygon (method)">#fillPolygon</a></span>, <span class='object_link'><a href="FXDC.html#fillPolygonRel-instance_method" title="Fox::FXDC#fillPolygonRel (method)">#fillPolygonRel</a></span>, <span class='object_link'><a href="FXDC.html#fillRectangle-instance_method" title="Fox::FXDC#fillRectangle (method)">#fillRectangle</a></span>, <span class='object_link'><a href="FXDC.html#fillRectangles-instance_method" title="Fox::FXDC#fillRectangles (method)">#fillRectangles</a></span>, <span class='object_link'><a href="FXDC.html#fillRoundRectangle-instance_method" title="Fox::FXDC#fillRoundRectangle (method)">#fillRoundRectangle</a></span>, <span class='object_link'><a href="FXDC.html#readPixel-instance_method" title="Fox::FXDC#readPixel (method)">#readPixel</a></span>, <span class='object_link'><a href="FXDC.html#setClipMask-instance_method" title="Fox::FXDC#setClipMask (method)">#setClipMask</a></span>, <span class='object_link'><a href="FXDC.html#setClipRectangle-instance_method" title="Fox::FXDC#setClipRectangle (method)">#setClipRectangle</a></span>, <span class='object_link'><a href="FXDC.html#setDashes-instance_method" title="Fox::FXDC#setDashes (method)">#setDashes</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
#<strong>initialize</strong>(app) ⇒ <tt><span class='object_link'><a href="" title="Fox::FXDCPrint (class)">FXDCPrint</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns an initialized FXDCPrint instance.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
109
110</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXDCPrint.rb', line 109</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_app'>app</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="beginPage-instance_method">
#<strong>beginPage</strong>(page = 1) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Generate beginning of <em>page</em> (the page number). If an optional code block is provided, #endPage is automatically called after the block terminates.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
407
408
409
410
411
412
413
414
415
416
417
418</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/fox16/iterators.rb', line 407</span>
<span class='kw'>def</span> <span class='id identifier rubyid_beginPage'>beginPage</span><span class='lparen'>(</span><span class='id identifier rubyid_page'>page</span><span class='op'>=</span><span class='int'>1</span><span class='rparen'>)</span> <span class='comment'># :yields: theDC
</span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_beginPage0'>beginPage0</span><span class='lparen'>(</span><span class='id identifier rubyid_page'>page</span><span class='rparen'>)</span>
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
<span class='kw'>begin</span>
<span class='kw'>yield</span> <span class='kw'>self</span>
<span class='kw'>ensure</span>
<span class='id identifier rubyid_endPage'>endPage</span>
<span class='kw'>end</span>
<span class='kw'>else</span>
<span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="beginPage0-instance_method">
#<strong>beginPage0</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>:nodoc:</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
400</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/fox16/iterators.rb', line 400</span>
<span class='kw'>alias</span> <span class='id identifier rubyid_beginPage0'>beginPage0</span> <span class='id identifier rubyid_beginPage'>beginPage</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="beginPrint-instance_method">
#<strong>beginPrint</strong>(job) ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Begin print session described by <em>job</em> (an FXPrinter instance). If an optional code block is provided, #endPrint is automatically called after the block terminates.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
387
388
389
390
391
392
393
394
395
396
397
398</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/fox16/iterators.rb', line 387</span>
<span class='kw'>def</span> <span class='id identifier rubyid_beginPrint'>beginPrint</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='rparen'>)</span> <span class='comment'># :yields: theDC
</span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_beginPrint0'>beginPrint0</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='rparen'>)</span>
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
<span class='kw'>begin</span>
<span class='kw'>yield</span> <span class='kw'>self</span>
<span class='kw'>ensure</span>
<span class='id identifier rubyid_endPrint'>endPrint</span>
<span class='kw'>end</span>
<span class='kw'>else</span>
<span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="beginPrint0-instance_method">
#<strong>beginPrint0</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>:nodoc:</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
380</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/fox16/iterators.rb', line 380</span>
<span class='kw'>alias</span> <span class='id identifier rubyid_beginPrint0'>beginPrint0</span> <span class='id identifier rubyid_beginPrint'>beginPrint</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="endPage-instance_method">
#<strong>endPage</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Generate end of page. See also <span class='object_link'><a href="#beginPage-instance_method" title="Fox::FXDCPrint#beginPage (method)">#beginPage</a></span>.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
122</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXDCPrint.rb', line 122</span>
<span class='kw'>def</span> <span class='id identifier rubyid_endPage'>endPage</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="endPrint-instance_method">
#<strong>endPrint</strong> ⇒ <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Generate print job epilog. See also <span class='object_link'><a href="#beginPrint-instance_method" title="Fox::FXDCPrint#beginPrint (method)">#beginPrint</a></span>.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
116</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXDCPrint.rb', line 116</span>
<span class='kw'>def</span> <span class='id identifier rubyid_endPrint'>endPrint</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="setContentRange-instance_method">
#<strong>setContentRange</strong>(pxmin, pymin, pxmax, pymax) ⇒ <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
124</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'rdoc-sources/FXDCPrint.rb', line 124</span>
<span class='kw'>def</span> <span class='id identifier rubyid_setContentRange'>setContentRange</span><span class='lparen'>(</span><span class='id identifier rubyid_pxmin'>pxmin</span><span class='comma'>,</span> <span class='id identifier rubyid_pymin'>pymin</span><span class='comma'>,</span> <span class='id identifier rubyid_pxmax'>pxmax</span><span class='comma'>,</span> <span class='id identifier rubyid_pymax'>pymax</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Mon Jan 2 11:47:33 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.28 (ruby-3.1.2).
</div>
</div>
</body>
</html>