@@ -224,9 +224,9 @@ impl FramebufferUpdate {
224224}
225225
226226#[ derive( Debug , Copy , Clone ) ]
227- pub ( crate ) struct Position {
228- x : u16 ,
229- y : u16 ,
227+ pub struct Position {
228+ pub x : u16 ,
229+ pub y : u16 ,
230230}
231231
232232impl ReadMessage for Position {
@@ -242,9 +242,9 @@ impl ReadMessage for Position {
242242}
243243
244244#[ derive( Debug , Copy , Clone ) ]
245- pub ( crate ) struct Resolution {
246- width : u16 ,
247- height : u16 ,
245+ pub struct Resolution {
246+ pub width : u16 ,
247+ pub height : u16 ,
248248}
249249
250250impl ReadMessage for Resolution {
@@ -271,9 +271,9 @@ impl WriteMessage for Resolution {
271271}
272272
273273pub struct Rectangle {
274- position : Position ,
275- dimensions : Resolution ,
276- data : Box < dyn Encoding > ,
274+ pub position : Position ,
275+ pub dimensions : Resolution ,
276+ pub data : Box < dyn Encoding > ,
277277}
278278
279279impl Rectangle {
@@ -650,9 +650,9 @@ impl ReadMessage for ClientMessage {
650650#[ derive( Debug ) ]
651651#[ allow( dead_code) ]
652652pub struct FramebufferUpdateRequest {
653- incremental : bool ,
654- position : Position ,
655- resolution : Resolution ,
653+ pub incremental : bool ,
654+ pub position : Position ,
655+ pub resolution : Resolution ,
656656}
657657
658658#[ derive( Debug , Copy , Clone ) ]
@@ -677,7 +677,7 @@ impl KeyEvent {
677677}
678678
679679bitflags ! {
680- struct MouseButtons : u8 {
680+ pub struct MouseButtons : u8 {
681681 const LEFT = 1 << 0 ;
682682 const MIDDLE = 1 << 1 ;
683683 const RIGHT = 1 << 2 ;
@@ -691,8 +691,8 @@ bitflags! {
691691#[ derive( Debug ) ]
692692#[ allow( dead_code) ]
693693pub struct PointerEvent {
694- position : Position ,
695- pressed : MouseButtons ,
694+ pub position : Position ,
695+ pub pressed : MouseButtons ,
696696}
697697
698698impl ReadMessage for PointerEvent {
0 commit comments