@@ -79,12 +79,12 @@ impl MemoryEditor {
7979 }
8080
8181 /// Get the `Cols` field.
82- pub fn get_cols ( & self ) -> i32 {
82+ pub fn get_cols ( & self ) -> cty :: c_int {
8383 self . raw_editor . Cols
8484 }
8585
8686 /// Set the `Cols` field.
87- pub fn set_cols ( & mut self , columns : i32 ) {
87+ pub fn set_cols ( & mut self , columns : cty :: c_int ) {
8888 self . raw_editor . Cols = columns;
8989 }
9090
@@ -118,6 +118,66 @@ impl MemoryEditor {
118118 self . raw_editor . OptShowAscii = show;
119119 }
120120
121+ /// Get the `OptShowOptions` field.
122+ pub fn get_show_options ( & self ) -> bool {
123+ self . raw_editor . OptShowOptions
124+ }
125+
126+ /// Set the `OptShowOptions` field.
127+ pub fn set_show_options ( & mut self , show : bool ) {
128+ self . raw_editor . OptShowOptions = show;
129+ }
130+
131+ /// Get the `OptShowDataPreview` field.
132+ pub fn get_show_data_preview ( & self ) -> bool {
133+ self . raw_editor . OptShowDataPreview
134+ }
135+
136+ /// Set the `OptShowDataPreview` field.
137+ pub fn set_show_data_preview ( & mut self , show : bool ) {
138+ self . raw_editor . OptShowDataPreview = show;
139+ }
140+
141+ /// Get the `OptGreyOutZeroes` field.
142+ pub fn get_grey_out_zeroes ( & self ) -> bool {
143+ self . raw_editor . OptGreyOutZeroes
144+ }
145+
146+ /// Set the `OptGreyOutZeroes` field.
147+ pub fn set_grey_out_zeroes ( & mut self , greyout : bool ) {
148+ self . raw_editor . OptGreyOutZeroes = greyout;
149+ }
150+
151+ /// Get the `OptUpperCaseHex` field.
152+ pub fn get_upper_case_hex ( & self ) -> bool {
153+ self . raw_editor . OptUpperCaseHex
154+ }
155+
156+ /// Set the `OptUpperCaseHex` field.
157+ pub fn set_upper_case_hex ( & mut self , uppercase : bool ) {
158+ self . raw_editor . OptUpperCaseHex = uppercase;
159+ }
160+
161+ /// Get the `OptMidColsCount` field.
162+ pub fn get_mid_cols_count ( & self ) -> cty:: c_int {
163+ self . raw_editor . OptMidColsCount
164+ }
165+
166+ /// Set the `OptMidColsCount` field.
167+ pub fn set_mid_cols_count ( & mut self , count : cty:: c_int ) {
168+ self . raw_editor . OptMidColsCount = count;
169+ }
170+
171+ /// Get the `OptAddrDigitsCount` field.
172+ pub fn get_addr_digits_count ( & self ) -> cty:: c_int {
173+ self . raw_editor . OptAddrDigitsCount
174+ }
175+
176+ /// Set the `OptAddrDigitsCount` field.
177+ pub fn set_addr_digits_count ( & mut self , count : cty:: c_int ) {
178+ self . raw_editor . OptAddrDigitsCount = count;
179+ }
180+
121181 /// Set the `ReadFn` field.
122182 ///
123183 /// You can only pass in ordinary functions
0 commit comments