summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/weird_bitfields.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-01-22 12:58:12 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-01-23 10:22:08 +0100
commitb83da2729fc83663f979da05201920e039ae3c3f (patch)
tree27e1c8b1b7f0fef74b064740238da843d4cfc1f6 /libbindgen/tests/headers/weird_bitfields.hpp
parent7373a4258f652c23e5fe00ad14740393caa40082 (diff)
Unify under the `bindgen` name.
Diffstat (limited to 'libbindgen/tests/headers/weird_bitfields.hpp')
-rw-r--r--libbindgen/tests/headers/weird_bitfields.hpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/libbindgen/tests/headers/weird_bitfields.hpp b/libbindgen/tests/headers/weird_bitfields.hpp
deleted file mode 100644
index 755681c1..00000000
--- a/libbindgen/tests/headers/weird_bitfields.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// bindgen-flags: --no-unstable-rust
-// You can guess where this is taken from...
-enum nsStyleSVGOpacitySource {
- eStyleSVGOpacitySource_Normal,
- eStyleSVGOpacitySource_ContextFillOpacity,
- eStyleSVGOpacitySource_ContextStrokeOpacity
-};
-
-class Weird {
- unsigned int mStrokeDasharrayLength;
- unsigned int bitTest: 16;
- unsigned int bitTest2: 15;
- unsigned char mClipRule; // [inherited]
- unsigned char mColorInterpolation; // [inherited] see nsStyleConsts.h
- unsigned char mColorInterpolationFilters; // [inherited] see nsStyleConsts.h
- unsigned char mFillRule; // [inherited] see nsStyleConsts.h
- unsigned char mImageRendering; // [inherited] see nsStyleConsts.h
- unsigned char mPaintOrder; // [inherited] see nsStyleConsts.h
- unsigned char mShapeRendering; // [inherited] see nsStyleConsts.h
- unsigned char mStrokeLinecap; // [inherited] see nsStyleConsts.h
- unsigned char mStrokeLinejoin; // [inherited] see nsStyleConsts.h
- unsigned char mTextAnchor; // [inherited] see nsStyleConsts.h
- unsigned char mTextRendering; // [inherited] see nsStyleConsts.h
-
- // In SVG glyphs, whether we inherit fill or stroke opacity from the outer
- // text object.
- // Use 3 bits to avoid signedness problems in MSVC.
- nsStyleSVGOpacitySource mFillOpacitySource : 3;
- nsStyleSVGOpacitySource mStrokeOpacitySource : 3;
-
- // SVG glyph outer object inheritance for other properties
- bool mStrokeDasharrayFromObject : 1;
- bool mStrokeDashoffsetFromObject : 1;
- bool mStrokeWidthFromObject : 1;
-};