pass measure callback data from c++ to java
Summary: Passing Measure callback data - width, widthMeasureMode, height, heightMeasureMode, measuredWidth and measuredHeight along with NodeMeasure event This data is then propagated to java layer in this diff Reviewed By: davidaurelio Differential Revision: D15697523 fbshipit-source-id: 615463da237175ff88abef3f6528b55333ccd915
This commit is contained in:
committed by
Facebook Github Bot
parent
19fd066507
commit
a130ac2f9c
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
#include "../YGEnums.h"
|
||||
|
||||
struct YGConfig;
|
||||
struct YGNode;
|
||||
@@ -85,6 +86,12 @@ struct Event::TypedData<Event::LayoutPassEnd> {
|
||||
template <>
|
||||
struct Event::TypedData<Event::NodeMeasure> {
|
||||
void* layoutContext;
|
||||
float width;
|
||||
YGMeasureMode widthMeasureMode;
|
||||
float height;
|
||||
YGMeasureMode heightMeasureMode;
|
||||
float measuredWidth;
|
||||
float measuredHeight;
|
||||
};
|
||||
|
||||
template <>
|
||||
|
Reference in New Issue
Block a user