NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
UIStyler_Toggle.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// UI Styler JA接口C++头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// UIStyler_Toggle.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成,请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/UIStyler_StylerItem.hxx>
22#include <NXOpen/UIStyler_StylerItem.hxx>
23#include <NXOpen/libnxopenuicpp_exports.hxx>
24#ifdef _MSC_VER
25#pragma warning(push)
26#pragma warning(disable:4996)
27#endif
28#ifdef __GNUC__
29#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30#endif
31namespace NXOpen
32{
33 namespace UIStyler
34 {
35 class Toggle;
36 }
37 namespace UIStyler
38 {
39 class StylerEvent;
40 }
41 namespace UIStyler
42 {
43 class StylerItem;
44 }
45 namespace UIStyler
46 {
47 class ToggleImpl;
51 class NXOPENUICPPEXPORT Toggle : public NXOpen::UIStyler::StylerItem
52 {
53 public:
58 private: ToggleImpl * m_toggle_impl;
60 public: explicit Toggle(void *ptr);
62
66 (
67 const NXOpen::UIStyler::Toggle::ValueChanged& valuechangedevent ,
68 bool isDialogLaunchingEvent
69 );
74 public: void SetLabel
75 (
76 const NXString & strLabel
77 );
83 (
84 const char * strLabel
85 );
89 public: void SetItemValue
90 (
91 bool itemVal
92 );
96 public: bool ItemValue
97 (
98 );
102 public: void SetSensitivity
103 (
104 int subitemIndex ,
105 bool type
106 );
110 public: bool GetSensitivity
111 (
112 );
116 public: void SetVisibility
117 (
118 bool type
119 );
123 public: bool Visibility
124 (
125 );
129 public: void SetFocus
130 (
131 );
137 public: void SetDefaultAction
138 (
139 );
140 }; //lint !e1712 类未定义默认构造函数
141 }
142}
143#ifdef _MSC_VER
144#pragma warning(pop)
145#endif
146#ifdef __GNUC__
147#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
148#pragma GCC diagnostic warning "-Wdeprecated-declarations"
149#endif
150#endif
151#undef EXPORTLIBRARY