LayOut C API
|
#include <LayOutAPI/common.h>
#include <LayOutAPI/model/defs.h>
#include "entity.h"
#include <SketchUpAPI/color.h>
Go to the source code of this file.
Functions | |
LO_RESULT | LOStyleCreate (LOStyleRef *style) |
Creates a new empty style object. More... | |
LO_RESULT | LOStyleRelease (LOStyleRef *style) |
Releases a style object. *style will be set to invalid by this function. More... | |
LO_RESULT | LOStyleCopy (LOStyleRef src_style, LOStyleRef dst_style) |
Copies the style attributes from one style object to another. More... | |
LO_RESULT | LOStyleGetStroked (LOStyleRef style, bool *is_stroked) |
Gets whether or not a style has a stroke. More... | |
LO_RESULT | LOStyleSetStroked (LOStyleRef style, bool is_stroked) |
Sets whether or not a style has a stroke. More... | |
LO_RESULT | LOStyleGetStrokeWidth (LOStyleRef style, double *stroke_width) |
Gets the stroke width of a style. More... | |
LO_RESULT | LOStyleSetStrokeWidth (LOStyleRef style, double stroke_width) |
Sets the stroke width of a style. More... | |
LO_RESULT | LOStyleGetStrokeColor (LOStyleRef style, SUColor *stroke_color) |
Gets the stroke color of a style. More... | |
LO_RESULT | LOStyleSetStrokeColor (LOStyleRef style, SUColor stroke_color) |
Sets the stroke color of a style. More... | |
LO_RESULT | LOStyleGetStrokeJoinStyle (LOStyleRef style, LOStrokeJoinStyle *join_type) |
Gets the stroke join style of a style. More... | |
LO_RESULT | LOStyleSetStrokeJoinStyle (LOStyleRef style, LOStrokeJoinStyle join_type) |
Sets the stroke join style of a style. More... | |
LO_RESULT | LOStyleGetStrokeCapStyle (LOStyleRef style, LOStrokeCapStyle *cap_type) |
Gets the stroke cap style of a style. More... | |
LO_RESULT | LOStyleSetStrokeCapStyle (LOStyleRef style, LOStrokeCapStyle cap_type) |
Sets the stroke cap style of a style. More... | |
LO_RESULT | LOStyleGetStrokePattern (LOStyleRef style, LOStrokePattern *stroke_pattern) |
Gets the stroke pattern of a style. More... | |
LO_RESULT | LOStyleSetStrokePattern (LOStyleRef style, LOStrokePattern stroke_pattern) |
Sets the stroke pattern of a style. More... | |
LO_RESULT | LOStyleGetStrokePatternScale (LOStyleRef style, double *pattern_scale) |
Gets the stroke pattern scale of a style. More... | |
LO_RESULT | LOStyleSetStrokePatternScale (LOStyleRef style, double pattern_scale) |
Sets the stroke pattern scale of a style. More... | |
LO_RESULT | LOStyleGetSolidFilled (LOStyleRef style, bool *solid_filled) |
Gets whether or not a style has a solid color fill. More... | |
LO_RESULT | LOStyleSetSolidFilled (LOStyleRef style, bool solid_filled) |
Sets whether or not a style has a solid color fill. More... | |
LO_RESULT | LOStyleGetSolidFillColor (LOStyleRef style, SUColor *fill_color) |
Gets the solid fill color of a style. More... | |
LO_RESULT | LOStyleSetSolidFillColor (LOStyleRef style, SUColor fill_color) |
Sets the solid fill color of a style. More... | |
LO_RESULT | LOStyleGetPatternFilled (LOStyleRef style, bool *pattern_filled) |
Gets whether there is a pattern fill or not of a style. More... | |
LO_RESULT | LOStyleSetPatternFilled (LOStyleRef style, bool pattern_filled) |
Sets whether or not a style has a pattern fill. More... | |
LO_RESULT | LOStyleGetPatternFillImagePath (LOStyleRef style, SUStringRef *image_path) |
Gets the pattern fill image path of a style. This is the file path for the pattern fill image file reference. More... | |
LO_RESULT | LOStyleSetPatternFillImagePath (LOStyleRef style, const char *image_path) |
Sets the pattern fill image path of a style. This is the file path for the pattern fill image file reference. More... | |
LO_RESULT | LOStyleGetPatternFillRotation (LOStyleRef style, double *rotation) |
Gets the rotation angle applied to the pattern fill of a style. More... | |
LO_RESULT | LOStyleSetPatternFillRotation (LOStyleRef style, double rotation) |
Sets the rotation angle applied to the pattern fill of a style. More... | |
LO_RESULT | LOStyleGetPatternFillScale (LOStyleRef style, double *scale) |
Gets the scale applied to the pattern fill of a style. More... | |
LO_RESULT | LOStyleSetPatternFillScale (LOStyleRef style, double scale) |
Sets the scale applied to the pattern fill of a style. More... | |
LO_RESULT | LOStyleGetPatternFillOrigin (LOStyleRef style, LOPoint2D *origin) |
Gets the origin for the pattern fill of a style. More... | |
LO_RESULT | LOStyleSetPatternFillOrigin (LOStyleRef style, const LOPoint2D *origin) |
Sets the origin for the pattern fill of a style. More... | |
LO_RESULT | LOStyleGetTextFontFamily (LOStyleRef style, SUStringRef *family) |
Gets the text font name of a style. More... | |
LO_RESULT | LOStyleSetTextFontFamily (LOStyleRef style, const char *family) |
Sets the text font name of a style. More... | |
LO_RESULT | LOStyleGetTextBold (LOStyleRef style, bool *is_bold) |
Gets whether or not text should be bold for a style. More... | |
LO_RESULT | LOStyleSetTextBold (LOStyleRef style, bool is_bold) |
Sets whether or not text should be bold for a style. More... | |
LO_RESULT | LOStyleGetTextItalic (LOStyleRef style, bool *is_italic) |
Gets whether or not text should be italicized for a style. More... | |
LO_RESULT | LOStyleSetTextItalic (LOStyleRef style, bool is_italic) |
Sets whether or not text should be italicized for a style. More... | |
LO_RESULT | LOStyleGetFontSize (LOStyleRef style, double *size_in_points) |
Gets the font size of a style. More... | |
LO_RESULT | LOStyleSetFontSize (LOStyleRef style, double size_in_points) |
Sets the font size of a style. On Windows only, this font size will be truncated to an integer value. More... | |
LO_RESULT | LOStyleGetTextColor (LOStyleRef style, SUColor *color) |
Gets the text color of a style. More... | |
LO_RESULT | LOStyleSetTextColor (LOStyleRef style, SUColor color) |
Sets the text color of a style. More... | |
LO_RESULT | LOStyleGetTextUnderline (LOStyleRef style, LOTextUnderline *underline_type) |
Gets the text underline type of a style. More... | |
LO_RESULT | LOStyleSetTextUnderline (LOStyleRef style, LOTextUnderline underline_type) |
Sets the text underline type of a style. More... | |
LO_RESULT | LOStyleGetTextElevation (LOStyleRef style, LOTextElevation *elevation_type) |
Gets the text elevation type (normal, superscript, or subscript) of a style. More... | |
LO_RESULT | LOStyleSetTextElevation (LOStyleRef style, LOTextElevation elevation_type) |
Sets the text elevation type of a style. More... | |
LO_RESULT | LOStyleGetTextAlignment (LOStyleRef style, LOTextAlignment *alignment_type) |
Gets the text alignment type of a style. More... | |
LO_RESULT | LOStyleSetTextAlignment (LOStyleRef style, LOTextAlignment alignment_type) |
Sets the text alignment type of a style. More... | |
LO_RESULT | LOStyleGetTextAnchor (LOStyleRef style, LOTextAnchor *anchor_type) |
Gets the text alignment type of a style. More... | |
LO_RESULT | LOStyleSetTextAnchor (LOStyleRef style, LOTextAnchor anchor_type) |
Sets the text alignment type of a style. More... | |
LO_RESULT | LOStyleGetDimensionRotationAlignment (LOStyleRef style, LODimensionRotationAlignment *alignment) |
Gets the dimension rotation alignment type of a style. More... | |
LO_RESULT | LOStyleSetDimensionRotationAlignment (LOStyleRef style, LODimensionRotationAlignment alignment) |
Sets the dimension rotation alignment type of a style. More... | |
LO_RESULT | LOStyleGetDimensionVerticalAlignment (LOStyleRef style, LODimensionVerticalAlignment *alignment) |
Gets the dimension vertical alignment setting of a style. More... | |
LO_RESULT | LOStyleSetDimensionVerticalAlignment (LOStyleRef style, LODimensionVerticalAlignment alignment) |
Sets the dimension vertical alignment setting of a style. You can not set the alignment to LODimensionVerticalAlignment_Offset because it requires a relative vector for the position. More... | |
LO_RESULT | LOStyleGetDimensionUnits (LOStyleRef style, LODimensionUnits *units, double *precision) |
Gets the dimension units and precision of a style. More... | |
LO_RESULT | LOStyleSetDimensionUnits (LOStyleRef style, LODimensionUnits units, double precision) |
Sets the dimension units and precision of a style. More... | |
LO_RESULT | LOStyleGetSuppressDimensionUnits (LOStyleRef style, bool *is_suppressed) |
Gets the dimension shall sppress unit display attribute of a style. More... | |
LO_RESULT | LOStyleSetSuppressDimensionUnits (LOStyleRef style, bool is_suppressed) |
Sets the dimension shall sppress unit display attribute of a style. More... | |
LO_RESULT | LOStrokePatternGetMaximumNumberOfWidths (size_t *num_widths) |
Gets the maximum number of widths that may be returned by LOStrokePatternGetWidths. Use this to determine the size of the array to pass to LOStrokePatternGetWidths. More... | |
LO_RESULT | LOStrokePatternGetWidths (LOStrokePattern stroke_pattern, size_t len, double widths[], size_t *num_widths) |
Gets the widths of the alternating dashes and gaps for the given stroke pattern. These widths are expressed in paper space inches, and may be scaled (see LOStyleGetStrokePatternScale). Use LOStrokePatternGetMaximumNumberOfWidths to determine an adequate length for the widths array. More... | |
LO_RESULT | LOStyleGetStartArrowType (LOStyleRef style, LOArrowType *type) |
Gets the the start arrow type of a style. More... | |
LO_RESULT | LOStyleSetStartArrowType (LOStyleRef style, LOArrowType type) |
Sets the the start arrow type of a style. More... | |
LO_RESULT | LOStyleGetStartArrowSize (LOStyleRef style, double *size) |
Gets the the start arrow size of a style. More... | |
LO_RESULT | LOStyleSetStartArrowSize (LOStyleRef style, double size) |
Sets the the start arrow size of a style. More... | |
LO_RESULT | LOStyleGetEndArrowType (LOStyleRef style, LOArrowType *type) |
Gets the end arrow type of a style. More... | |
LO_RESULT | LOStyleSetEndArrowType (LOStyleRef style, LOArrowType type) |
Sets the end arrow type of a style. More... | |
LO_RESULT | LOStyleGetEndArrowSize (LOStyleRef style, double *size) |
Gets the end arrow size of a style. More... | |
LO_RESULT | LOStyleSetEndArrowSize (LOStyleRef style, double size) |
Sets the end arrow size of a style. More... | |
LO_RESULT | LOStyleIsArrowTypeFilled (LOArrowType type, bool *filled) |
Gets whether or not an arrow type is filled in. More... | |
LO_RESULT | LOStyleSetSubEntityStyle (LOStyleRef style, LOSubEntityType type, LOStyleRef sub_style) |
Adds a style to apply to an entity's sub-entity. This would be used to set the arrow head type for extension lines of a dimension, for example. More... | |
LO_RESULT | LOStyleGetSubEntityStyle (LOStyleRef style, LOSubEntityType type, LOStyleRef *sub_style) |
Gets the style settings for a sub entity from a style. This would be used to get the current style of a dimension's text, for example. More... | |
enum LOArrowType |
Defines the arrowhead types available for a path entity.
Represents how the dimension text is oriented on the page.
enum LODimensionUnits |
Defines the different units formats that are available for linear and angular dimensions.
Represents how the dimension text is positioned. The position is relative to the dimension line. LODimensionVerticalAlignment_Offset indicates that the text box position is based on a custom offset.
enum LOStrokeCapStyle |
enum LOStrokeJoinStyle |
Defines how to draw the connection between two segments of a path's stroke.
enum LOStrokePattern |
Defines the stippling pattern of a path's stroke.
enum LOSubEntityType |
Defines the types of sub entity that may have style attributes applied directly to them.
enum LOTextAlignment |
enum LOTextAnchor |
enum LOTextElevation |
enum LOTextUnderline |
LO_RESULT LOStrokePatternGetMaximumNumberOfWidths | ( | size_t * | num_widths | ) |
Gets the maximum number of widths that may be returned by LOStrokePatternGetWidths. Use this to determine the size of the array to pass to LOStrokePatternGetWidths.
[out] | num_widths | The maximum number of widths. |
LO_RESULT LOStrokePatternGetWidths | ( | LOStrokePattern | stroke_pattern, |
size_t | len, | ||
double | widths[], | ||
size_t * | num_widths | ||
) |
Gets the widths of the alternating dashes and gaps for the given stroke pattern. These widths are expressed in paper space inches, and may be scaled (see LOStyleGetStrokePatternScale). Use LOStrokePatternGetMaximumNumberOfWidths to determine an adequate length for the widths array.
[in] | stroke_pattern | The stroke pattern. |
[in] | len | The maximum number of widths to return. |
[out] | widths | The widths for the stroke pattern. |
[out] | num_widths | The number of widths returned. |
LO_RESULT LOStyleCopy | ( | LOStyleRef | src_style, |
LOStyleRef | dst_style | ||
) |
Copies the style attributes from one style object to another.
[in] | src_style | The source style object. |
[out] | dst_style | The destination style object. |
LO_RESULT LOStyleCreate | ( | LOStyleRef * | style | ) |
Creates a new empty style object.
[out] | style | The style object. |
LO_RESULT LOStyleGetDimensionRotationAlignment | ( | LOStyleRef | style, |
LODimensionRotationAlignment * | alignment | ||
) |
Gets the dimension rotation alignment type of a style.
[in] | style | The style object. |
[out] | alignment | The alignment. |
LO_RESULT LOStyleGetDimensionUnits | ( | LOStyleRef | style, |
LODimensionUnits * | units, | ||
double * | precision | ||
) |
Gets the dimension units and precision of a style.
[in] | style | The style object. |
[out] | units | The units setting. |
[out] | precision | The units precision. This is expressed as a value in the current units. |
LO_RESULT LOStyleGetDimensionVerticalAlignment | ( | LOStyleRef | style, |
LODimensionVerticalAlignment * | alignment | ||
) |
Gets the dimension vertical alignment setting of a style.
[in] | style | The style object. |
[out] | alignment | The alignment. |
LO_RESULT LOStyleGetEndArrowSize | ( | LOStyleRef | style, |
double * | size | ||
) |
Gets the end arrow size of a style.
[in] | style | The style object. |
[out] | size | The arrow size. |
LO_RESULT LOStyleGetEndArrowType | ( | LOStyleRef | style, |
LOArrowType * | type | ||
) |
Gets the end arrow type of a style.
[in] | style | The style object. |
[out] | type | The arrow type. |
LO_RESULT LOStyleGetFontSize | ( | LOStyleRef | style, |
double * | size_in_points | ||
) |
Gets the font size of a style.
[in] | style | The style object. |
[out] | size_in_points | The font size in points. |
LO_RESULT LOStyleGetPatternFilled | ( | LOStyleRef | style, |
bool * | pattern_filled | ||
) |
Gets whether there is a pattern fill or not of a style.
[in] | style | The style object. |
[out] | pattern_filled | Whether there is a pattern fill or not. |
LO_RESULT LOStyleGetPatternFillImagePath | ( | LOStyleRef | style, |
SUStringRef * | image_path | ||
) |
Gets the pattern fill image path of a style. This is the file path for the pattern fill image file reference.
[in] | style | The style object. |
[out] | image_path | The pattern fill image path. |
LO_RESULT LOStyleGetPatternFillOrigin | ( | LOStyleRef | style, |
LOPoint2D * | origin | ||
) |
Gets the origin for the pattern fill of a style.
[in] | style | The style object. |
[out] | origin | The paper space origin for the pattern fill. |
LO_RESULT LOStyleGetPatternFillRotation | ( | LOStyleRef | style, |
double * | rotation | ||
) |
Gets the rotation angle applied to the pattern fill of a style.
[in] | style | The style object. |
[out] | rotation | The rotation angle applied to the pattern fill, in degrees. |
LO_RESULT LOStyleGetPatternFillScale | ( | LOStyleRef | style, |
double * | scale | ||
) |
Gets the scale applied to the pattern fill of a style.
[in] | style | The style object. |
[out] | scale | The scale applied to the pattern fill. |
LO_RESULT LOStyleGetSolidFillColor | ( | LOStyleRef | style, |
SUColor * | fill_color | ||
) |
Gets the solid fill color of a style.
[in] | style | The style object. |
[out] | fill_color | The solid fill color. |
LO_RESULT LOStyleGetSolidFilled | ( | LOStyleRef | style, |
bool * | solid_filled | ||
) |
Gets whether or not a style has a solid color fill.
[in] | style | The style object. |
[out] | solid_filled | Whether there is a solid color fill or not. |
LO_RESULT LOStyleGetStartArrowSize | ( | LOStyleRef | style, |
double * | size | ||
) |
Gets the the start arrow size of a style.
[in] | style | The style object. |
[out] | size | The arrow size. |
LO_RESULT LOStyleGetStartArrowType | ( | LOStyleRef | style, |
LOArrowType * | type | ||
) |
Gets the the start arrow type of a style.
[in] | style | The style object. |
[out] | type | The arrow type. |
LO_RESULT LOStyleGetStrokeCapStyle | ( | LOStyleRef | style, |
LOStrokeCapStyle * | cap_type | ||
) |
Gets the stroke cap style of a style.
[in] | style | The style object. |
[out] | cap_type | The cap style. |
LO_RESULT LOStyleGetStrokeColor | ( | LOStyleRef | style, |
SUColor * | stroke_color | ||
) |
Gets the stroke color of a style.
[in] | style | The style object. |
[out] | stroke_color | The stroke color. |
LO_RESULT LOStyleGetStroked | ( | LOStyleRef | style, |
bool * | is_stroked | ||
) |
Gets whether or not a style has a stroke.
[in] | style | The style object. |
[out] | is_stroked | Whether there is a stroke or not. |
LO_RESULT LOStyleGetStrokeJoinStyle | ( | LOStyleRef | style, |
LOStrokeJoinStyle * | join_type | ||
) |
Gets the stroke join style of a style.
[in] | style | The style object. |
[out] | join_type | The join style. |
LO_RESULT LOStyleGetStrokePattern | ( | LOStyleRef | style, |
LOStrokePattern * | stroke_pattern | ||
) |
Gets the stroke pattern of a style.
[in] | style | The style object. |
[out] | stroke_pattern | The stroke pattern. |
LO_RESULT LOStyleGetStrokePatternScale | ( | LOStyleRef | style, |
double * | pattern_scale | ||
) |
Gets the stroke pattern scale of a style.
[in] | style | The style object. |
[out] | pattern_scale | The stroke pattern scale. |
LO_RESULT LOStyleGetStrokeWidth | ( | LOStyleRef | style, |
double * | stroke_width | ||
) |
Gets the stroke width of a style.
[in] | style | The style object. |
[out] | stroke_width | The stroke width. |
LO_RESULT LOStyleGetSubEntityStyle | ( | LOStyleRef | style, |
LOSubEntityType | type, | ||
LOStyleRef * | sub_style | ||
) |
Gets the style settings for a sub entity from a style. This would be used to get the current style of a dimension's text, for example.
[in] | style | The style containing the sub entity style. |
[in] | type | The type of sub entity the sub style is for. |
[in] | sub_style | The sub entity style. |
LO_RESULT LOStyleGetSuppressDimensionUnits | ( | LOStyleRef | style, |
bool * | is_suppressed | ||
) |
Gets the dimension shall sppress unit display attribute of a style.
[in] | style | The style object. |
[out] | is_suppressed | Is the dimension suppressing unit display. |
LO_RESULT LOStyleGetTextAlignment | ( | LOStyleRef | style, |
LOTextAlignment * | alignment_type | ||
) |
Gets the text alignment type of a style.
[in] | style | The style object. |
[out] | alignment_type | The alignment type for text. |
LO_RESULT LOStyleGetTextAnchor | ( | LOStyleRef | style, |
LOTextAnchor * | anchor_type | ||
) |
Gets the text alignment type of a style.
[in] | style | The style object. |
[out] | anchor_type | The anchor type for text. |
LO_RESULT LOStyleGetTextBold | ( | LOStyleRef | style, |
bool * | is_bold | ||
) |
Gets whether or not text should be bold for a style.
[in] | style | The style object. |
[out] | is_bold | Whether text will be bolded or not. |
LO_RESULT LOStyleGetTextColor | ( | LOStyleRef | style, |
SUColor * | color | ||
) |
Gets the text color of a style.
[in] | style | The style object. |
[out] | color | The color of the text. |
LO_RESULT LOStyleGetTextElevation | ( | LOStyleRef | style, |
LOTextElevation * | elevation_type | ||
) |
Gets the text elevation type (normal, superscript, or subscript) of a style.
[in] | style | The style object. |
[out] | elevation_type | The text elevation type. |
LO_RESULT LOStyleGetTextFontFamily | ( | LOStyleRef | style, |
SUStringRef * | family | ||
) |
Gets the text font name of a style.
[in] | style | The style object. |
[out] | family | The name of the font. |
LO_RESULT LOStyleGetTextItalic | ( | LOStyleRef | style, |
bool * | is_italic | ||
) |
Gets whether or not text should be italicized for a style.
[in] | style | The style object. |
[out] | is_italic | Whether text will be italic or not. |
LO_RESULT LOStyleGetTextUnderline | ( | LOStyleRef | style, |
LOTextUnderline * | underline_type | ||
) |
Gets the text underline type of a style.
[in] | style | The style object. |
[out] | underline_type | The type of underline for text. |
LO_RESULT LOStyleIsArrowTypeFilled | ( | LOArrowType | type, |
bool * | filled | ||
) |
Gets whether or not an arrow type is filled in.
[in] | type | The arrow type. |
[out] | filled | Whether the arrow type is filled in or not. |
LO_RESULT LOStyleRelease | ( | LOStyleRef * | style | ) |
Releases a style object. *style will be set to invalid by this function.
[in] | style | The style object. |
LO_RESULT LOStyleSetDimensionRotationAlignment | ( | LOStyleRef | style, |
LODimensionRotationAlignment | alignment | ||
) |
Sets the dimension rotation alignment type of a style.
[in] | style | The style object. |
[in] | alignment | The new alignment to use. |
LO_RESULT LOStyleSetDimensionUnits | ( | LOStyleRef | style, |
LODimensionUnits | units, | ||
double | precision | ||
) |
Sets the dimension units and precision of a style.
[in] | style | The style object. |
[out] | units | The units setting for the document. |
[out] | precision | The units precision. This is expressed as a value in the specified units. LayOut only allows for a finite set of precision values for each units setting, so it will set the precision to the closest valid setting for the specified units. See the "Dimension Inspector" for a reference of the available precisions for each units setting. |
LO_RESULT LOStyleSetDimensionVerticalAlignment | ( | LOStyleRef | style, |
LODimensionVerticalAlignment | alignment | ||
) |
Sets the dimension vertical alignment setting of a style. You can not set the alignment to LODimensionVerticalAlignment_Offset because it requires a relative vector for the position.
[in] | style | The style object. |
[in] | alignment | The new alignment to use. |
LO_RESULT LOStyleSetEndArrowSize | ( | LOStyleRef | style, |
double | size | ||
) |
Sets the end arrow size of a style.
[in] | style | The style object. |
[in] | size | The arrow size. |
LO_RESULT LOStyleSetEndArrowType | ( | LOStyleRef | style, |
LOArrowType | type | ||
) |
Sets the end arrow type of a style.
[in] | style | The style object. |
[in] | type | The arrow type. |
LO_RESULT LOStyleSetFontSize | ( | LOStyleRef | style, |
double | size_in_points | ||
) |
Sets the font size of a style. On Windows only, this font size will be truncated to an integer value.
[in] | style | The style object. |
[in] | size_in_points | The font size in points. |
LO_RESULT LOStyleSetPatternFilled | ( | LOStyleRef | style, |
bool | pattern_filled | ||
) |
Sets whether or not a style has a pattern fill.
[in] | style | The style object. |
[in] | pattern_filled | Whether there should be a pattern fill or not. |
LO_RESULT LOStyleSetPatternFillImagePath | ( | LOStyleRef | style, |
const char * | image_path | ||
) |
Sets the pattern fill image path of a style. This is the file path for the pattern fill image file reference.
[in] | style | The style object. |
[in] | image_path | The pattern fill image path. |
LO_RESULT LOStyleSetPatternFillOrigin | ( | LOStyleRef | style, |
const LOPoint2D * | origin | ||
) |
Sets the origin for the pattern fill of a style.
[in] | style | The style object. |
[out] | origin | The paper space origin for the pattern fill. |
LO_RESULT LOStyleSetPatternFillRotation | ( | LOStyleRef | style, |
double | rotation | ||
) |
Sets the rotation angle applied to the pattern fill of a style.
[in] | style | The style object. |
[out] | rotation | The rotation angle to apply to the pattern fill, in degrees. |
LO_RESULT LOStyleSetPatternFillScale | ( | LOStyleRef | style, |
double | scale | ||
) |
Sets the scale applied to the pattern fill of a style.
[in] | style | The style object. |
[out] | scale | The scale to apply to the pattern fill. |
LO_RESULT LOStyleSetSolidFillColor | ( | LOStyleRef | style, |
SUColor | fill_color | ||
) |
Sets the solid fill color of a style.
[in] | style | The style object. |
[in] | fill_color | The solid fill color. |
LO_RESULT LOStyleSetSolidFilled | ( | LOStyleRef | style, |
bool | solid_filled | ||
) |
Sets whether or not a style has a solid color fill.
[in] | style | The style object. |
[in] | solid_filled | Whether there should be a solid color fill or not. |
LO_RESULT LOStyleSetStartArrowSize | ( | LOStyleRef | style, |
double | size | ||
) |
Sets the the start arrow size of a style.
[in] | style | The style object. |
[in] | size | The arrow size. |
LO_RESULT LOStyleSetStartArrowType | ( | LOStyleRef | style, |
LOArrowType | type | ||
) |
Sets the the start arrow type of a style.
[in] | style | The style object. |
[in] | type | The arrow type. |
LO_RESULT LOStyleSetStrokeCapStyle | ( | LOStyleRef | style, |
LOStrokeCapStyle | cap_type | ||
) |
Sets the stroke cap style of a style.
[in] | style | The style object. |
[in] | cap_type | The cap style. |
LO_RESULT LOStyleSetStrokeColor | ( | LOStyleRef | style, |
SUColor | stroke_color | ||
) |
Sets the stroke color of a style.
[in] | style | The style object. |
[in] | stroke_color | The stroke color. |
LO_RESULT LOStyleSetStroked | ( | LOStyleRef | style, |
bool | is_stroked | ||
) |
Sets whether or not a style has a stroke.
[in] | style | The style object. |
[in] | is_stroked | Whether there should be a stroke or not. |
LO_RESULT LOStyleSetStrokeJoinStyle | ( | LOStyleRef | style, |
LOStrokeJoinStyle | join_type | ||
) |
Sets the stroke join style of a style.
[in] | style | The style object. |
[in] | join_type | The join style. |
LO_RESULT LOStyleSetStrokePattern | ( | LOStyleRef | style, |
LOStrokePattern | stroke_pattern | ||
) |
Sets the stroke pattern of a style.
[in] | style | The style object. |
[in] | stroke_pattern | The stroke pattern. |
LO_RESULT LOStyleSetStrokePatternScale | ( | LOStyleRef | style, |
double | pattern_scale | ||
) |
Sets the stroke pattern scale of a style.
[in] | style | The style object. |
[in] | pattern_scale | The stroke pattern scale. |
LO_RESULT LOStyleSetStrokeWidth | ( | LOStyleRef | style, |
double | stroke_width | ||
) |
Sets the stroke width of a style.
[in] | style | The style object. |
[in] | stroke_width | The stroke width. |
LO_RESULT LOStyleSetSubEntityStyle | ( | LOStyleRef | style, |
LOSubEntityType | type, | ||
LOStyleRef | sub_style | ||
) |
Adds a style to apply to an entity's sub-entity. This would be used to set the arrow head type for extension lines of a dimension, for example.
[in] | style | The style to contain the sub entity style. |
[in] | type | The type of sub entity the sub style is for. |
[in] | sub_style | The style to set as a sub entity style. |
LO_RESULT LOStyleSetSuppressDimensionUnits | ( | LOStyleRef | style, |
bool | is_suppressed | ||
) |
Sets the dimension shall sppress unit display attribute of a style.
[in] | style | The style object. |
[in] | is_suppressed | Is the dimension suppressing unit display. |
LO_RESULT LOStyleSetTextAlignment | ( | LOStyleRef | style, |
LOTextAlignment | alignment_type | ||
) |
Sets the text alignment type of a style.
[in] | style | The style object. |
[in] | alignment_type | The new text alignment type to use. |
LO_RESULT LOStyleSetTextAnchor | ( | LOStyleRef | style, |
LOTextAnchor | anchor_type | ||
) |
Sets the text alignment type of a style.
[in] | style | The style object. |
[in] | anchor_type | The new text anchor type to use. |
LO_RESULT LOStyleSetTextBold | ( | LOStyleRef | style, |
bool | is_bold | ||
) |
Sets whether or not text should be bold for a style.
[in] | style | The style object. |
[out] | is_bold | Whether text should be bolded or not. |
LO_RESULT LOStyleSetTextColor | ( | LOStyleRef | style, |
SUColor | color | ||
) |
Sets the text color of a style.
[in] | style | The style object. |
[in] | color | The new text color to use. |
LO_RESULT LOStyleSetTextElevation | ( | LOStyleRef | style, |
LOTextElevation | elevation_type | ||
) |
Sets the text elevation type of a style.
[in] | style | The style object. |
[in] | elevation_type | The new text elevation type to use. |
LO_RESULT LOStyleSetTextFontFamily | ( | LOStyleRef | style, |
const char * | family | ||
) |
Sets the text font name of a style.
[in] | style | The style object. |
[in] | family | The name of the new font to use. |
LO_RESULT LOStyleSetTextItalic | ( | LOStyleRef | style, |
bool | is_italic | ||
) |
Sets whether or not text should be italicized for a style.
[in] | style | The style object. |
[out] | is_italic | Whether text should be italic or not. |
LO_RESULT LOStyleSetTextUnderline | ( | LOStyleRef | style, |
LOTextUnderline | underline_type | ||
) |
Sets the text underline type of a style.
[in] | style | The style object. |
[out] | underline_type | The type of underline to use for text. |