Pads from the child elements can be ghosted to the bin, see {@link GhostPad}. This makes the bin look like any other elements and enables creation of higher-level abstraction elements.
A new {@link Bin} is created with {@link Bin#Bin(String)}. Use a {@link Pipeline} instead if youwant to create a toplevel bin because a normal bin doesn't have a bus or handle clock distribution of its own.
After the bin has been created you will typically add elements to it with {@link Bin#add(Element)}. Elements can be removed with {@link Bin#remove(Element)}
An element can be retrieved from a bin with {@link Bin#getElementByName(String)}.
A list of elements contained in a bin can be retrieved with {@link Bin#getElements}The {@link ELEMENT_ADDED} signal is fired whenever a new element is addedto the bin. Likewise the {@link ELEMENT_REMOVED} signal is firedwhenever an element is removed from the bin.
|
|
|
|
|
|
|
|