SliceO_Class::Inside_Get

 

This method return the class's bounding box for the specified window.

 

 

Syntax

 

Region_2D  Inside_Get(

          SliceO_Window * window

) ;

 

 

Parameters

 

window

                    Pointer to a window .

 

 

Return value

 

This method return the bounding box of this class's instance for the specified window in "Inf" space.

 

 

Remarks

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

Library:

          sliceO_Structures.lib

 

 

Example

 

// --- get the current window ---

SliceO_Window *window = (SliceO_Window *) Fct_Variable_Value( "$WINDOW_CUR" ) ;

 

if ( Iterator_Init( ITERATOR_USER_1, "Test" ) ) {

          while( SliceO_Frame *frame = (SliceO_Frame *) Iterator_Class( ITERATOR_USER_1, CLASS_ID_FRAME, window ) ) {

 

                    // --- Get the bounding box ---

                    region_2D region = frame->Inside_Get( window ) ;

                    Error_Fct( hwnd, ERROR_CODE_REPORT, "frame %s: dim x= %.2f, y= %.2f",

                              region->Get_Dim_X(), region->Get_Dim_Y() ) ;

          }

          Iterator_End( ITERATOR_USER_1 ) ;

}

 

See also