DrawerPriority

DrawerPriority is used in conjunction with DrawerPriorityAttributeto specify the priority of any given drawer. It consists of 3 components: Super, Wrapper, Value, where Super is the most significant component, and Standard is the least significant component.

namespace Sirenix.OdinInspector.Editor
{
public struct DrawerPriority : IEquatable<DrawerPriority>, IComparable<DrawerPriority>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

Static Fields

Return Type Definition Description
DrawerPriority AttributePriority The attribute priority. Mostly used by OdinAttributeDrawer<TAttribute, TValue>s.
DrawerPriority AutoPriority Auto priority is defined by setting all of the components to zero. If no DrawerPriorityAttribute is defined on a drawer, it will default to AutoPriority.
DrawerPriority SuperPriority The super priority. Mostly used by drawers that wants to wrap the entire property but don't draw the actual property. These drawers typically don't draw the property itself, and calls CallNextDrawer.
DrawerPriority ValuePriority The standard priority. Mostly used by OdinValueDrawer<T>s.
DrawerPriority WrapperPriority The wrapper priority. Mostly used by drawers used to decorate properties.

Fields

Return Type Definition Description
double Super The super priority. Mostly used by drawers that wants to wrap the entire property but don't draw the actual property. These drawers typically don't draw the property itself, and calls CallNextDrawer.
double Value The value priority. Mostly used by OdinValueDrawer<T>s and OdinAttributeDrawer<TAttribute, TValue>s.
double Wrapper The wrapper priority. Mostly used by drawers used to decorate properties.

Constructors

Definition Description
DrawerPriority(double, double, double) Initializes a new instance of the DrawerPriority struct.
DrawerPriority(DrawerPriorityLevel) Initializes a new instance of the DrawerPriority struct.

Methods

Return Type Definition Description
int CompareTo(DrawerPriority) Compares to.
bool Equals(DrawerPriority) Equals the specified other.
bool Equals(Object) Determines whether the specified Object, is equal to this instance.
int GetHashCode() Returns a hash code for this instance.
DrawerPriorityLevel GetPriorityLevel() Gets the priority level.
string ToString() Returns a String that represents this instance.
string ToString(string) Returns a String that represents this instance.

Operators

Definition Description
op_Addition(DrawerPriority, DrawerPriority) Implements the operator +.
op_Equality(DrawerPriority, DrawerPriority) Implements the operator ==.
op_GreaterThan(DrawerPriority, DrawerPriority) Implements the operator >.
op_GreaterThanOrEqual(DrawerPriority, DrawerPriority) Implements the operator >=.
op_Inequality(DrawerPriority, DrawerPriority) Implements the operator !=.
op_LessThan(DrawerPriority, DrawerPriority) Implements the operator <.
op_LessThanOrEqual(DrawerPriority, DrawerPriority) Implements the operator <=.
op_Subtraction(DrawerPriority, DrawerPriority) Implements the operator -.