3 * Copyright (c) 2020 Project CHIP Authors
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
30 #if CONFIG_HAVE_DISPLAY
32 #include "ScreenManager.h"
48 virtual ~Screen() = default;
50 virtual std::string GetTitle() { return "Untitled"; }
52 virtual std::string GetButtonText(int id);
54 virtual void Display() {}
56 virtual void Enter(bool pushed) {}
58 virtual void Exit(bool popped) {}
60 virtual bool IsFocusable() { return false; }
62 virtual void Focus(FocusType focus) {}
64 virtual void Action() {}
67 #endif // CONFIG_HAVE_DISPLAY