Historically the eventMask was only used for the corto_observe function, and the ON prefix made sense to indicate it was an event. The eventMask has since however been used in multiple places to also communicate which event has taken place, which results in code like:
if (e->event & CORTO_ON_DEFINE) {
...
}
which doesn't look natural.
Therefore, the constants in eventMask will remove the ON_ prefix.
The
eventMask
has constants that allow applications to specify which events to observe. For example:Historically the
eventMask
was only used for thecorto_observe
function, and theON
prefix made sense to indicate it was an event. TheeventMask
has since however been used in multiple places to also communicate which event has taken place, which results in code like:which doesn't look natural.
Therefore, the constants in
eventMask
will remove theON_
prefix.