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 SetSelectIconSymbol(std::function<void (WeakPtr<NG::FrameNode>)> && symbolApply)27void MenuItemModelImpl::SetSelectIconSymbol(std::function<void(WeakPtr<NG::FrameNode>)>&& symbolApply) {} 28 SetSelectIconSrc(const std::string & src)29void MenuItemModelImpl::SetSelectIconSrc(const std::string& src) {} 30 SetOnChange(std::function<void (bool)> && onChange)31void MenuItemModelImpl::SetOnChange(std::function<void(bool)>&& onChange) {} 32 SetFontSize(const Dimension & fontSize)33void MenuItemModelImpl::SetFontSize(const Dimension& fontSize) {} 34 SetFontWeight(FontWeight weight)35void MenuItemModelImpl::SetFontWeight(FontWeight weight) {} 36 SetFontStyle(Ace::FontStyle style)37void MenuItemModelImpl::SetFontStyle(Ace::FontStyle style) {} 38 SetFontColor(const std::optional<Color> & color)39void MenuItemModelImpl::SetFontColor(const std::optional<Color>& color) {} 40 SetFontFamily(const std::vector<std::string> & families)41void MenuItemModelImpl::SetFontFamily(const std::vector<std::string> &families) {} 42 SetLabelFontSize(const Dimension & fontSize)43void MenuItemModelImpl::SetLabelFontSize(const Dimension& fontSize) {} 44 SetLabelFontWeight(FontWeight weight)45void MenuItemModelImpl::SetLabelFontWeight(FontWeight weight) {} 46 SetLabelFontStyle(Ace::FontStyle style)47void MenuItemModelImpl::SetLabelFontStyle(Ace::FontStyle style) {} 48 SetLabelFontColor(const std::optional<Color> & color)49void MenuItemModelImpl::SetLabelFontColor(const std::optional<Color>& color) {} 50 SetLabelFontFamily(const std::vector<std::string> & families)51void MenuItemModelImpl::SetLabelFontFamily(const std::vector<std::string> &families) {} 52 SetSelectedChangeEvent(std::function<void (bool)> && selectedChangeEvent)53void MenuItemModelImpl::SetSelectedChangeEvent(std::function<void(bool)>&& selectedChangeEvent) {} 54 } // namespace OHOS::Ace::Framework 55