add prefix centrally
This commit is contained in:
		
							parent
							
								
									1eb59d986a
								
							
						
					
					
						commit
						500cbbc872
					
				
					 20 changed files with 195 additions and 195 deletions
				
			
		| 
						 | 
				
			
			@ -9,10 +9,10 @@ use servicepoint::{
 | 
			
		|||
};
 | 
			
		||||
use std::ptr::NonNull;
 | 
			
		||||
 | 
			
		||||
wrap_clone!(sp_bitmap::Bitmap);
 | 
			
		||||
wrap_free!(sp_bitmap::Bitmap);
 | 
			
		||||
wrap_clone!(bitmap::Bitmap);
 | 
			
		||||
wrap_free!(bitmap::Bitmap);
 | 
			
		||||
 | 
			
		||||
wrap_functions!(sp_bitmap;
 | 
			
		||||
wrap_functions!(bitmap;
 | 
			
		||||
 | 
			
		||||
    /// Creates a new [Bitmap] with the specified dimensions.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			@ -106,7 +106,7 @@ wrap_functions!(sp_bitmap;
 | 
			
		|||
);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    sp_bitmap::Bitmap;
 | 
			
		||||
    bitmap::Bitmap;
 | 
			
		||||
 | 
			
		||||
    /// Gets the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			@ -148,7 +148,6 @@ wrap_methods!(
 | 
			
		|||
    ///
 | 
			
		||||
    /// The returned memory is valid for the lifetime of the bitmap.
 | 
			
		||||
    mut fn data_ref_mut() -> ByteSlice {
 | 
			
		||||
 | 
			
		||||
        return(slice) { unsafe { ByteSlice::from_slice(slice) } };
 | 
			
		||||
    };
 | 
			
		||||
);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@ use servicepoint::{
 | 
			
		|||
};
 | 
			
		||||
use std::ptr::NonNull;
 | 
			
		||||
 | 
			
		||||
wrap_functions!(sp_bitvec;
 | 
			
		||||
wrap_functions!(bitvec;
 | 
			
		||||
 | 
			
		||||
    /// Creates a new [DisplayBitVec] instance.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			@ -55,11 +55,11 @@ wrap_functions!(sp_bitvec;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(sp_bitvec::DisplayBitVec);
 | 
			
		||||
wrap_free!(sp_bitvec::DisplayBitVec);
 | 
			
		||||
wrap_clone!(bitvec::DisplayBitVec);
 | 
			
		||||
wrap_free!(bitvec::DisplayBitVec);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    sp_bitvec::DisplayBitVec;
 | 
			
		||||
    bitvec::DisplayBitVec;
 | 
			
		||||
 | 
			
		||||
    /// Gets the value of a bit.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ use servicepoint::{
 | 
			
		|||
};
 | 
			
		||||
use std::{mem::transmute, ptr::NonNull};
 | 
			
		||||
 | 
			
		||||
wrap_functions!(sp_brightness_grid;
 | 
			
		||||
wrap_functions!(brightness_grid;
 | 
			
		||||
 | 
			
		||||
    /// Creates a new [BrightnessGrid] with the specified dimensions.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			@ -71,11 +71,11 @@ wrap_functions!(sp_brightness_grid;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(sp_brightness_grid::BrightnessGrid);
 | 
			
		||||
wrap_free!(sp_brightness_grid::BrightnessGrid);
 | 
			
		||||
wrap_clone!(brightness_grid::BrightnessGrid);
 | 
			
		||||
wrap_free!(brightness_grid::BrightnessGrid);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    sp_brightness_grid::BrightnessGrid;
 | 
			
		||||
    brightness_grid::BrightnessGrid;
 | 
			
		||||
 | 
			
		||||
    /// Gets the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@ use crate::{
 | 
			
		|||
use servicepoint::{CharGrid, CharGridCommand, Grid, Origin, Packet};
 | 
			
		||||
use std::ptr::NonNull;
 | 
			
		||||
 | 
			
		||||
wrap_functions!(sp_char_grid;
 | 
			
		||||
wrap_functions!(char_grid;
 | 
			
		||||
 | 
			
		||||
    /// Creates a new [CharGrid] with the specified dimensions.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			@ -58,11 +58,11 @@ wrap_functions!(sp_char_grid;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(sp_char_grid::CharGrid);
 | 
			
		||||
wrap_free!(sp_char_grid::CharGrid);
 | 
			
		||||
wrap_clone!(char_grid::CharGrid);
 | 
			
		||||
wrap_free!(char_grid::CharGrid);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    sp_char_grid::CharGrid;
 | 
			
		||||
    char_grid::CharGrid;
 | 
			
		||||
 | 
			
		||||
    /// Returns the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ use servicepoint::{
 | 
			
		|||
};
 | 
			
		||||
use std::ptr::NonNull;
 | 
			
		||||
 | 
			
		||||
wrap_functions!(sp_cp437_grid;
 | 
			
		||||
wrap_functions!(cp437_grid;
 | 
			
		||||
 | 
			
		||||
    /// Creates a new [Cp437Grid] with the specified dimensions.
 | 
			
		||||
    ///
 | 
			
		||||
| 
						 | 
				
			
			@ -50,11 +50,11 @@ wrap_functions!(sp_cp437_grid;
 | 
			
		|||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_clone!(sp_cp437_grid::Cp437Grid);
 | 
			
		||||
wrap_free!(sp_cp437_grid::Cp437Grid);
 | 
			
		||||
wrap_clone!(cp437_grid::Cp437Grid);
 | 
			
		||||
wrap_free!(cp437_grid::Cp437Grid);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(
 | 
			
		||||
    sp_cp437_grid::Cp437Grid;
 | 
			
		||||
    cp437_grid::Cp437Grid;
 | 
			
		||||
    /// Gets the current value at the specified position.
 | 
			
		||||
    ///
 | 
			
		||||
    /// # Arguments
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,5 +14,6 @@ pub use cp437_grid::*;
 | 
			
		|||
 | 
			
		||||
mod _hidden {
 | 
			
		||||
    /// This is a type only used by cbindgen to have a type for pointers.
 | 
			
		||||
    #[allow(unused)]
 | 
			
		||||
    pub struct DisplayBitVec;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue