LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions
pageinfo.h File Reference
#include <LayOutAPI/common.h>
#include <LayOutAPI/model/defs.h>
#include <SketchUpAPI/color.h>

Go to the source code of this file.

Enumerations

enum  LOImageResolution { LOImageResolution_Low = 0, LOImageResolution_Medium, LOImageResolution_High, LONumImageResolutions }
 Defines the different settings available for image resolution. More...
 

Functions

LO_RESULT LOPageInfoGetWidth (LOPageInfoRef pageinfo, double *width)
 Gets the page width. More...
 
LO_RESULT LOPageInfoSetWidth (LOPageInfoRef pageinfo, double width)
 Sets the page width. More...
 
LO_RESULT LOPageInfoGetHeight (LOPageInfoRef pageinfo, double *height)
 Gets the page height. More...
 
LO_RESULT LOPageInfoSetHeight (LOPageInfoRef pageinfo, double height)
 Sets the page height. More...
 
LO_RESULT LOPageInfoGetLeftMargin (LOPageInfoRef pageinfo, double *margin)
 Gets the left page margin. More...
 
LO_RESULT LOPageInfoGetRightMargin (LOPageInfoRef pageinfo, double *margin)
 Gets the right page margin. More...
 
LO_RESULT LOPageInfoGetTopMargin (LOPageInfoRef pageinfo, double *margin)
 Gets the top page margin. More...
 
LO_RESULT LOPageInfoGetBottomMargin (LOPageInfoRef pageinfo, double *margin)
 Gets the bottom page margin. More...
 
LO_RESULT LOPageInfoSetLeftMargin (LOPageInfoRef pageinfo, double margin)
 Sets the left page margin. More...
 
LO_RESULT LOPageInfoSetRightMargin (LOPageInfoRef pageinfo, double margin)
 Sets the right page margin. More...
 
LO_RESULT LOPageInfoSetTopMargin (LOPageInfoRef pageinfo, double margin)
 Sets the top page margin. More...
 
LO_RESULT LOPageInfoSetBottomMargin (LOPageInfoRef pageinfo, double margin)
 Sets the bottom page margin. More...
 
LO_RESULT LOPageInfoGetPaperColor (LOPageInfoRef pageinfo, SUColor *color)
 Gets the page color. More...
 
LO_RESULT LOPageInfoSetPaperColor (LOPageInfoRef pageinfo, const SUColor *color)
 Sets the page color. More...
 
LO_RESULT LOPageInfoGetPrintPaperColor (LOPageInfoRef pageinfo, bool *print_paper_color)
 Gets whether or not the page color should be printed. More...
 
LO_RESULT LOPageInfoSetPrintPaperColor (LOPageInfoRef pageinfo, bool print_paper_color)
 Sets whether or not the page color should be printed. More...
 
LO_RESULT LOPageInfoGetMarginColor (LOPageInfoRef pageinfo, SUColor *color)
 Gets the color of the margins. More...
 
LO_RESULT LOPageInfoSetMarginColor (LOPageInfoRef pageinfo, SUColor color)
 Sets the color of the margins. More...
 
LO_RESULT LOPageInfoGetShowMargins (LOPageInfoRef pageinfo, bool *show_margins)
 Gets whether or not the margins are shown. More...
 
LO_RESULT LOPageInfoSetShowMargins (LOPageInfoRef pageinfo, bool show_margins)
 Sets whether or not the margins are shown. More...
 
LO_RESULT LOPageInfoGetPrintMargins (LOPageInfoRef pageinfo, bool *print_margins)
 Gets whether or not the margins should be printed. More...
 
LO_RESULT LOPageInfoSetPrintMargins (LOPageInfoRef pageinfo, bool print_margins)
 Sets whether or not the margins should be printed. More...
 
LO_RESULT LOPageInfoGetDisplayResolution (LOPageInfoRef pageinfo, LOImageResolution *resolution)
 Gets the value of the document's display resolution for images and raster models. More...
 
LO_RESULT LOPageInfoSetDisplayResolution (LOPageInfoRef pageinfo, LOImageResolution resolution)
 Sets the value of the document's display resolution for raster rendered SketchUp models. More...
 
LO_RESULT LOPageInfoGetOutputResolution (LOPageInfoRef pageinfo, LOImageResolution *resolution)
 Gets the value of the document's output resolution for raster rendered SketchUp models. More...
 
LO_RESULT LOPageInfoSetOutputResolution (LOPageInfoRef pageinfo, LOImageResolution resolution)
 Sets the value of the document's output resolution for raster rendered SketchUp models. More...
 
