SilverScreen Solid Modeler

get_window_info

get_window_info

Previous topic Next topic  

get_window_info

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

void get_window_info ( SS_WINDOW_INFO *w_info )

 

SS_WINDOW_INFO *w_info;   // A pointer to an SS_WINDOW_INFO data type

 

 

 




Synopsis

#include "silver.h"

 

The get_window_info function retrieves properties from the current window and places them in w_info.

 

 

Parameters

w_info is a pointer to an SS_WINDOW_INFO data type that receives the window information

 

 

Return Value

none

 

 

See Also

sys_window

 

 

Example

The following code retrieves information about the current window and displays the background color:

C / C++ Code

 

 #include "silver.h"

 

 void main(void)

    {

    SS_WINDOW_INFO w;

 

 

    get_window_info(&w);

 

    error_message("Window background r%dg%db%d",

                  RED_COLOR(w.background_rgb),

                  GREEN_COLOR(w.background_rgb),

                  BLUE_COLOR(w.background_rgb));

    }