SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Related Functions
SULineStyleRef Struct Reference

References a line style. More...

#include <SketchUpAPI/model/line_style.h>

Inherits SUEntityRef.

Related Functions

(Note that these are not member functions.)

SUEntityRef SULineStyleToEntity (SULineStyleRef line_style)
 Converts from a SULineStyleRef to an SUEntityRef. This is essentially an upcast operation. More...
 
SULineStyleRef SULineStyleFromEntity (SUEntityRef entity_ref)
 Converts from an SUEntityRef to a SULineStyleRef. This is essentially a downcast operation so the given entity must be convertible to a SULineStyleRef. More...
 
enum SUResult SULineStyleGetName (SULineStyleRef line_style, SUStringRef *name)
 Retrieves the name of a line style object. More...
 

Detailed Description

References a line style.

Friends And Related Function Documentation

SULineStyleRef SULineStyleFromEntity ( SUEntityRef  entity_ref)
related

Converts from an SUEntityRef to a SULineStyleRef. This is essentially a downcast operation so the given entity must be convertible to a SULineStyleRef.

Since
SketchUp 2020.1, API 8.1
Parameters
[in]entity_refThe given entity reference.
Returns
  • The converted SULineStyleRef if the downcast operation succeeds
  • If not, the returned reference will be invalid
enum SUResult SULineStyleGetName ( SULineStyleRef  line_style,
SUStringRef name 
)
related

Retrieves the name of a line style object.

Since
SketchUp 2019, API 7.0
Parameters
[in]line_styleThe line style object.
[out]nameThe name retrieved.
Returns
SUEntityRef SULineStyleToEntity ( SULineStyleRef  line_style)
related

Converts from a SULineStyleRef to an SUEntityRef. This is essentially an upcast operation.

Since
SketchUp 2020.1, API 8.1
Parameters
[in]line_styleThe given line style reference.
Returns
  • The converted SUEntityRef if line_style is a valid line style
  • If not, the returned reference will be invalid

The documentation for this struct was generated from the following files: