//-------------------------------------------------------------- void LayerTransform::setWidth(float w) { this->size.x = w; onSetSize(); ofRectangle rect = getRectangle(); ofNotifyEvent(sizeChangeEvent,rect,this); }
View& View::setSize(const glm::vec3 &v) { onSetSize(v); return *this; }
//-------------------------------------------------------------- void LayerTransform::setSize(float w, float h) { this->size.set(w, h, 0); onSetSize(); ofRectangle rect = getRectangle(); ofNotifyEvent(sizeChangeEvent,rect,this); }