mirror of
https://github.com/DerKoun/bsnes-hd.git
synced 2025-04-02 10:52:49 -04:00
31 lines
540 B
C++
31 lines
540 B
C++
#if defined(Hiro_Action)
|
|
|
|
namespace hiro {
|
|
|
|
auto pAction::construct() -> void {
|
|
}
|
|
|
|
auto pAction::destruct() -> void {
|
|
}
|
|
|
|
auto pAction::setEnabled(bool enabled) -> void {
|
|
gtk_widget_set_sensitive(widget, enabled);
|
|
}
|
|
|
|
auto pAction::setFont(const Font& font) -> void {
|
|
pFont::setFont(widget, font);
|
|
}
|
|
|
|
auto pAction::setVisible(bool visible) -> void {
|
|
gtk_widget_set_visible(widget, visible);
|
|
}
|
|
|
|
//GTK+ uses _ for mnemonics, __ for _
|
|
auto pAction::_mnemonic(string text) -> string {
|
|
text.replace("_", "__");
|
|
return text;
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|