Class: Fox::FXDCPrint

Inherits:
FXDC
  • Object
show all
Defined in:
rdoc-sources/FXDCPrint.rb,
lib/fox16/iterators.rb

Overview

Postscript Printer Device Context

Instance Attribute Summary

Attributes inherited from FXDC

#app, #background, #clipHeight, #clipRectangle, #clipRegion, #clipWidth, #clipX, #clipY, #dashLength, #dashOffset, #dashPattern, #fillRule, #fillStyle, #font, #foreground, #function, #lineCap, #lineJoin, #lineStyle, #lineWidth, #stipple, #tile

Instance Method Summary collapse

Methods inherited from FXDC

#clearClipMask, #clearClipRectangle, #clipChildren, #drawArc, #drawArcs, #drawArea, #drawBitmap, #drawCircle, #drawEllipse, #drawFocusRectangle, #drawHashBox, #drawIcon, #drawIconShaded, #drawIconSunken, #drawImage, #drawImageText, #drawLine, #drawLineSegments, #drawLines, #drawLinesRel, #drawPoint, #drawPoints, #drawPointsRel, #drawRectangle, #drawRectangles, #drawRoundRectangle, #drawText, #fillArc, #fillArcs, #fillChord, #fillChords, #fillCircle, #fillComplexPolygon, #fillComplexPolygonRel, #fillConcavePolygon, #fillConcavePolygonRel, #fillEllipse, #fillPolygon, #fillPolygonRel, #fillRectangle, #fillRectangles, #fillRoundRectangle, #readPixel, #setClipMask, #setClipRectangle, #setDashes

Constructor Details

#initialize(app) ⇒ FXDCPrint

Returns an initialized FXDCPrint instance.



109
110
# File 'rdoc-sources/FXDCPrint.rb', line 109

def initialize(app)
end

Instance Method Details

#beginPage(page = 1) ⇒ Object

Generate beginning of page (the page number). If an optional code block is provided, #endPage is automatically called after the block terminates.



407
408
409
410
411
412
413
414
415
416
417
418
# File 'lib/fox16/iterators.rb', line 407

def beginPage(page=1) # :yields: theDC
  result = beginPage0(page)
  if block_given?
    begin
  	  yield self
  	ensure
  	  endPage
  	end
  else
    result
  end
end

#beginPage0Object

:nodoc:



400
# File 'lib/fox16/iterators.rb', line 400

alias beginPage0 beginPage

#beginPrint(job) ⇒ Object

Begin print session described by job (an FXPrinter instance). If an optional code block is provided, #endPrint is automatically called after the block terminates.



387
388
389
390
391
392
393
394
395
396
397
398
# File 'lib/fox16/iterators.rb', line 387

def beginPrint(job) # :yields: theDC
  result = beginPrint0(job)
  if block_given?
    begin
  	  yield self
  	ensure
  	  endPrint
  	end
  else
    result
  end
end

#beginPrint0Object

:nodoc:



380
# File 'lib/fox16/iterators.rb', line 380

alias beginPrint0 beginPrint

#endPageObject

Generate end of page. See also #beginPage.



122
# File 'rdoc-sources/FXDCPrint.rb', line 122

def endPage(); end

#endPrintObject

Generate print job epilog. See also #beginPrint.



116
# File 'rdoc-sources/FXDCPrint.rb', line 116

def endPrint(); end

#setContentRange(pxmin, pymin, pxmax, pymax) ⇒ Object



124
# File 'rdoc-sources/FXDCPrint.rb', line 124

def setContentRange(pxmin, pymin, pxmax, pymax); end