1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef UPDATE_UI_UPDATER_UI_CONST_H 17 #define UPDATE_UI_UPDATER_UI_CONST_H 18 19 namespace updater { 20 constexpr int START_X1 = 0; 21 constexpr int START_Y1 = 850; 22 constexpr int WIDTH1 = 480; 23 constexpr int HEIGHT1 = 30; 24 constexpr int START_X2 = 0; 25 constexpr int START_Y2 = 900; 26 constexpr int WIDTH2 = 480; 27 constexpr int HEIGHT2 = 30; 28 constexpr int START_X3 = 90; 29 constexpr int START_Y3 = 720; 30 constexpr int WIDTH3 = 300; 31 constexpr int HEIGHT3 = 15; 32 constexpr int START_X4 = 210; 33 constexpr int START_Y4 = 630; 34 constexpr int HEIGHT4 = 50; 35 constexpr int START_X5 = 0; 36 constexpr int START_Y5 = 900; 37 constexpr int HEIGHT5 = 50; 38 constexpr int START_X_SCALE = 90; 39 constexpr int START_Y_SCALE = 330; 40 constexpr int WIDTH_SCALE1 = 3; 41 constexpr int WIDTH_SCALE2 = 4; 42 constexpr int LOOP_TOP_PICTURES = 10; 43 constexpr int INVALID_EVENT = -1; 44 constexpr int PRESS_EVENT = 0; 45 constexpr int RELEASE_EVENT = 1; 46 constexpr int LABEL0_OFFSET = 0; 47 constexpr int LABEL1_OFFSET = 1; 48 constexpr int LABEL2_OFFSET = 2; 49 constexpr int LABEL_ID_0 = 100; 50 constexpr int LABEL_ID_1 = 101; 51 constexpr int LABEL_ID_2 = 102; 52 constexpr int DIALOG_OK_ID = 200; 53 constexpr int DIALOG_CANCEL_ID = 201; 54 constexpr int DIALOG_CANCEL_X = 340; 55 constexpr int DIALOG_OK_WIDTH = 150; 56 constexpr int SCREEN_WIDTH = 480; 57 constexpr int SCREEN_HEIGHT = 960; 58 constexpr int MEDIAN_NUMBER = 2; 59 } // namespace updater 60 #endif /* UPDATE_UI_HOS_UPDATER_H */