C# Класс Nez.Overlap2D.Runtime.CompositeItemVO

Наследование: MainItemVO
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
composite CompositeVO
height float
scissorHeight float
scissorWidth float
scissorX float
scissorY float
width float

Открытые методы

Метод Описание
ToString ( ) : string
calculateLayerDepthForChild ( float zIndexMin, float zIndexMax, MainItemVO child, float zIndexMaxChild = 100 ) : float

gets the layerDepth for a child composite. It calculates it by first getting the composite (parent) layerDepth the standard way (via zIndexMin/Max) and then subtracting the inverse of the child (O2DMainItem) layerDepth which uses zIndexMaxChild. For this to work intelligently zIndexMaxComp should be the standard scene.zIndexMax value and zIndexMaxChild should be a much higher number. The reason for this is so that the parent component has a small offset to use for each child and so they dont overflow to the next zIndex. Example: parent is 14. Any children must end up being between 14 and 15 so they dont overflow on top of another composite.

Описание методов

ToString() публичный Метод

public ToString ( ) : string
Результат string

calculateLayerDepthForChild() публичный Метод

gets the layerDepth for a child composite. It calculates it by first getting the composite (parent) layerDepth the standard way (via zIndexMin/Max) and then subtracting the inverse of the child (O2DMainItem) layerDepth which uses zIndexMaxChild. For this to work intelligently zIndexMaxComp should be the standard scene.zIndexMax value and zIndexMaxChild should be a much higher number. The reason for this is so that the parent component has a small offset to use for each child and so they dont overflow to the next zIndex. Example: parent is 14. Any children must end up being between 14 and 15 so they dont overflow on top of another composite.
public calculateLayerDepthForChild ( float zIndexMin, float zIndexMax, MainItemVO child, float zIndexMaxChild = 100 ) : float
zIndexMin float
zIndexMax float
child MainItemVO Child.
zIndexMaxChild float Z index max child.
Результат float

Описание свойств

composite публичное свойство

public CompositeVO,Nez.Overlap2D.Runtime composite
Результат CompositeVO

height публичное свойство

public float height
Результат float

scissorHeight публичное свойство

public float scissorHeight
Результат float

scissorWidth публичное свойство

public float scissorWidth
Результат float

scissorX публичное свойство

public float scissorX
Результат float

scissorY публичное свойство

public float scissorY
Результат float

width публичное свойство

public float width
Результат float