1 /* 2 * Copyright (c) 2023 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 #include "bridge/declarative_frontend/jsview/models/menu_item_model_impl.h" 17 18 namespace OHOS::Ace::Framework { Create(const RefPtr<NG::UINode> & customNode)19void MenuItemModelImpl::Create(const RefPtr<NG::UINode>& customNode) {} 20 Create(const MenuItemProperties & props)21void MenuItemModelImpl::Create(const MenuItemProperties& props) {} 22 SetSelected(bool isSelected)23void MenuItemModelImpl::SetSelected(bool isSelected) {} 24 SetSelectIcon(bool isShow)25void MenuItemModelImpl::SetSelectIcon(bool isShow) {} 26 SetSelectIconSrc(const std::string & src)27void MenuItemModelImpl::SetSelectIconSrc(const std::string& src) {} 28 SetOnChange(std::function<void (bool)> && onChange)29void MenuItemModelImpl::SetOnChange(std::function<void(bool)>&& onChange) {} 30 SetFontSize(const Dimension & fontSize)31void MenuItemModelImpl::SetFontSize(const Dimension& fontSize) {} 32 SetFontWeight(FontWeight weight)33void MenuItemModelImpl::SetFontWeight(FontWeight weight) {} 34 SetFontStyle(Ace::FontStyle style)35void MenuItemModelImpl::SetFontStyle(Ace::FontStyle style) {} 36 SetFontColor(const std::optional<Color> & color)37void MenuItemModelImpl::SetFontColor(const std::optional<Color>& color) {} 38 SetFontFamily(const std::vector<std::string> & families)39void MenuItemModelImpl::SetFontFamily(const std::vector<std::string> &families) {} 40 SetLabelFontSize(const Dimension & fontSize)41void MenuItemModelImpl::SetLabelFontSize(const Dimension& fontSize) {} 42 SetLabelFontWeight(FontWeight weight)43void MenuItemModelImpl::SetLabelFontWeight(FontWeight weight) {} 44 SetLabelFontStyle(Ace::FontStyle style)45void MenuItemModelImpl::SetLabelFontStyle(Ace::FontStyle style) {} 46 SetLabelFontColor(const std::optional<Color> & color)47void MenuItemModelImpl::SetLabelFontColor(const std::optional<Color>& color) {} 48 SetLabelFontFamily(const std::vector<std::string> & families)49void MenuItemModelImpl::SetLabelFontFamily(const std::vector<std::string> &families) {} 50 SetSelectedChangeEvent(std::function<void (bool)> && selectedChangeEvent)51void MenuItemModelImpl::SetSelectedChangeEvent(std::function<void(bool)>&& selectedChangeEvent) {} 52 } // namespace OHOS::Ace::Framework 53