xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QVideoWidget.x
浏览该文件的文档.
1//xlang Source, Name:qt5/widgets/QVideoWidget.x
2//Date: Thu Mar 14:55:11 2021
3package Qt{
4 @SuppressWarnings public class QVideoWidget : QWidget{
5
6 onVideoWidgetListener _l;
7
8 public void setOnVideoWidgetListener(onVideoWidgetListener l){
9 _l = l;
10 }
11 public onVideoWidgetListener getOnVideoWidgetListener(){
12 return _l;
13 }
14
15 public bool create() override{
16 nativehandle = QtXnl.createQObject(QType.qtVideoWidget, this, 0);
17 if (nativehandle == 0) {
18 return false;
19 }
20 return true;
21 }
22
23 public bool create(@NotNilptr QWidget parent) override{
24 nativehandle = QtXnl.createQObject(QType.qtVideoWidget, this, parent.nativehandle);
25 if (nativehandle == 0) {
26 return false;
27 }
28 return true;
29 }
30
31 public QVideoWidget(){
32
33 }
34 public QVideoWidget(long h){
35 super(h);
36 }
37
38 QMediaObject mediaObject(){
39 return (QMediaObject)QtXnl.widget_get_object(nativehandle, Constant.QVIDEOWIDGET_MEDIAOBJECT);
40 }
41
42 public AspectRatioMode aspectRatioMode(){
43 return (AspectRatioMode)QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_ASPECTRATIOMODE);
44 }
45
46 public int brightness(){
47 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_BRIGHTNESS);
48 }
49 public int contrast(){
50 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_CONTRAST);
51 }
52 public int hue(){
53 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_HUE);
54 }
55 public int saturation() {
56 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_SATURATION);
57 }
58
59 public QSize sizeHint(){
60 long lsize = QtXnl.long_get(nativehandle, Constant.QVIDEOWIDGET_SIZEHINT);
61 return new QSize(lsize >> 32 & 0xffffffff, lsize & 0xffffffff);
62 }
63
64
65 public void setFullScreen(bool fullScreen){
66 QtXnl.widget_set_bool_value(nativehandle, Constant.QVIDEOWIDGET_SETFULLSCREEN, fullScreen);
67 }
68 public void setAspectRatioMode(AspectRatioMode mode){
69 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETASPECTRATIOMODE, mode);
70 }
71 public void setBrightness(int brightness){
72 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETBRIGHTNESS, brightness);
73 }
74 public void setContrast(int contrast){
75 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETCONTRAST, contrast);
76 }
77 public void setHue(int hue){
78 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETHUE, hue);
79 }
80 public void setSaturation(int saturation){
81 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETSATURATION, saturation);
82 }
83
84 //SIGNAL
85 public void fullScreenChanged(bool fullScreen){
86 if (_l != nilptr){
87 _l.fullScreenChanged(this, fullScreen);
88 }
89 }
90 public void brightnessChanged(int brightness){
91 if (_l != nilptr){
92 _l.brightnessChanged(this, brightness);
93 }
94 }
95 public void contrastChanged(int contrast){
96 if (_l != nilptr){
97 _l.contrastChanged(this, contrast);
98 }
99 }
100 public void hueChanged(int hue){
101 if (_l != nilptr){
102 _l.hueChanged(this, hue);
103 }
104 }
105 public void saturationChanged(int saturation){
106 if (_l != nilptr){
107 _l.saturationChanged(this, saturation);
108 }
109 }
110 };
111};
void setBrightness(int brightness)
void contrastChanged(int contrast)
void brightnessChanged(int brightness)
void setContrast(int contrast)
bool create() override
void hueChanged(int hue)
onVideoWidgetListener getOnVideoWidgetListener()
void setSaturation(int saturation)
void setFullScreen(bool fullScreen)
bool create(@NotNilptr QWidget parent) override
void saturationChanged(int saturation)
QMediaObject mediaObject()
AspectRatioMode aspectRatioMode()
QVideoWidget(long h)
void setOnVideoWidgetListener(onVideoWidgetListener l)
Definition QVideoWidget.x:8
void setHue(int hue)
void fullScreenChanged(bool fullScreen)
void setAspectRatioMode(AspectRatioMode mode)