make it public
This commit is contained in:
parent
8f655eda7f
commit
b43eee2b3a
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ pub use hexotk::widgets::UIPatternModel;
|
||||||
|
|
||||||
#[cfg(not(feature="hexotk"))]
|
#[cfg(not(feature="hexotk"))]
|
||||||
impl dyn UIPatternModel {
|
impl dyn UIPatternModel {
|
||||||
fn change_value(&mut self, row: usize, col: usize, offs: i16) {
|
pub fn change_value(&mut self, row: usize, col: usize, offs: i16) {
|
||||||
let val = self.get_cell_value(row, col) as i16;
|
let val = self.get_cell_value(row, col) as i16;
|
||||||
let val = (val + offs).max(0).min(0xfff);
|
let val = (val + offs).max(0).min(0xfff);
|
||||||
self.set_cell_value(row, col, val as u16);
|
self.set_cell_value(row, col, val as u16);
|
||||||
|
|
Loading…
Reference in a new issue