mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Issue #1925 - Convert half-corner index macros to an enum.
This commit is contained in:
parent
d73f8c2e84
commit
8dc8875db6
9 changed files with 138 additions and 135 deletions
|
|
@ -430,6 +430,19 @@ static inline mozilla::Corner operator++(mozilla::Corner& aCorner) {
|
|||
return aCorner;
|
||||
}
|
||||
|
||||
// Indices into "half corner" arrays (e.g. nsStyleCorners)
|
||||
enum HalfCorner {
|
||||
// This order is important!
|
||||
eCornerTopLeftX = 0,
|
||||
eCornerTopLeftY = 1,
|
||||
eCornerTopRightX = 2,
|
||||
eCornerTopRightY = 3,
|
||||
eCornerBottomRightX = 4,
|
||||
eCornerBottomRightY = 5,
|
||||
eCornerBottomLeftX = 6,
|
||||
eCornerBottomLeftY = 7
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif /* MOZILLA_GFX_TYPES_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue