CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/UI/DisplayLayoutScreen.h
Views: 1401
// Copyright (c) 2013- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include <deque>2021#include "Common/UI/View.h"22#include "Common/UI/ViewGroup.h"23#include "GPU/Common/PostShader.h"2425#include "MiscScreens.h"2627class DisplayLayoutScreen : public UIDialogScreenWithGameBackground {28public:29DisplayLayoutScreen(const Path &filename);30void CreateViews() override;31void dialogFinished(const Screen *dialog, DialogResult result) override;32void onFinish(DialogResult reason) override;3334void resized() override {35RecreateViews();36}3738bool wantBrightBackground() const override { return true; }3940const char *tag() const override { return "DisplayLayout"; }4142protected:43UI::EventReturn OnPostProcShaderChange(UI::EventParams &e);4445void sendMessage(UIMessage message, const char *value) override;46void DrawBackground(UIContext &dc) override;4748private:49UI::ChoiceStrip *mode_ = nullptr;50UI::Choice *postProcChoice_ = nullptr;51std::string shaderNames_[256];52std::deque<bool> settingsVisible_; // vector<bool> is an insane bitpacked specialization!53};5455class PostProcScreen : public UI::ListPopupScreen {56public:57PostProcScreen(std::string_view title, int id, bool showStereoShaders)58: ListPopupScreen(title), id_(id), showStereoShaders_(showStereoShaders) { }5960void CreateViews() override;6162const char *tag() const override { return "PostProc"; }6364private:65void OnCompleted(DialogResult result) override;66bool ShowButtons() const override { return true; }67std::vector<ShaderInfo> shaders_;68int id_;69bool showStereoShaders_;70std::vector<int> indexTranslation_;71};727374