/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef UPDATE_UI_UPDATER_UI_CONST_H #define UPDATE_UI_UPDATER_UI_CONST_H namespace updater { constexpr int START_X1 = 0; constexpr int START_Y1 = 850; constexpr int WIDTH1 = 480; constexpr int HEIGHT1 = 30; constexpr int START_X2 = 0; constexpr int START_Y2 = 900; constexpr int WIDTH2 = 480; constexpr int HEIGHT2 = 30; constexpr int START_X3 = 90; constexpr int START_Y3 = 720; constexpr int WIDTH3 = 300; constexpr int HEIGHT3 = 15; constexpr int START_X4 = 210; constexpr int START_Y4 = 630; constexpr int HEIGHT4 = 50; constexpr int START_X5 = 0; constexpr int START_Y5 = 900; constexpr int HEIGHT5 = 50; constexpr int START_X_SCALE = 90; constexpr int START_Y_SCALE = 330; constexpr int WIDTH_SCALE1 = 3; constexpr int WIDTH_SCALE2 = 4; constexpr int LOOP_TOP_PICTURES = 10; constexpr int INVALID_EVENT = -1; constexpr int PRESS_EVENT = 0; constexpr int RELEASE_EVENT = 1; constexpr int LABEL0_OFFSET = 0; constexpr int LABEL1_OFFSET = 1; constexpr int LABEL2_OFFSET = 2; constexpr int LABEL_ID_0 = 100; constexpr int LABEL_ID_1 = 101; constexpr int LABEL_ID_2 = 102; constexpr int DIALOG_OK_ID = 200; constexpr int DIALOG_CANCEL_ID = 201; constexpr int DIALOG_CANCEL_X = 340; constexpr int DIALOG_OK_WIDTH = 150; constexpr int SCREEN_WIDTH = 480; constexpr int SCREEN_HEIGHT = 960; constexpr int MEDIAN_NUMBER = 2; } // namespace updater #endif /* UPDATE_UI_HOS_UPDATER_H */