SilverScreen Solid Modeler

SSVarTypes

SSVarTypes

Previous topic Next topic  

SSVarTypes

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SSVarTypes

 

Structure

The SSVarTypes enumeration is used with the SilverSharp version of the get_ss_variable_value SilverScreen API routine.

 

 

C# Code

 

  enum SSVarTypes

     {

     SSVV_char_height,

     SSVV_char_width,

     SSVV_num_colors,

     SSVV_vchar_bot,

     SSVV_vchar_left,

     SSVV_vchar_right,

     SSVV_vchar_top,

     SSVV_schar_bot,

     SSVV_schar_height,

     SSVV_schar_left,

     SSVV_schar_right,

     SSVV_schar_top,

     SSVV_schar_width,

     SSVV_vpixel_bot,

     SSVV_vpixel_left,

     SSVV_vpixel_right,

     SSVV_vpixel_top,

     SSVV_spixel_width,

     SSVV_spixel_height,

     };

 

 

 

Members

See the SilverScreen API routine get_ss_variable_value for an explanation of the SSVarTypes symbolic names.

 

 

See Also

get_ss_variable_value, Enumerations

 

Remarks

The SSVarTypes enumeration is provided to ease the porting of SilverC, SilverPlus, or SilverEngine code. New SilverSharp code can use the State class to access these properties.

 

For instance, this:

 

  State.char_height

 

is equivalent to this:

 

  SC.get_ss_variable_value(SSVarTypes.SSVV_char_height);

 

 

Example

The following code retrieves the current screen pixel width:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 int screen_width = SC.get_ss_variable_value(SSVarTypes.SSVV_spixel_width);