mirror of https://github.com/bsnes-emu/bsnes.git
45 lines
843 B
C++
45 lines
843 B
C++
#if defined(Hiro_IconView)
|
|
|
|
auto mIconViewItem::allocate() -> pObject* {
|
|
return new pIconViewItem(*this);
|
|
}
|
|
|
|
//
|
|
|
|
auto mIconViewItem::icon() const -> image {
|
|
return state.icon;
|
|
}
|
|
|
|
auto mIconViewItem::remove() -> type& {
|
|
if(auto iconView = parentIconView()) iconView->remove(*this);
|
|
return *this;
|
|
}
|
|
|
|
auto mIconViewItem::selected() const -> bool {
|
|
return state.selected;
|
|
}
|
|
|
|
auto mIconViewItem::setIcon(const image& icon) -> type& {
|
|
state.icon = icon;
|
|
signal(setIcon, icon);
|
|
return *this;
|
|
}
|
|
|
|
auto mIconViewItem::setSelected(bool selected) -> type& {
|
|
state.selected = selected;
|
|
signal(setSelected, selected);
|
|
return *this;
|
|
}
|
|
|
|
auto mIconViewItem::setText(const string& text) -> type& {
|
|
state.text = text;
|
|
signal(setText, text);
|
|
return *this;
|
|
}
|
|
|
|
auto mIconViewItem::text() const -> string {
|
|
return state.text;
|
|
}
|
|
|
|
#endif
|