2016-07-20 20:26:57 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
2016-08-02 15:07:09 +00:00
|
|
|
#pragma once
|
2016-07-20 20:26:57 +00:00
|
|
|
|
2016-08-02 15:06:55 +00:00
|
|
|
#include <assert.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2016-07-20 20:26:57 +00:00
|
|
|
#include <CSSLayout/CSSLayout.h>
|
2016-08-02 15:07:11 +00:00
|
|
|
#include <CSSLayout/CSSMacros.h>
|
2016-07-20 20:26:57 +00:00
|
|
|
|
|
|
|
CSS_EXTERN_C_BEGIN
|
|
|
|
|
2016-08-04 15:20:11 +00:00
|
|
|
typedef struct CSSNodeList *CSSNodeListRef;
|
2016-07-20 20:26:57 +00:00
|
|
|
|
2016-08-02 15:06:55 +00:00
|
|
|
CSSNodeListRef CSSNodeListNew(uint32_t initialCapacity);
|
2016-07-20 20:26:57 +00:00
|
|
|
void CSSNodeListFree(CSSNodeListRef list);
|
2016-08-02 15:06:55 +00:00
|
|
|
uint32_t CSSNodeListCount(CSSNodeListRef list);
|
2016-07-20 20:26:57 +00:00
|
|
|
void CSSNodeListAdd(CSSNodeListRef list, CSSNodeRef node);
|
2016-08-02 15:06:55 +00:00
|
|
|
void CSSNodeListInsert(CSSNodeListRef list, CSSNodeRef node, uint32_t index);
|
|
|
|
CSSNodeRef CSSNodeListRemove(CSSNodeListRef list, uint32_t index);
|
2016-07-20 20:26:57 +00:00
|
|
|
CSSNodeRef CSSNodeListDelete(CSSNodeListRef list, CSSNodeRef node);
|
2016-08-02 15:06:55 +00:00
|
|
|
CSSNodeRef CSSNodeListGet(CSSNodeListRef list, uint32_t index);
|
2016-07-20 20:26:57 +00:00
|
|
|
|
|
|
|
CSS_EXTERN_C_END
|