@@ -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 {
@@ -645,20 +645,20 @@ impl ReadMessage for ClientMessage {
645645#[ derive( Debug ) ]
646646#[ allow( dead_code) ]
647647pub struct FramebufferUpdateRequest {
648- incremental : bool ,
649- position : Position ,
650- resolution : Resolution ,
648+ pub incremental : bool ,
649+ pub position : Position ,
650+ pub resolution : Resolution ,
651651}
652652
653653#[ derive( Debug ) ]
654654#[ allow( dead_code) ]
655655pub struct KeyEvent {
656- is_pressed : bool ,
657- key : Keysym ,
656+ pub is_pressed : bool ,
657+ pub key : Keysym ,
658658}
659659
660660bitflags ! {
661- struct MouseButtons : u8 {
661+ pub struct MouseButtons : u8 {
662662 const LEFT = 1 << 0 ;
663663 const MIDDLE = 1 << 1 ;
664664 const RIGHT = 1 << 2 ;
@@ -672,8 +672,8 @@ bitflags! {
672672#[ derive( Debug ) ]
673673#[ allow( dead_code) ]
674674pub struct PointerEvent {
675- position : Position ,
676- pressed : MouseButtons ,
675+ pub position : Position ,
676+ pub pressed : MouseButtons ,
677677}
678678
679679impl ReadMessage for PointerEvent {
0 commit comments