StreamLinkforC  7.0.3-308369
sl_container_model Struct Reference

Structure that defines the interface for sl_container_apply_to_model() More...

#include <sl4c.h>

Data Fields

void(* clear )(void *context)
 Remove all elements in the model. More...
 
void(* insert )(void *context, int index, sl_autoelem *elem)
 Insert the element at an index. More...
 
void(* remove )(void *context, int index, sl_autoelem *elem)
 Remove the element at an index. More...
 
void(* move )(void *context, int from, int to, sl_autoelem *elem)
 Move the element from one index to another. More...
 

Detailed Description

Structure that defines the interface for sl_container_apply_to_model()

You should implement this interface if you use sl_container_apply_to_model()

Field Documentation

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:

Generated on Tue Oct 16 2018 12:25:43 for StreamLinkforC