LO_RESULT LOPageInfoGetImageDisplayResolution (LOPageInfoRef pageinfo, LOImageResolution *resolution)
 Gets the value of the document's display resolution for images. More...
 
LO_RESULT LOPageInfoSetImageDisplayResolution (LOPageInfoRef pageinfo, LOImageResolution resolution)
 Sets the value of the document's display resolution for images. More...
 
LO_RESULT LOPageInfoGetImageOutputResolution (LOPageInfoRef pageinfo, LOImageResolution *resolution)
 Gets the value of the document's output resolution for images. More...
 
LO_RESULT LOPageInfoSetImageOutputResolution (LOPageInfoRef pageinfo, LOImageResolution resolution)
 Sets the value of the document's output resolution for images. More...
 

Enumeration Type Documentation

Defines the different settings available for image resolution.

Enumerator
LOImageResolution_Low 

Low resolution, high efficiency.

LOImageResolution_Medium 

Medium resolution, medium efficiency.

LOImageResolution_High 

High resolution, low efficiency.

LONumImageResolutions 

Function Documentation

LO_RESULT LOPageInfoGetBottomMargin ( LOPageInfoRef  pageinfo,
double *  margin 
)

Gets the bottom page margin.

Parameters
[in]pageinfoThe page info object.
[out]marginThe bottom page margin.
Returns
LO_RESULT LOPageInfoGetDisplayResolution ( LOPageInfoRef  pageinfo,
LOImageResolution resolution 
)

Gets the value of the document's display resolution for images and raster models.

Parameters
[in]pageinfoThe page info object.
[out]resolutionThe resolution.
Returns
LO_RESULT LOPageInfoGetHeight ( LOPageInfoRef  pageinfo,
double *  height 
)

Gets the page height.

Parameters
[in]pageinfoThe page info object.
[out]heightThe page height.
Returns
LO_RESULT LOPageInfoGetImageDisplayResolution ( LOPageInfoRef  pageinfo,
LOImageResolution resolution 
)

Gets the value of the document's display resolution for images.

Since
LayOut 2023.1, API 8.1
Parameters
[in]pageinfoThe page info object.
[out]resolutionThe resolution.
Returns
LO_RESULT LOPageInfoGetImageOutputResolution ( LOPageInfoRef  pageinfo,
LOImageResolution resolution 
)

Gets the value of the document's output resolution for images.

Since
LayOut 2023.1, API 8.1
Parameters
[in]pageinfoThe page info object.
[out]resolutionThe resolution.
Returns
LO_RESULT LOPageInfoGetLeftMargin ( LOPageInfoRef  pageinfo,
double *  margin 
)

Gets the left page margin.

Parameters
[in]pageinfoThe page info object.
[out]marginThe left page margin.
Returns
LO_RESULT LOPageInfoGetMarginColor ( LOPageInfoRef  pageinfo,
SUColor color 
)

Gets the color of the margins.

Parameters
[in]pageinfoThe page info object.
[out]colorThe margin color.
Returns
LO_RESULT LOPageInfoGetOutputResolution ( LOPageInfoRef  pageinfo,
LOImageResolution resolution 
)

Gets the value of the document's output resolution for raster rendered SketchUp models.

Parameters
[in]pageinfoThe page info object.
[out]resolutionThe resolution.
Returns
LO_RESULT LOPageInfoGetPaperColor ( LOPageInfoRef  pageinfo,
SUColor color 
)

Gets the page color.

Parameters
[in]pageinfoThe page info object.
[out]colorThe page color.
Returns
LO_RESULT LOPageInfoGetPrintMargins ( LOPageInfoRef  pageinfo,
bool *  print_margins 
)

Gets whether or not the margins should be printed.

Parameters
[in]pageinfoThe page info object.
[out]print_marginsWhether the margins are printed or not.
Returns
LO_RESULT LOPageInfoGetPrintPaperColor ( LOPageInfoRef  pageinfo,
bool *  print_paper_color 
)

Gets whether or not the page color should be printed.

Parameters
[in]pageinfoThe page info object.
[out]print_paper_colorWhether or not the page color should be printed.
Returns
LO_RESULT LOPageInfoGetRightMargin ( LOPageInfoRef  pageinfo,
double *  margin 
)

Gets the right page margin.

Parameters
[in]pageinfoThe page info object.
[out]marginThe right page margin.
Returns
LO_RESULT LOPageInfoGetShowMargins ( LOPageInfoRef  pageinfo,
bool *  show_margins 
)

Gets whether or not the margins are shown.

Parameters
[in]pageinfoThe page info object.
[out]show_marginsWhether the margins are shown or not.
Returns
LO_RESULT LOPageInfoGetTopMargin ( LOPageInfoRef  pageinfo,
double *  margin 
)

Gets the top page margin.

Parameters
[in]pageinfoThe page info object.
[out]marginThe top page margin.
Returns
LO_RESULT LOPageInfoGetWidth ( LOPageInfoRef  pageinfo,
double *  width 
)

Gets the page width.

Parameters
[in]pageinfoThe page info object.
[out]widthThe page width.
Returns
LO_RESULT LOPageInfoSetBottomMargin ( LOPageInfoRef  pageinfo,
double  margin 
)

Sets the bottom page margin.

Parameters
[in]pageinfoThe page info object.
[in]marginThe new bottom margin to use.
Returns
LO_RESULT LOPageInfoSetDisplayResolution ( LOPageInfoRef  pageinfo,
LOImageResolution  resolution 
)

Sets the value of the document's display resolution for raster rendered SketchUp models.

Parameters
[in]pageinfoThe page info object.
[in]resolutionThe new resolution to use.
Returns
LO_RESULT LOPageInfoSetHeight ( LOPageInfoRef  pageinfo,
double  height 
)

Sets the page height.

Parameters
[in]pageinfoThe page info object.
[in]heightThe new page height to use.
Returns
LO_RESULT LOPageInfoSetImageDisplayResolution ( LOPageInfoRef  pageinfo,
LOImageResolution  resolution 
)

Sets the value of the document's display resolution for images.

Since
LayOut 2023.1, API 8.1
Parameters
[in]pageinfoThe page info object.
[in]resolutionThe new resolution to use.
Returns
LO_RESULT LOPageInfoSetImageOutputResolution ( LOPageInfoRef  pageinfo,
LOImageResolution  resolution 
)

Sets the value of the document's output resolution for images.

Since
LayOut 2023.1, API 8.1
Parameters
[in]pageinfoThe page info object.
[in]resolutionThe new resolution to use.
Returns
LO_RESULT LOPageInfoSetLeftMargin ( LOPageInfoRef  pageinfo,
double  margin 
)

Sets the left page margin.

Parameters
[in]pageinfoThe page info object.
[in]marginThe new left margin to use.
Returns
LO_RESULT LOPageInfoSetMarginColor ( LOPageInfoRef  pageinfo,
SUColor  color 
)

Sets the color of the margins.

Parameters
[in]pageinfoThe page info object.
[in]colorThe new margin color to use.
Returns
LO_RESULT LOPageInfoSetOutputResolution ( LOPageInfoRef  pageinfo,
LOImageResolution  resolution 
)

Sets the value of the document's output resolution for raster rendered SketchUp models.

Parameters
[in]pageinfoThe page info object.
[in]resolutionThe new resolution to use.
Returns
LO_RESULT LOPageInfoSetPaperColor ( LOPageInfoRef  pageinfo,
const SUColor color 
)

Sets the page color.

Parameters
[in]pageinfoThe page info object.
[in]colorThe new page color.
Returns
LO_RESULT LOPageInfoSetPrintMargins ( LOPageInfoRef  pageinfo,
bool  print_margins 
)

Sets whether or not the margins should be printed.

Parameters
[in]pageinfoThe page info object.
[in]print_marginsWhether the margins should be printed or not.
Returns
LO_RESULT LOPageInfoSetPrintPaperColor ( LOPageInfoRef  pageinfo,
bool  print_paper_color 
)

Sets whether or not the page color should be printed.

Parameters
[in]pageinfoThe page info object.
[in]print_paper_colorWhether or not the page color should be printed.
Returns
LO_RESULT LOPageInfoSetRightMargin ( LOPageInfoRef  pageinfo,
double  margin 
)

Sets the right page margin.

Parameters
[in]pageinfoThe page info object.
[in]marginThe new right margin to use.
Returns
LO_RESULT LOPageInfoSetShowMargins ( LOPageInfoRef  pageinfo,
bool  show_margins 
)

Sets whether or not the margins are shown.

Parameters
[in]pageinfoThe page info object.
[in]show_marginsWhether the margins should be shown or not.
Returns
LO_RESULT LOPageInfoSetTopMargin ( LOPageInfoRef  pageinfo,
double  margin 
)

Sets the top page margin.

Parameters
[in]pageinfoThe page info object.
[in]marginThe new top margin to use.
Returns
LO_RESULT LOPageInfoSetWidth ( LOPageInfoRef  pageinfo,
double  width 
)

Sets the page width.

Parameters
[in]pageinfoThe page info object.
[in]widthThe new page width to use.
Returns