void TestDownList()
 {
     if (XEditorTools.DrawHeader("TestDownList"))
     {
         EditorGUILayout.PrefixLabel("AnyThing");
         EditorGUILayout.RectField("RectField", new Rect(1, 2, 3, 4));
     }
 }
 void TestReorderableList()
 {
     if (XEditorTools.DrawHeader("TestReorderableList") == false)
     {
         return;
     }
     XEditorTools.BeginContents();
     if (_reorder_list == null)
     {
         List <int> list = new List <int>()
         {
             1, 2, 3, 4, 5
         };
         _reorder_list                    = new ReorderableList(list, typeof(string));
         _reorder_list.draggable          = true;
         _reorder_list.elementHeight      = 22;
         _reorder_list.drawHeaderCallback = (Rect rect) =>
         {
             EditorGUI.LabelField(rect, "header rect=" + rect.ToString());
         };
         _reorder_list.drawElementCallback = (Rect rect, int index, bool isActive, bool isFocused) =>
         {
             var element = _reorder_list.list[index];
             var str     = string.Format("rect={0} index={1} isActive={2} isFocused={3} value={4} list={5}", rect, index, isActive, isFocused, element, list[index]);
             //EditorGUILayout.PrefixLabel(str);
             Rect r = rect;
             r.width = 16;
             EditorGUI.Toggle(r, index > 1);
             r.x    += 18;
             r.width = rect.width - 18;
             EditorGUI.TextField(r, str);
         };
     }
     _reorder_list.DoLayoutList();
     XEditorTools.EndContents();
 }