1 // bindgen-flags: --rustified-enum ".*" 2 3 // You can guess where this is taken from... 4 enum nsStyleSVGOpacitySource { 5 eStyleSVGOpacitySource_Normal, 6 eStyleSVGOpacitySource_ContextFillOpacity, 7 eStyleSVGOpacitySource_ContextStrokeOpacity 8 }; 9 10 class Weird { 11 unsigned int mStrokeDasharrayLength; 12 unsigned int bitTest: 16; 13 unsigned int bitTest2: 15; 14 unsigned char mClipRule; // [inherited] 15 unsigned char mColorInterpolation; // [inherited] see nsStyleConsts.h 16 unsigned char mColorInterpolationFilters; // [inherited] see nsStyleConsts.h 17 unsigned char mFillRule; // [inherited] see nsStyleConsts.h 18 unsigned char mImageRendering; // [inherited] see nsStyleConsts.h 19 unsigned char mPaintOrder; // [inherited] see nsStyleConsts.h 20 unsigned char mShapeRendering; // [inherited] see nsStyleConsts.h 21 unsigned char mStrokeLinecap; // [inherited] see nsStyleConsts.h 22 unsigned char mStrokeLinejoin; // [inherited] see nsStyleConsts.h 23 unsigned char mTextAnchor; // [inherited] see nsStyleConsts.h 24 unsigned char mTextRendering; // [inherited] see nsStyleConsts.h 25 26 // In SVG glyphs, whether we inherit fill or stroke opacity from the outer 27 // text object. 28 // Use 3 bits to avoid signedness problems in MSVC. 29 nsStyleSVGOpacitySource mFillOpacitySource : 3; 30 nsStyleSVGOpacitySource mStrokeOpacitySource : 3; 31 32 // SVG glyph outer object inheritance for other properties 33 bool mStrokeDasharrayFromObject : 1; 34 bool mStrokeDashoffsetFromObject : 1; 35 bool mStrokeWidthFromObject : 1; 36 }; 37