InitialObjectDescriptor { objectDescriptorID 1 audioProfileLevelIndication 255 visualProfileLevelIndication 254 sceneProfileLevelIndication 1 graphicsProfileLevelIndication 1 ODProfileLevelIndication 1 esDescr [ ES_Descriptor { ES_ID 1 decConfigDescr DecoderConfigDescriptor { streamType 3 decSpecificInfo BIFSConfig { isCommandStream true pixelMetric true pixelWidth 800 pixelHeight 400 } } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info ["This shows Layout node" "performing scrolling in different direction" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "Layout Test" } Transform2D { translation -250 160 children [ DEF BOUNDS Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 } } geometry Rectangle { size 200 60 } } Transform2D { translation 0 -50 children [ Shape { appearance DEF APPTEXT Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry Text { string ["scroll smooth vertical"] fontStyle DEF FS FontStyle { justify ["MIDDLE"] size 16 } } } ] } Layout { wrap TRUE size 200 60 justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollRate 0.1 children [ DEF S1 Shape { appearance Appearance { material Material2D { emissiveColor 1 0 0 filled TRUE } } geometry Rectangle { size 50 50 } } DEF S2 Shape { appearance USE APPTEXT geometry Text { string ["Sample Text"] fontStyle USE FS } } DEF S3 Shape { appearance Appearance { material Material2D { emissiveColor 0 1 0 filled TRUE } } geometry Circle { radius 25 } } ] } ] } Transform2D { translation -250 60 children [ USE BOUNDS Transform2D { translation 0 -50 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth vertical inverse"] fontStyle USE FS } } ] } Layout { wrap TRUE size 200 60 justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollRate -0.1 children [ USE S1 USE S2 USE S3 ] } ] } Transform2D { translation -250 -40 children [ USE BOUNDS Transform2D { translation 0 -50 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth horizontal"] fontStyle USE FS } } ] } Layout { wrap TRUE size 200 60 justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollVertical FALSE scrollRate 0.1 children [ USE S1 USE S2 USE S3 ] } ] } Transform2D { translation -250 -140 children [ USE BOUNDS Transform2D { translation 0 -50 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth horizontal inverse"] fontStyle USE FS } } ] } Layout { wrap TRUE size 200 60 justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollVertical FALSE scrollRate -0.1 children [ USE S1 USE S2 USE S3 ] } ] } Transform2D { translation 0 120 children [ DEF BOUNDS2 Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 } } geometry Rectangle { size 100 150 } } Transform2D { translation 0 -90 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth vertical"] fontStyle USE FS } } ] } Layout { wrap TRUE size 100 150 horizontal FALSE justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollRate 0.1 children [ USE S1 USE S2 USE S3 ] } ] } Transform2D { translation 200 120 children [ USE BOUNDS2 Transform2D { translation 0 -90 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth vertical inverse"] fontStyle USE FS } } ] } Layout { wrap TRUE size 100 150 horizontal FALSE justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollRate -0.1 children [ USE S1 USE S2 USE S3 ] } ] } Transform2D { translation 0 -80 children [ USE BOUNDS2 Transform2D { translation 0 -90 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth horizontal"] fontStyle USE FS } } ] } Layout { wrap TRUE size 100 150 horizontal FALSE justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollVertical FALSE scrollRate 0.1 children [ USE S1 USE S2 USE S3 ] } ] } Transform2D { translation 200 -80 children [ USE BOUNDS2 Transform2D { translation 0 -90 children [ Shape { appearance USE APPTEXT geometry Text { string ["scroll smooth horizontal inverse"] fontStyle USE FS } } ] } Layout { wrap TRUE size 100 150 horizontal FALSE justify ["BEGIN" "BEGIN"] smoothScroll TRUE loop TRUE scrollVertical FALSE scrollRate -0.1 children [ USE S1 USE S2 USE S3 ] } ] } ] }