xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QChartView.x
浏览该文件的文档.
1//xlang Source, Name:qt5/widgets/QChartView.x
2//Date: Thu Sep 18:51:31 2022
3package Qt{
4 @SuppressWarnings public class QChartView : QAbstractScrollArea{
5 public enum RubberBands {
6 NoRubberBand = 0x0,
7 VerticalRubberBand = 0x1,
8 HorizontalRubberBand = 0x2,
9 RectangleRubberBand = 0x3
10 };
11
12 public QChartView(){
13
14 }
15
16 public QChartView(long handle){
17 super(handle);
18 }
19
20 public bool create()override {
21 nativehandle = QtXnl.createQObject(QType.qtChartView, this, 0);
22 if (nativehandle == 0){
23 return false;
24 }
25 return true;
26 }
27
28 public bool create(@NotNilptr QWidget parent)override {
29 nativehandle = QtXnl.createQObject(QType.qtChartView, this, parent.nativehandle);
30 if (nativehandle == 0){
31 return false;
32 }
33 return true;
34 }
35
36 public void setRubberBand(RubberBands rubberBands){
37 QtXnl.widget_set_vint_value(nativehandle, Constant.QCHARTVIEW_SETRUBBERBAND, rubberBands);
38 }
39
40 public RubberBands rubberBand() {
41 return (RubberBands)QtXnl.widget_get_int_value(nativehandle, Constant.QCHARTVIEW_RUBBERBAND);
42 }
43
44 public QChart chart() {
45 return (QChart)QtXnl.widget_get_object(nativehandle, Constant.QCHARTVIEW_CHART);
46 }
47
48 public void setChart(QChart chart){
49 QtXnl.widget_set_native_value(nativehandle, Constant.QCHARTVIEW_SETCHART, chart.nativehandle);
50 }
51 };
52};
bool create() override
Definition QChartView.x:20
RubberBands rubberBand()
Definition QChartView.x:40
QChartView(long handle)
Definition QChartView.x:16
QChart chart()
Definition QChartView.x:44
bool create(@NotNilptr QWidget parent) override
Definition QChartView.x:28
void setRubberBand(RubberBands rubberBands)
Definition QChartView.x:36
void setChart(QChart chart)
Definition QChartView.x:48