YGEdge -> yoga::Edge (#1461)
Summary: X-link: https://github.com/facebook/react-native/pull/41391 Pull Request resolved: https://github.com/facebook/yoga/pull/1461 Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum. With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API. Changelog: [internal] Reviewed By: rshest Differential Revision: D51152779 fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a121483e81
commit
325ccea068
@@ -227,32 +227,32 @@ class YG_EXPORT Style {
|
||||
return {*this};
|
||||
}
|
||||
|
||||
Style::Length margin(YGEdge edge) const {
|
||||
return margin_[edge];
|
||||
Style::Length margin(Edge edge) const {
|
||||
return margin_[yoga::to_underlying(edge)];
|
||||
}
|
||||
void setMargin(YGEdge edge, Style::Length value) {
|
||||
margin_[edge] = value;
|
||||
void setMargin(Edge edge, Style::Length value) {
|
||||
margin_[yoga::to_underlying(edge)] = value;
|
||||
}
|
||||
|
||||
Style::Length position(YGEdge edge) const {
|
||||
return position_[edge];
|
||||
Style::Length position(Edge edge) const {
|
||||
return position_[yoga::to_underlying(edge)];
|
||||
}
|
||||
void setPosition(YGEdge edge, Style::Length value) {
|
||||
position_[edge] = value;
|
||||
void setPosition(Edge edge, Style::Length value) {
|
||||
position_[yoga::to_underlying(edge)] = value;
|
||||
}
|
||||
|
||||
Style::Length padding(YGEdge edge) const {
|
||||
return padding_[edge];
|
||||
Style::Length padding(Edge edge) const {
|
||||
return padding_[yoga::to_underlying(edge)];
|
||||
}
|
||||
void setPadding(YGEdge edge, Style::Length value) {
|
||||
padding_[edge] = value;
|
||||
void setPadding(Edge edge, Style::Length value) {
|
||||
padding_[yoga::to_underlying(edge)] = value;
|
||||
}
|
||||
|
||||
Style::Length border(YGEdge edge) const {
|
||||
return border_[edge];
|
||||
Style::Length border(Edge edge) const {
|
||||
return border_[yoga::to_underlying(edge)];
|
||||
}
|
||||
void setBorder(YGEdge edge, Style::Length value) {
|
||||
border_[edge] = value;
|
||||
void setBorder(Edge edge, Style::Length value) {
|
||||
border_[yoga::to_underlying(edge)] = value;
|
||||
}
|
||||
|
||||
Style::Length gap(Gutter gutter) const {
|
||||
|
Reference in New Issue
Block a user