DoListView() 개인적인 정적인 메소드

private static DoListView ( ListViewState state, int colWidths, string dragTitle ) : ListViewShared.ListViewElementsEnumerator
state ListViewState
colWidths int
dragTitle string
리턴 ListViewShared.ListViewElementsEnumerator
예제 #1
0
 public static ListViewShared.ListViewElementsEnumerator ListView(ListViewState state, ListViewOptions lvOptions, string dragTitle, GUIStyle style, params GUILayoutOption[] options)
 {
     ListViewGUILayout.lvState = state;
     GUILayout.BeginHorizontal(style, options);
     state.scrollPos = EditorGUILayout.BeginScrollView(state.scrollPos, options);
     ListViewGUILayout.BeginLayoutedListview(state, GUIStyle.none);
     state.draggedFrom = -1;
     state.draggedTo   = -1;
     state.fileNames   = (string[])null;
     if ((lvOptions & ListViewOptions.wantsReordering) != (ListViewOptions)0)
     {
         state.ilvState.wantsReordering = true;
     }
     if ((lvOptions & ListViewOptions.wantsExternalFiles) != (ListViewOptions)0)
     {
         state.ilvState.wantsExternalFiles = true;
     }
     if ((lvOptions & ListViewOptions.wantsToStartCustomDrag) != (ListViewOptions)0)
     {
         state.ilvState.wantsToStartCustomDrag = true;
     }
     if ((lvOptions & ListViewOptions.wantsToAcceptCustomDrag) != (ListViewOptions)0)
     {
         state.ilvState.wantsToAcceptCustomDrag = true;
     }
     return(ListViewGUILayout.DoListView(state, (int[])null, dragTitle));
 }