UnityEngine.GUIStyle.Internal_Draw C# (CSharp) Method

Internal_Draw() private static method

private static Internal_Draw ( IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus ) : void
target System.IntPtr
position Rect
content GUIContent
isHover bool
isActive bool
on bool
hasKeyboardFocus bool
return void
        private static void Internal_Draw(IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
        {
            Internal_DrawArguments arguments = new Internal_DrawArguments {
                target = target,
                position = position,
                isHover = !isHover ? 0 : 1,
                isActive = !isActive ? 0 : 1,
                on = !on ? 0 : 1,
                hasKeyboardFocus = !hasKeyboardFocus ? 0 : 1
            };
            Internal_Draw(content, ref arguments);
        }

Same methods

GUIStyle::Internal_Draw ( GUIContent content, Internal_DrawArguments &arguments ) : void

Usage Example

コード例 #1
0
ファイル: GUIStyle.cs プロジェクト: yiifans/UnityDecompiled
 public void Draw(Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
 {
     if (Event.current.type != EventType.Repaint)
     {
         Debug.LogError("Style.Draw may not be called if it is not a repaint event");
         return;
     }
     GUIStyle.Internal_Draw(this.m_Ptr, position, content, isHover, isActive, on, hasKeyboardFocus);
 }
All Usage Examples Of UnityEngine.GUIStyle::Internal_Draw