public override void OnGUI(Rect position, int column) { if (column == 0) { HeEditorGUI.ManagedTypeIcon(HeEditorGUI.SpaceL(ref position, position.height), m_Type.packed); } switch ((Column)column) { case Column.Name: HeEditorGUI.TypeName(position, typeName); break; case Column.Size: HeEditorGUI.Size(position, size); break; case Column.ValueType: EditorGUI.ToggleLeft(position, GUIContent.none, isValueType); break; case Column.AssemblyName: HeEditorGUI.AssemblyName(position, assemblyName); break; } }
public override void OnGUI(Rect position, int column) { if (column == 0) { GUI.Box(HeEditorGUI.SpaceL(ref position, position.height), HeEditorStyles.csStaticImage, HeEditorStyles.iconStyle); } switch ((Column)column) { case Column.Type: HeEditorGUI.TypeName(position, typeName); break; case Column.Size: HeEditorGUI.Size(position, size); break; case Column.Refs: GUI.Label(position, referencesCount.ToString()); break; case Column.Assembly: GUI.Label(position, assemblyName); break; } }
public override void OnGUI(Rect position, int column) { if (column == 0) { GUI.Box(HeEditorGUI.SpaceL(ref position, position.height), HeEditorStyles.csImage, HeEditorStyles.iconStyle); //if (m_managedObject.gcHandlesArrayIndex != -1) //{ // if (HeEditorGUI.GCHandleButton(HeEditorGUI.SpaceR(ref position, position.height))) // { // m_owner.m_Window.OnGoto(new GotoCommand(new RichGCHandle(m_snapshot, m_snapshot.gcHandles[m_managedObject.gcHandlesArrayIndex]))); // } //} if (m_Object.nativeObject.isValid) { if (HeEditorGUI.CppButton(HeEditorGUI.SpaceR(ref position, position.height))) { m_Owner.window.OnGoto(new GotoCommand(m_Object.nativeObject)); } } } switch ((Column)column) { case Column.Type: HeEditorGUI.TypeName(position, typeName); break; case Column.CppCounterpart: if (m_Object.nativeObject.isValid) { GUI.Label(position, m_Object.nativeObject.name); } break; case Column.Size: HeEditorGUI.Size(position, size); break; case Column.Address: HeEditorGUI.Address(position, m_Object.address); break; case Column.Assembly: GUI.Label(position, assembly); break; } }
public override void OnGUI(Rect position, int column) { switch ((Column)column) { case Column.GCHandle: HeEditorGUI.TypeName(position, typeName); break; case Column.Size: HeEditorGUI.Size(position, size); break; case Column.Count: GUI.Label(position, count.ToString()); break; } }
public override void OnGUI(Rect position, int column) { switch ((Column)column) { case Column.Address: HeEditorGUI.Address(position, address); break; case Column.Size: HeEditorGUI.Size(position, (long)size); break; #if HEAPEXPLORER_DISPLAY_REFS case Column.Refs: GUI.Label(position, refs.ToString()); break; #endif } }
public override void OnGUI(Rect position, int column) { if (column == 0) { GUI.Box(HeEditorGUI.SpaceL(ref position, position.height), HeEditorStyles.gcHandleImage, HeEditorStyles.iconStyle); if (m_GCHandle.nativeObject.isValid) { if (HeEditorGUI.CppButton(HeEditorGUI.SpaceR(ref position, position.height))) { m_Owner.window.OnGoto(new GotoCommand(m_GCHandle.nativeObject)); } } if (m_GCHandle.managedObject.isValid) { if (HeEditorGUI.CsButton(HeEditorGUI.SpaceR(ref position, position.height))) { m_Owner.window.OnGoto(new GotoCommand(m_GCHandle.managedObject)); } } } switch ((Column)column) { case Column.GCHandle: HeEditorGUI.TypeName(position, typeName); break; case Column.Size: HeEditorGUI.Size(position, size); break; case Column.Address: HeEditorGUI.Address(position, address); break; } }
public override void OnGUI(Rect position, int column) { if (column == 0 && this.icon != null) { GUI.Box(HeEditorGUI.SpaceL(ref position, position.height), this.icon, HeEditorStyles.iconStyle); } switch ((EColumn)column) { case EColumn.Type: HeEditorGUI.TypeName(position, displayName ?? k_UnknownTypeString); break; case EColumn.SizeA: HeEditorGUI.Size(position, size[0]); break; case EColumn.SizeB: HeEditorGUI.Size(position, size[1]); break; case EColumn.SizeDiff: HeEditorGUI.SizeDiff(position, sizeDiff); break; case EColumn.CountA: HeEditorGUI.Count(position, count[0]); break; case EColumn.CountB: HeEditorGUI.Count(position, count[1]); break; case EColumn.CountDiff: HeEditorGUI.CountDiff(position, countDiff); break; } }
public override void OnGUI(Rect position, int column) { if (column == 0) { HeEditorGUI.NativeObjectIcon(HeEditorGUI.SpaceL(ref position, position.height), m_Object.packed); if (m_Object.managedObject.isValid) { if (HeEditorGUI.CsButton(HeEditorGUI.SpaceR(ref position, position.height))) { m_Owner.window.OnGoto(new GotoCommand(m_Object.managedObject)); } } } switch ((Column)column) { case Column.Type: GUI.Label(position, typeName); break; case Column.Name: { GUI.Label(position, name); var e = Event.current; if (e.type == EventType.ContextClick && position.Contains(e.mousePosition)) { var menu = new GenericMenu(); OnShowNameContextMenu(menu); if (menu.GetItemCount() > 0) { e.Use(); menu.ShowAsContext(); } } } break; case Column.Size: HeEditorGUI.Size(position, size); break; case Column.Address: HeEditorGUI.Address(position, address); break; case Column.DontDestroyOnLoad: GUI.Label(position, isDontDestroyOnLoad.ToString()); break; case Column.IsPersistent: GUI.Label(position, isPersistent.ToString()); break; case Column.InstanceID: GUI.Label(position, instanceId.ToString()); break; #if HEAPEXPLORER_DISPLAY_REFS case Column.ReferencesCount: GUI.Label(position, m_ReferencesCount.ToString()); break; case Column.ReferencedByCount: GUI.Label(position, m_ReferencedByCount.ToString()); break; #endif } }