mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-25 16:41:04 +00:00
Add another constructor to LinearLayoutParams
This commit is contained in:
parent
b5c7f637df
commit
d7cfc12cda
@ -122,6 +122,8 @@ public:
|
||||
: LayoutParams(w, h, LP_LINEAR), weight(wgt), gravity(grav), margins(mgn), hasMargins_(true) {}
|
||||
LinearLayoutParams(Size w, Size h, const Margins &mgn)
|
||||
: LayoutParams(w, h, LP_LINEAR), weight(0.0f), gravity(G_TOPLEFT), margins(mgn), hasMargins_(true) {}
|
||||
LinearLayoutParams(Size w, Size h, float wgt, const Margins &mgn)
|
||||
: LayoutParams(w, h, LP_LINEAR), weight(wgt), gravity(G_TOPLEFT), margins(mgn), hasMargins_(true) {}
|
||||
LinearLayoutParams(const Margins &mgn)
|
||||
: LayoutParams(WRAP_CONTENT, WRAP_CONTENT, LP_LINEAR), weight(0.0f), gravity(G_TOPLEFT), margins(mgn), hasMargins_(true) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user