Skip to content

Commit a088190

Browse files
committed
prepare for field privacy change.
1 parent 6152c2c commit a088190

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+193
-206
lines changed

src/audio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* 2. Altered source versions must be plainly marked as such, and must not be
2020
* misrepresented as being the original software.
21-
*
21+
*
2222
* 3. This notice may not be removed or altered from any source distribution.
2323
*/
2424

src/audio/music.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use ffi = ffi::audio::music;
5050
*/
5151
pub struct Music {
5252
#[doc(hidden)]
53-
priv music : *ffi::sfMusic
53+
music : *ffi::sfMusic
5454
}
5555

5656
impl Music {

src/audio/sound/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ pub mod rc;
4848
*/
4949
pub struct Sound<'s> {
5050
#[doc(hidden)]
51-
priv sound : *ffi::sfSound,
51+
sound : *ffi::sfSound,
5252
#[doc(hidden)]
53-
priv buffer : Option<&'s SoundBuffer>
53+
buffer : Option<&'s SoundBuffer>
5454
}
5555

5656
impl<'s> Sound<'s> {

src/audio/sound/rc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ use ffi = ffi::audio::sound;
4848
*/
4949
pub struct Sound {
5050
#[doc(hidden)]
51-
priv sound : *ffi::sfSound,
51+
sound : *ffi::sfSound,
5252
#[doc(hidden)]
53-
priv buffer : Option<Rc<RefCell<SoundBuffer>>>
53+
buffer : Option<Rc<RefCell<SoundBuffer>>>
5454
}
5555

5656
impl Sound {

src/audio/sound_buffer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ use ffi = ffi::audio::sound_buffer;
4444
*/
4545
pub struct SoundBuffer {
4646
#[doc(hidden)]
47-
priv sound_buffer : *ffi::sfSoundBuffer,
47+
sound_buffer : *ffi::sfSoundBuffer,
4848
#[doc(hidden)]
49-
priv dropable : bool
49+
dropable : bool
5050
}
5151

5252
impl SoundBuffer {

src/audio/sound_buffer_recorder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use ffi = ffi::audio::sound_buffer_recorder;
4545
*/
4646
pub struct SoundBufferRecorder {
4747
#[doc(hidden)]
48-
priv sound_buffer_recorder : *ffi::sfSoundBufferRecorder
48+
sound_buffer_recorder : *ffi::sfSoundBufferRecorder
4949
}
5050

5151
impl SoundBufferRecorder {

src/graphics/circle_shape/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ pub mod rc;
4040
/// Specialized shape representing a circle.
4141
pub struct CircleShape<'s> {
4242
#[doc(hidden)]
43-
priv circle_shape : *ffi::sfCircleShape,
43+
circle_shape : *ffi::sfCircleShape,
4444
#[doc(hidden)]
45-
priv texture : Option<&'s Texture>
45+
texture : Option<&'s Texture>
4646
}
4747

4848
impl<'s> CircleShape<'s> {

src/graphics/circle_shape/rc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ use ffi = ffi::graphics::circle_shape;
4040
/// Specialized shape representing a circle.
4141
pub struct CircleShape {
4242
#[doc(hidden)]
43-
priv circle_shape : *ffi::sfCircleShape,
43+
circle_shape : *ffi::sfCircleShape,
4444
#[doc(hidden)]
45-
priv texture : Option<Rc<RefCell<Texture>>>
45+
texture : Option<Rc<RefCell<Texture>>>
4646
}
4747

4848
impl CircleShape {

src/graphics/color.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ use ffi = ffi::graphics::color;
3838
#[deriving(Clone, Ord, Show)]
3939
pub struct Color {
4040
/// The red composant of the color
41-
red : u8,
41+
pub red : u8,
4242
/// The green composant of the color
43-
green : u8,
43+
pub green : u8,
4444
/// The blue composant of the color
45-
blue : u8,
45+
pub blue : u8,
4646
/// The alpha composant of the color
47-
alpha : u8
47+
pub alpha : u8
4848
}
4949

5050
impl Color {

src/graphics/convex_shape/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ pub mod rc;
5454
*/
5555
pub struct ConvexShape<'s> {
5656
#[doc(hidden)]
57-
priv convex_shape : *ffi::sfConvexShape,
57+
convex_shape : *ffi::sfConvexShape,
5858
#[doc(hidden)]
59-
priv texture : Option<&'s Texture>
59+
texture : Option<&'s Texture>
6060
}
6161

6262
/// An iterator over the points of a ConvexShape

0 commit comments

Comments
 (0)