Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 1.6.1


Expand All
Contract All

Table of Contents

wxPrintout

MODULE

wxPrintout

MODULE SUMMARY

See external documentation: wxPrintout.

DESCRIPTION

See external documentation: wxPrintout.

DATA TYPES

wxPrintout()

An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

EXPORTS

new(Title::string(), OnPrintPage::function()) -> wxPrintout() (see module wxPrintout)

@equiv new(Title, OnPrintPage, [])

new(Title::string(), OnPrintPage::function(), Opts::[Option]) -> wxPrintout() (see module wxPrintout)

Types:

Option = {onPreparePrinting, OnPreparePrinting::function()} | {onBeginPrinting, OnBeginPrinting::function()} | {onEndPrinting, OnEndPrinting::function()} | {onBeginDocument, OnBeginDocument::function()} | {onEndDocument, OnEndDocument::function()} | {hasPage, HasPage::function()} | {getPageInfo, GetPageInfo::function()}

Creates a wxPrintout object with a callback fun and optionally other callback funs.

OnPrintPage(This,Page) -> boolean() 
OnPreparePrinting(This) -> term()   
OnBeginPrinting(This) -> term()   
OnEndPrinting(This) -> term()   
OnBeginDocument(This,StartPage,EndPage) -> boolean()  
OnEndDocument(This) -> term()  
HasPage(This,Page)} -> boolean()   
GetPageInfo(This) -> {MinPage::integer(), MaxPage::integer(),
                               PageFrom::integer(), PageTo::integer()}  

The This argument is the wxPrintout object reference to this object
NOTE: The callbacks may not call other processes.

getDC(This) -> wxDC() (see module wxDC)

Types:

This = wxPrintout()

getPageSizeMM(This) -> {W::integer(), H::integer()}

Types:

This = wxPrintout()

getPageSizePixels(This) -> {W::integer(), H::integer()}

Types:

This = wxPrintout()

getPaperRectPixels(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()}

Types:

This = wxPrintout()

getPPIPrinter(This) -> {X::integer(), Y::integer()}

Types:

This = wxPrintout()

getPPIScreen(This) -> {X::integer(), Y::integer()}

Types:

This = wxPrintout()

getTitle(This) -> charlist() (see module unicode)

Types:

This = wxPrintout()

isPreview(This) -> boolean()

Types:

This = wxPrintout()

fitThisSizeToPaper(This, ImageSize) -> ok

Types:

This = wxPrintout()
ImageSize = {W::integer(), H::integer()}

fitThisSizeToPage(This, ImageSize) -> ok

Types:

This = wxPrintout()
ImageSize = {W::integer(), H::integer()}

fitThisSizeToPageMargins(This, ImageSize, PageSetupData) -> ok

Types:

This = wxPrintout()
ImageSize = {W::integer(), H::integer()}
PageSetupData = wxPageSetupDialogData() (see module wxPageSetupDialogData)

mapScreenSizeToPaper(This) -> ok

Types:

This = wxPrintout()

mapScreenSizeToPage(This) -> ok

Types:

This = wxPrintout()

mapScreenSizeToPageMargins(This, PageSetupData) -> ok

Types:

This = wxPrintout()
PageSetupData = wxPageSetupDialogData() (see module wxPageSetupDialogData)

mapScreenSizeToDevice(This) -> ok

Types:

This = wxPrintout()

getLogicalPaperRect(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()}

Types:

This = wxPrintout()

getLogicalPageRect(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()}

Types:

This = wxPrintout()

getLogicalPageMarginsRect(This, PageSetupData) -> {X::integer(), Y::integer(), W::integer(), H::integer()}

Types:

This = wxPrintout()
PageSetupData = wxPageSetupDialogData() (see module wxPageSetupDialogData)

setLogicalOrigin(This, X, Y) -> ok

Types:

This = wxPrintout()
X = integer()
Y = integer()

offsetLogicalOrigin(This, Xoff, Yoff) -> ok

Types:

This = wxPrintout()
Xoff = integer()
Yoff = integer()

destroy(This::wxPrintout()) -> ok

Destroys this object, do not use object again