File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,10 @@ use std::slice;
61
61
/// [`Sound`]: crate::audio::Sound
62
62
#[ derive( Debug ) ]
63
63
#[ allow( missing_copy_implementations) ]
64
- pub enum SoundBuffer { }
64
+ #[ repr( C ) ]
65
+ pub struct SoundBuffer {
66
+ _opaque : [ u8 ; 0 ] ,
67
+ }
65
68
66
69
impl SoundBuffer {
67
70
/// Save a sound buffer to an audio file
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ use std::io::{Read, Seek};
51
51
/// [`Text`]: crate::graphics::Text
52
52
#[ derive( Debug ) ]
53
53
#[ allow( missing_copy_implementations) ]
54
- pub enum Font { }
54
+ #[ repr( C ) ]
55
+ pub struct Font {
56
+ _opaque : [ u8 ; 0 ] ,
57
+ }
55
58
56
59
impl Font {
57
60
/// Get the kerning value corresponding to a given pair of characters in a font
Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ use std::ptr;
49
49
/// [`Color`]: crate::graphics::Color
50
50
#[ derive( Debug ) ]
51
51
#[ allow( missing_copy_implementations) ]
52
- pub enum Texture { }
52
+ #[ repr( C ) ]
53
+ pub struct Texture {
54
+ _opaque : [ u8 ; 0 ] ,
55
+ }
53
56
54
57
impl Texture {
55
58
/// Return the size of the texture
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ use std::borrow::ToOwned;
10
10
/// the way that your drawable objects are drawn.
11
11
#[ derive( Debug ) ]
12
12
#[ allow( missing_copy_implementations) ]
13
- pub enum View { }
13
+ #[ repr( C ) ]
14
+ pub struct View {
15
+ _opaque : [ u8 ; 0 ] ,
16
+ }
14
17
15
18
impl View {
16
19
/// Get the current orientation of a view
You can’t perform that action at this time.
0 commit comments