1 /* 2 * Copyright (c) 2021-2022 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 FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_LAYOUT_GRID_LAYOUT_INFO_H 17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_LAYOUT_GRID_LAYOUT_INFO_H 18 19 #include "base/memory/ace_type.h" 20 21 namespace OHOS::Ace { 22 23 enum class GridSizeType { 24 UNDEFINED = 0, 25 XS, 26 SM, 27 MD, 28 LG, 29 XL, 30 }; 31 32 enum class GridTemplateType { 33 NORMAL = 0, 34 GRID, 35 }; 36 37 enum class GridColumnType { 38 NONE = 0, 39 BUBBLE_TYPE, 40 BUTTON_TYPE, 41 CARD_TYPE, 42 CONTENT_TYPE, 43 MENU, 44 TOAST, 45 PANEL, 46 TOOL_BAR, 47 DIALOG, 48 CAR_DIALOG, 49 }; 50 51 class GridLayoutInfo : public virtual AceType { 52 DECLARE_ACE_TYPE(GridLayoutInfo, AceType); 53 }; 54 55 } // namespace OHOS::Ace 56 57 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_BASE_LAYOUT_GRID_LAYOUT_INFO_H 58