Kiwi User Interface Framework
beta
|
Define KUListItem and KUList data structure. More...
#import <Foundation/Foundation.h>
#import <Coconut/Coconut.h>
Go to the source code of this file.
Classes | |
struct | KUListItem |
List item to keep the NSObject. More... | |
struct | KUList |
List of NSObject. More... | |
Functions | |
static struct KUListItem * | KUAllocateListItem (struct CNResource *resource) |
Allocate item of object list. | |
static void | KUInitList (struct KUList *dst) |
Initialize object list. | |
void | KUDestroyList (struct CNResource *resource, struct KUList *dst) |
Destroy the context of the object list. | |
void | KUAddObjectToList (struct KUList *dst, NSObject *src, struct CNResource *resource) |
Add object to the list. |
Define KUListItem and KUList data structure.
static struct KUListItem* KUAllocateListItem | ( | struct CNResource * | resource | ) | [static, read] |
Allocate item of object list.
resource | Resource to allocate the list item |
References KUListItem::nextItem, and KUListItem::object.
static void KUInitList | ( | struct KUList * | dst | ) | [inline, static] |
Initialize object list.
dst | Destination list |
References KUList::firstItem, KUList::itemCount, and KUList::lastItem.
void KUDestroyList | ( | struct CNResource * | resource, |
struct KUList * | dst | ||
) |
Destroy the context of the object list.
resource | Resource to return the unallocated objects |
dst | Destination object list |
void KUAddObjectToList | ( | struct KUList * | dst, |
NSObject * | src, | ||
struct CNResource * | resource | ||
) |
Add object to the list.
dst | Destination list |
src | Object to be added |
resource | Resource to allocate the list |