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