SilverScreen Solid Modeler

get_linestyle_info

get_linestyle_info

Previous topic Next topic  

get_linestyle_info

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

int get_linestyle_info ( USINT width_style, SS_LINESTYLE *lstyle_info )

 

USINT        width_style;    // A unsigned value

SS_LINESTYLE *lstyle_info;   // A pointer to an SS_LINESTYLE structure

 

 




Synopsis

#include "silver.h"

 

The get_linestyle_info function retrieves information about a linestyle from a width/style value.

 

 

Parameters

width_style is an unsigned integer value that contains the width and style information of a primitive.

lstyle_info is a pointer to a structure that will receive the linestyle information applicable to width_style.

 

 

Return Value

get_linestyle_info returns 1 if width_style is valid for the current drawing, and 0 otherwise.

 

 

See Also

ROUND_NODE

 

 

Example

Assuming that you have a ROUND_NODE pointer 'round' that is properly initialized, the following code will extract the name of the linestyle from the width/style information:

C / C++ Code

 

 #include "silver.h

 #include "ssnodes.h"

 

 ROUND_NODE   *round;

 SS_LINESTYLE lstyle;

 .

 .

 .

 if ( get_linestyle_info(round->round_width_style, &lstyle) )

    {

    error_message("The linestyle name is %s", lstyle.name);

    }