Ejemplo n.º 1
0
            private GUILayoutOption CreateRawOption(GUILayoutOptionType type, int index)
            {
                var option = CreateRawOption(type);

                rawOptionIndices[GUILayoutOptionTypeEnum.IndexOfBit(type)] = index;
                return(option);
            }
Ejemplo n.º 2
0
            private int GetRawOptionIndex(GUILayoutOptionType type)
            {
                int typeIndex = GUILayoutOptionTypeEnum.IndexOfBit(type);
                int rawIndex  = rawOptionIndices[typeIndex];

                if (rawIndex == Index.Invalid)
                {
                    throw new ArgumentException("The current instance do not contains specified option type", "type");
                }
                return(rawIndex);
            }