Structure that defines the interface for sl_container_apply_to_model()
More...
#include <sl4c.h>
Structure that defines the interface for sl_container_apply_to_model()
You should implement this interface if you use sl_container_apply_to_model()
void(* sl_container_model::clear) (void *context) |
Remove all elements in the model.
- Parameters
-
context | - The callback context |
void(* sl_container_model::insert) (void *context, int index, sl_autoelem *elem) |
Insert the element at an index.
- Parameters
-
context | - The callback context |
index | - The index at which to insert the element |
elem | - The element to insert |
void(* sl_container_model::move) (void *context, int from, int to, sl_autoelem *elem) |
Move the element from one index to another.
- Parameters
-
context | - The callback context |
from | - The index to move the elmeent from |
to | - The index to move the element to |
elem | - The element to move |
void(* sl_container_model::remove) (void *context, int index, sl_autoelem *elem) |
Remove the element at an index.
- Parameters
-
context | - The callback context |
index | - The index at which to remove the element from |
elem | - The element to remove |
The documentation for this struct was generated from the following file: