Mako 7.5.0 API
Loading...
Searching...
No Matches
JawsMako::IMediaHandler Class Referenceabstract

Interface allowing users of supported input types to monitor/handle unsatisfied media requests. For input interfaces that support this feature, use setMediaHandler() to install subclasses of this type. More...

#include <jawsmako.h>

Public Member Functions

virtual void sizeRequest (const PValue &size, double &pageWidth, double &pageHeight)=0
 Invoked by the input when the media size is unknown.
 

Detailed Description

Interface allowing users of supported input types to monitor/handle unsatisfied media requests. For input interfaces that support this feature, use setMediaHandler() to install subclasses of this type.

Member Function Documentation

◆ sizeRequest()

virtual void JawsMako::IMediaHandler::sizeRequest ( const PValue & size,
double & pageWidth,
double & pageHeight )
pure virtual

Invoked by the input when the media size is unknown.

Parameters
sizeThe requested media size, which may be an integer or a string.
pageWidthThe default width that will be set for the requested media size. Users may set this value to override the default page width.
pageHeightThe default height that will be set for the requested media size. Users may set this value to override the default page height.

The documentation for this class was generated from the following file: