KLayout Manual: Main Index » Class Index » API reference - Class QPrinterInfo

API reference - Class QPrinterInfo

Notation used in Ruby API documentation

Description: Binding of QPrinterInfo

Public constructors

new QPrinterInfonewConstructor QPrinterInfo::QPrinterInfo()
new QPrinterInfonew(const QPrinter printer)Constructor QPrinterInfo::QPrinterInfo(const QPrinter &printer)
new QPrinterInfonew(const QPrinterInfo src)Constructor QPrinterInfo::QPrinterInfo(const QPrinterInfo &src)

Public methods

QPrinterInfoassign(const QPrinterInfo src)Method QPrinterInfo & QPrinterInfo::operator=(const QPrinterInfo &src)
[const]voidassign(const QPrinterInfo other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QPrinterInfodupCreates a copy of self
[const]boolisDefaultMethod bool QPrinterInfo::isDefault()
[const]boolisDefault?Method bool QPrinterInfo::isDefault()
[const]boolisNullMethod bool QPrinterInfo::isNull()
[const]boolisNull?Method bool QPrinterInfo::isNull()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]stringprinterNameMethod QString QPrinterInfo::printerName()
[const]QPrinter_PageSize[]supportedPaperSizesMethod QList<enum QPrinter::PageSize> QPrinterInfo::supportedPaperSizes()

Public static methods and constants

QPrinterInfo[]availablePrintersStatic method QList<class QPrinterInfo> QPrinterInfo::availablePrinters()
QPrinterInfodefaultPrinterStatic method QPrinterInfo QPrinterInfo::defaultPrinter()

Detailed description

QPrinterInfo assign(const QPrinterInfo src)

Description: Method QPrinterInfo & QPrinterInfo::operator=(const QPrinterInfo &src)

[const] void assign(const QPrinterInfo other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

[static] QPrinterInfo[] availablePrinters

Description: Static method QList<class QPrinterInfo> QPrinterInfo::availablePrinters()

This method is static and can be called without an instance.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[static] QPrinterInfo defaultPrinter

Description: Static method QPrinterInfo QPrinterInfo::defaultPrinter()

This method is static and can be called without an instance.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QPrinterInfo dup

Description: Creates a copy of self

[const] bool isDefault

Description: Method bool QPrinterInfo::isDefault()

[const] bool isDefault?

Description: Method bool QPrinterInfo::isDefault()

[const] bool isNull

Description: Method bool QPrinterInfo::isNull()

[const] bool isNull?

Description: Method bool QPrinterInfo::isNull()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[static] new QPrinterInfo new

Description: Constructor QPrinterInfo::QPrinterInfo()

This method creates an object of class QPrinterInfo.

[static] new QPrinterInfo new(const QPrinter printer)

Description: Constructor QPrinterInfo::QPrinterInfo(const QPrinter &printer)

This method creates an object of class QPrinterInfo.

[static] new QPrinterInfo new(const QPrinterInfo src)

Description: Constructor QPrinterInfo::QPrinterInfo(const QPrinterInfo &src)

This method creates an object of class QPrinterInfo.

[const] string printerName

Description: Method QString QPrinterInfo::printerName()

[const] QPrinter_PageSize[] supportedPaperSizes

Description: Method QList<enum QPrinter::PageSize> QPrinterInfo::supportedPaperSizes()