BControl subclasses: Override SetIcon()

... and implement Perform() action for potential later use.
This commit is contained in:
Ingo Weinhold
2013-12-22 02:48:27 +01:00
parent be260374d5
commit be4367428b
16 changed files with 101 additions and 3 deletions
+12
View File
@@ -589,12 +589,24 @@ BCheckBox::Perform(perform_code code, void* _data)
BCheckBox::DoLayout();
return B_OK;
}
case PERFORM_CODE_SET_ICON:
{
perform_data_set_icon* data = (perform_data_set_icon*)_data;
return BCheckBox::SetIcon(data->icon, data->flags);
}
}
return BControl::Perform(code, _data);
}
status_t
BCheckBox::SetIcon(const BBitmap* icon, uint32 flags)
{
return BControl::SetIcon(icon, flags);
}
void
BCheckBox::LayoutInvalidated(bool descendants)
{