Import new C source of truth css-layout
fbshipit-source-id: e866918d6c62fc1cf3a04c269f782b94db9b875a
This commit is contained in:
30
CSSLayout/CSSNodeList.h
Normal file
30
CSSLayout/CSSNodeList.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef __CSS_NODE_LIST_H
|
||||
#define __CSS_NODE_LIST_H
|
||||
|
||||
#include <CSSLayout/CSSLayout.h>
|
||||
|
||||
CSS_EXTERN_C_BEGIN
|
||||
|
||||
typedef struct CSSNodeList * CSSNodeListRef;
|
||||
|
||||
CSSNodeListRef CSSNodeListNew(unsigned int initialCapacity);
|
||||
void CSSNodeListFree(CSSNodeListRef list);
|
||||
unsigned int CSSNodeListCount(CSSNodeListRef list);
|
||||
void CSSNodeListAdd(CSSNodeListRef list, CSSNodeRef node);
|
||||
void CSSNodeListInsert(CSSNodeListRef list, CSSNodeRef node, unsigned int index);
|
||||
CSSNodeRef CSSNodeListRemove(CSSNodeListRef list, unsigned int index);
|
||||
CSSNodeRef CSSNodeListDelete(CSSNodeListRef list, CSSNodeRef node);
|
||||
CSSNodeRef CSSNodeListGet(CSSNodeListRef list, unsigned int index);
|
||||
|
||||
CSS_EXTERN_C_END
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user