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 600 pixelHeight 650 } } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info ["This shows Layout node" "performing different horizontal justification" "going left to right with line wrap" "in direction top to bottom and 1.1 line spacing" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "Layout Test" } Transform2D { translation -200 260 children [ DEF BOUNDS Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 } } geometry Rectangle { size 140 120 } } Transform2D { translation 0 -80 children [ Shape { appearance DEF APPTEXT Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry Text { string ["Alignment" "BEGIN BEGIN"] fontStyle DEF FS FontStyle { justify ["MIDDLE"] size 16 } } } ] } Layout { wrap TRUE size 140 120 justify ["BEGIN" "BEGIN"] 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 USE APPTEXT geometry Text { string ["Text#2"] fontStyle USE FS } } DEF S4 Shape { appearance Appearance { material Material2D { emissiveColor 0 1 0 filled TRUE } } geometry Circle { radius 25 } } ] } ] } Transform2D { translation -200 100 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "BEGIN FIRST"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["BEGIN" "FIRST"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation -200 -60 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "BEGIN MIDDLE"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["BEGIN" "MIDDLE"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation -200 -220 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "BEGIN END"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["BEGIN" "END"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 0 260 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "MIDDLE BEGIN"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["MIDDLE" "BEGIN"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 0 100 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "MIDDLE FIRST"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["MIDDLE" "FIRST"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 0 -60 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "MIDDLE MIDDLE"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["MIDDLE" "MIDDLE"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 0 -220 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "MIDDLE END"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["MIDDLE" "END"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 200 260 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "END BEGIN"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["END" "BEGIN"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 200 100 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "END FIRST"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["END" "FIRST"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 200 -60 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "END MIDDLE"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["END" "MIDDLE"] children [ USE S1 USE S2 USE S3 USE S4 ] } ] } Transform2D { translation 200 -220 children [ USE BOUNDS Transform2D { translation 0 -80 children [ Shape { appearance USE APPTEXT geometry Text { string ["Alignment" "END END"] fontStyle USE FS } } ] } Layout { wrap TRUE size 140 120 justify ["END" "END"] spacing 1.1 children [ USE S1 USE S2 USE S3 USE S4 ] } ] } ] }