mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Handle children internally in CSSLayout
Reviewed By: javache Differential Revision: D3588205 fbshipit-source-id: 27f701a9a85cc0e86bb1d233a6bc74b529a8d4d4
This commit is contained in:
committed by
Facebook Github Bot 6
parent
566e0553ca
commit
0df569dc7f
30
React/CSSLayout/CSSNodeList.h
Normal file
30
React/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