peripheral-overview.cpp 564 B

1234567891011121314151617181920
  1. PeripheralOverview::PeripheralOverview(View* parent) : PanelItem(parent, Size{~0, ~0}) {
  2. setCollapsible().setVisible(false);
  3. header.setText("Manifest").setFont(Font().setBold());
  4. manifest.setFont(Font::Mono).setEditable(false).setWordWrap(false);
  5. }
  6. auto PeripheralOverview::show() -> void {
  7. setVisible(true);
  8. }
  9. auto PeripheralOverview::hide() -> void {
  10. setVisible(false);
  11. peripheral = {};
  12. }
  13. auto PeripheralOverview::refresh(higan::Node::Peripheral peripheral) -> void {
  14. this->peripheral = peripheral;
  15. manifest.setText(peripheral->manifest());
  16. }