2016-07-20 13:26:57 -07: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 08:07:09 -07:00
|
|
|
#pragma once
|
2016-07-20 13:26:57 -07:00
|
|
|
|
2016-08-02 08:06:55 -07:00
|
|
|
#include <assert.h>
|
|
|
|
#include <stdint.h>
|
2016-08-15 09:15:02 -07:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2016-08-02 08:06:55 -07:00
|
|
|
|
2016-08-24 10:40:32 -07:00
|
|
|
#include "CSSLayout.h"
|
|
|
|
#include "CSSMacros.h"
|
2016-07-20 13:26:57 -07:00
|
|
|
|
|
|
|
CSS_EXTERN_C_BEGIN
|
|
|
|
|
2016-08-04 08:20:11 -07:00
|
|
|
typedef struct CSSNodeList *CSSNodeListRef;
|
2016-07-20 13:26:57 -07:00
|
|
|
|
2016-08-22 06:58:13 -07: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 13:26:57 -07:00
|
|
|
|
|
|
|
CSS_EXTERN_C_END
|