Implement and archive Phase 5 form designer
This commit is contained in:
@@ -25,7 +25,7 @@ pub enum PropertyValue {
|
||||
}
|
||||
|
||||
impl PropertyValue {
|
||||
fn from_default(default: PropertyDefault, ty: PropertyType) -> Self {
|
||||
pub fn from_default(default: PropertyDefault, ty: PropertyType) -> Self {
|
||||
match default {
|
||||
PropertyDefault::Integer(v) if ty == PropertyType::IntegerArray => {
|
||||
Self::IntegerArray(vec![v; 18])
|
||||
@@ -1659,7 +1659,7 @@ impl FormsModel {
|
||||
false
|
||||
}
|
||||
|
||||
fn rect(&self, key: ObjectKey) -> Option<(usize, usize, usize, usize)> {
|
||||
pub fn rect(&self, key: ObjectKey) -> Option<(usize, usize, usize, usize)> {
|
||||
self.instance(key).ok()?;
|
||||
let mut left = self.integer(key, "LEFT").unwrap_or(0).max(0) as usize + 1;
|
||||
let mut top = self.integer(key, "TOP").unwrap_or(0).max(0) as usize + 1;
|
||||
|
||||
Reference in New Issue
Block a user