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 |
|---|---|---|
| CoreEditorDrawer<TData>.Enabler | switch | Chose witch drawing to use |
| CoreEditorDrawer<TData>.IDrawer | drawIfTrue | This will be draw if the switch is true |
| CoreEditorDrawer<TData>.IDrawer | drawIfFalse | This will be draw if the switch is false |
Returns
| Type | Description |
|---|---|
| CoreEditorDrawer<TData>.IDrawer | 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 |
|---|---|---|
| CoreEditorDrawer<TData>.Enabler | switch | Chose witch drawing to use |
| CoreEditorDrawer<TData>.ActionDrawer | drawIfTrue | This will be draw if the switch is true |
| CoreEditorDrawer<TData>.ActionDrawer | drawIfFalse | This will be draw if the switch is false |
Returns
| Type | Description |
|---|---|
| CoreEditorDrawer<TData>.IDrawer | A IDrawer object |