B4xRect does not conform to B4X standard initialization behaviour.
When a B4xRect is created, it has all values set to 0, and it is usable immediately. It has an initialize method which changes the values, but there is no IsInitialized method and the Initialized keyword returns true immediately. So it is impossible to tell if values have been applied or not.
You can test if all of the values are 0, but this could be a default state and does not provide assurance that valid values have been set.
It would be useful if an IsInitialized or ValuesSet method could be added, updated when initialize is called or values are manually updated, which would confirm that the values have been updated.
When a B4xRect is created, it has all values set to 0, and it is usable immediately. It has an initialize method which changes the values, but there is no IsInitialized method and the Initialized keyword returns true immediately. So it is impossible to tell if values have been applied or not.
You can test if all of the values are 0, but this could be a default state and does not provide assurance that valid values have been set.
It would be useful if an IsInitialized or ValuesSet method could be added, updated when initialize is called or values are manually updated, which would confirm that the values have been updated.
Last edited: