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 <stdint.h>
|
2016-08-15 16:15:02 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2016-08-02 15:06:55 +00:00
|
|
|
|
2016-08-24 17:40:32 +00:00
|
|
|
#include "CSSLayout.h"
|
|
|
|
#include "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-22 13:58:13 +00:00
|
|
|
CSSNodeListRef CSSNodeListNew(const uint32_t initialCapacity);
|
|
|
|
void CSSNodeListFree(const CSSNodeListRef list);
|
|
|
|
uint32_t CSSNodeListCount(const CSSNodeListRef list);
|
|
|
|
void CSSNodeListAdd(const CSSNodeListRef list, const CSSNodeRef node);
|
|
|
|
void CSSNodeListInsert(const CSSNodeListRef list, const CSSNodeRef node, const uint32_t index);
|
|
|
|
CSSNodeRef CSSNodeListRemove(const CSSNodeListRef list, const uint32_t index);
|
|
|
|
CSSNodeRef CSSNodeListDelete(const CSSNodeListRef list, const CSSNodeRef node);
|
|
|
|
CSSNodeRef CSSNodeListGet(const CSSNodeListRef list, const uint32_t index);
|
2016-07-20 20:26:57 +00:00
|
|
|
|
|
|
|
CSS_EXTERN_C_END
|