ui: add an optional get_flags callback to GraphicHwOps