Borodar.ReorderableList.ReorderableListControl.DrawFloatingListItem C# (CSharp) Метод

DrawFloatingListItem() приватный Метод

private DrawFloatingListItem ( IReorderableListAdaptor adaptor, float targetSlotPosition ) : void
adaptor IReorderableListAdaptor
targetSlotPosition float
Результат void
        private void DrawFloatingListItem(IReorderableListAdaptor adaptor, float targetSlotPosition)
        {
            if (Event.current.type == EventType.Repaint) {
                Color restoreColor = GUI.color;

                // Fill background of target area.
                Rect targetPosition = s_DragItemPosition;
                targetPosition.y = targetSlotPosition - 1;
                targetPosition.height = 1;

                GUIHelper.Separator(targetPosition, HorizontalLineColor);

                --targetPosition.x;
                ++targetPosition.y;
                targetPosition.width += 2;
                targetPosition.height = s_DragItemPosition.height - 1;

                GUI.color = TargetBackgroundColor;
                GUIHelper.DrawTexture(targetPosition, EditorGUIUtility.whiteTexture);

                // Fill background of item which is being dragged.
                --s_DragItemPosition.x;
                s_DragItemPosition.width += 2;
                --s_DragItemPosition.height;

                GUI.color = AnchorBackgroundColor;
                GUIHelper.DrawTexture(s_DragItemPosition, EditorGUIUtility.whiteTexture);

                ++s_DragItemPosition.x;
                s_DragItemPosition.width -= 2;
                ++s_DragItemPosition.height;

                // Draw horizontal splitter above and below.
                GUI.color = new Color(0f, 0f, 0f, 0.6f);
                targetPosition.y = s_DragItemPosition.y - 1;
                targetPosition.height = 1;
                GUIHelper.DrawTexture(targetPosition, EditorGUIUtility.whiteTexture);

                targetPosition.y += s_DragItemPosition.height;
                GUIHelper.DrawTexture(targetPosition, EditorGUIUtility.whiteTexture);

                GUI.color = restoreColor;
            }

            DrawListItem(s_DragItemPosition, adaptor, s_AnchorIndex);
        }