mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-11 22:14:31 +00:00
Remove deprecated messages
This commit is contained in:
parent
95a0c6d0f4
commit
3ae4889526
@ -105,8 +105,6 @@ namespace ui {
|
||||
JM_TIMER, // A timer timeout.
|
||||
JM_SETPOS, // Set position.
|
||||
JM_WINMOVE, // Window movement.
|
||||
JM_DEFERREDFREE, // Deferred jwidget_free call.
|
||||
JM_DIRTYCHILDREN, // Dirty children.
|
||||
JM_QUEUEPROCESSING, // Only sent to manager which indicate
|
||||
// the last message in the queue.
|
||||
|
||||
|
@ -139,10 +139,6 @@ bool ListBox::onProcessMessage(Message* msg)
|
||||
this->getTheme()->draw_listbox(this, &msg->draw.rect);
|
||||
return true;
|
||||
|
||||
case JM_DIRTYCHILDREN:
|
||||
dirtyChildren();
|
||||
return true;
|
||||
|
||||
case JM_OPEN:
|
||||
centerScroll();
|
||||
break;
|
||||
@ -319,29 +315,6 @@ void ListBox::layoutListBox(JRect rect)
|
||||
jrect_free(cpos);
|
||||
}
|
||||
|
||||
void ListBox::dirtyChildren()
|
||||
{
|
||||
View* view = View::getView(this);
|
||||
if (!view) {
|
||||
UI_FOREACH_WIDGET(getChildren(), it)
|
||||
static_cast<Item*>(*it)->invalidate();
|
||||
}
|
||||
else {
|
||||
gfx::Rect vp = view->getViewportBounds();
|
||||
|
||||
UI_FOREACH_WIDGET(getChildren(), it) {
|
||||
Item* child = static_cast<Item*>(*it);
|
||||
|
||||
if (child->rc->y2 <= vp.y)
|
||||
continue;
|
||||
else if (child->rc->y1 >= vp.y+vp.h)
|
||||
break;
|
||||
|
||||
child->invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool ListBox::Item::onProcessMessage(Message* msg)
|
||||
{
|
||||
switch (msg->type) {
|
||||
|
@ -49,7 +49,6 @@ namespace ui {
|
||||
|
||||
private:
|
||||
void layoutListBox(JRect rect);
|
||||
void dirtyChildren();
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
|
@ -1035,8 +1035,6 @@ void Manager::pumpQueue()
|
||||
"JM_TIMER",
|
||||
"JM_SETPOS",
|
||||
"JM_WINMOVE",
|
||||
"JM_DEFERREDFREE",
|
||||
"JM_DIRTYCHILDREN",
|
||||
"JM_QUEUEPROCESSING",
|
||||
|
||||
"JM_KEYPRESSED",
|
||||
|
@ -1267,11 +1267,6 @@ bool Widget::onProcessMessage(Message* msg)
|
||||
return true;
|
||||
}
|
||||
|
||||
case JM_DIRTYCHILDREN:
|
||||
UI_FOREACH_WIDGET(getChildren(), it)
|
||||
(*it)->invalidate();
|
||||
return true;
|
||||
|
||||
case JM_KEYPRESSED:
|
||||
case JM_KEYRELEASED:
|
||||
if (msg->key.propagate_to_children) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user