Method TernaryConditional
TernaryConditional(Enabler, IDrawer, IDrawer)
Conditioned drawer that will draw something depending of the return of the switch
Declaration
public static CoreEditorDrawer<TData>.IDrawer TernaryConditional(CoreEditorDrawer<TData>.Enabler @switch, CoreEditorDrawer<TData>.IDrawer drawIfTrue, CoreEditorDrawer<TData>.IDrawer drawIfFalse)
Parameters
Type | Name | Description |
---|---|---|
Core |
switch | Chose witch drawing to use |
Core |
drawIfTrue | This will be draw if the switch is true |
Core |
drawIfFalse | This will be draw if the switch is false |
Returns
Type | Description |
---|---|
Core |
A IDrawer object |
TernaryConditional(Enabler, ActionDrawer, ActionDrawer)
Conditioned drawer that will draw something depending of the return of the switch
Declaration
public static CoreEditorDrawer<TData>.IDrawer TernaryConditional(CoreEditorDrawer<TData>.Enabler @switch, CoreEditorDrawer<TData>.ActionDrawer drawIfTrue, CoreEditorDrawer<TData>.ActionDrawer drawIfFalse)
Parameters
Type | Name | Description |
---|---|---|
Core |
switch | Chose witch drawing to use |
Core |
drawIfTrue | This will be draw if the switch is true |
Core |
drawIfFalse | This will be draw if the switch is false |
Returns
Type | Description |
---|---|
Core |
A IDrawer object |