simplify property exports

This commit is contained in:
Vinzenz Schroeter 2025-06-22 14:52:44 +02:00
parent 7a836783e1
commit 92ce27af68
11 changed files with 70 additions and 119 deletions

View file

@ -9,8 +9,8 @@ use std::ptr::NonNull;
wrap_command!(Bitmap);
wrap_fields!(BitmapCommand;
prop bitmap: Bitmap { mut get(); move set(value); };
prop compression: CompressionCode { get(); set(value); };
prop bitmap: Bitmap { get mut; set move; };
prop compression: CompressionCode { get; set; };
);
wrap_origin_accessors!(BitmapCommand);

View file

@ -11,10 +11,10 @@ use std::ptr::NonNull;
wrap_command!(BitVec);
wrap_fields!(BitVecCommand;
prop bitvec: DisplayBitVec { mut get(); move set(value); };
prop offset: Offset { get(); set(value); };
prop operation: BinaryOperation { get(); set(value); };
prop compression: CompressionCode { get(); set(value); };
prop bitvec: DisplayBitVec { get mut; set move; };
prop offset: Offset { get; set; };
prop operation: BinaryOperation { get; set; };
prop compression: CompressionCode { get; set; };
);
wrap_functions!(associate BitVecCommand;

View file

@ -9,7 +9,7 @@ use std::ptr::NonNull;
wrap_command!(BrightnessGrid);
wrap_fields!(BrightnessGridCommand;
prop grid: BrightnessGrid { mut get(); move set(grid); };
prop grid: BrightnessGrid { get mut; set move; };
);
wrap_origin_accessors!(BrightnessGridCommand);

View file

@ -9,7 +9,7 @@ use std::ptr::NonNull;
wrap_command!(CharGrid);
wrap_fields!(CharGridCommand;
prop grid: CharGrid { mut get(); move set(grid); };
prop grid: CharGrid { get mut; set move; };
);
wrap_origin_accessors!(CharGridCommand);

View file

@ -9,7 +9,7 @@ use std::ptr::NonNull;
wrap_command!(Cp437Grid);
wrap_fields!(Cp437GridCommand;
prop grid: Cp437Grid { mut get(); move set(grid); };
prop grid: Cp437Grid { get mut; set move; };
);
wrap_origin_accessors!(Cp437GridCommand);

View file

@ -20,8 +20,5 @@ wrap_functions!(associate GlobalBrightnessCommand;
wrap_command!(GlobalBrightness);
wrap_fields!(GlobalBrightnessCommand;
prop brightness: Brightness {
get();
set(value);
};
prop brightness: Brightness { get; set; };
);