本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQSize函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQSize函数的具体用法?Golang PointerFromQSize怎么用?Golang PointerFromQSize使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQSize函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: Resize
func (ptr *QWindow) Resize(newSize core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QWindow_Resize(ptr.Pointer(), core.PointerFromQSize(newSize))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qwindow.go
示例2: SetIconSize
func (ptr *QToolBar) SetIconSize(iconSize core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QToolBar_SetIconSize(ptr.Pointer(), core.PointerFromQSize(iconSize))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtoolbar.go
示例3: SetResolution
func (ptr *QImageEncoderSettings) SetResolution(resolution core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QImageEncoderSettings_SetResolution(ptr.Pointer(), core.PointerFromQSize(resolution))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qimageencodersettings.go
示例4: SetResolution
func (ptr *QCameraViewfinderSettings) SetResolution(resolution core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QCameraViewfinderSettings_SetResolution(ptr.Pointer(), core.PointerFromQSize(resolution))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qcameraviewfindersettings.go
示例5: NewQPageSize3
func NewQPageSize3(pointSize core.QSize_ITF, name string, matchPolicy QPageSize__SizeMatchPolicy) *QPageSize {
return NewQPageSizeFromPointer(C.QPageSize_NewQPageSize3(core.PointerFromQSize(pointSize), C.CString(name), C.int(matchPolicy)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qpagesize.go
示例6: SetGridSize
func (ptr *QListView) SetGridSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QListView_SetGridSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlistview.go
示例7: SetPixelAspectRatio
func (ptr *QVideoSurfaceFormat) SetPixelAspectRatio(ratio core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QVideoSurfaceFormat_SetPixelAspectRatio(ptr.Pointer(), core.PointerFromQSize(ratio))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qvideosurfaceformat.go
示例8: SetScaledSize
func (ptr *QMovie) SetScaledSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QMovie_SetScaledSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qmovie.go
示例9: NewQResizeEvent
func NewQResizeEvent(size core.QSize_ITF, oldSize core.QSize_ITF) *QResizeEvent {
return NewQResizeEventFromPointer(C.QResizeEvent_NewQResizeEvent(core.PointerFromQSize(size), core.PointerFromQSize(oldSize)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qresizeevent.go
示例10: NewQVideoFrame3
func NewQVideoFrame3(bytes int, size core.QSize_ITF, bytesPerLine int, format QVideoFrame__PixelFormat) *QVideoFrame {
return NewQVideoFrameFromPointer(C.QVideoFrame_NewQVideoFrame3(C.int(bytes), core.PointerFromQSize(size), C.int(bytesPerLine), C.int(format)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qvideoframe.go
示例11: NewQVideoFrame2
func NewQVideoFrame2(buffer QAbstractVideoBuffer_ITF, size core.QSize_ITF, format QVideoFrame__PixelFormat) *QVideoFrame {
return NewQVideoFrameFromPointer(C.QVideoFrame_NewQVideoFrame2(PointerFromQAbstractVideoBuffer(buffer), core.PointerFromQSize(size), C.int(format)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qvideoframe.go
示例12: Resize
func (ptr *QBackingStore) Resize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QBackingStore_Resize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qbackingstore.go
示例13: SetSizeIncrement
func (ptr *QWindow) SetSizeIncrement(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QWindow_SetSizeIncrement(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qwindow.go
示例14: SetMinimumSize
func (ptr *QWindow) SetMinimumSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QWindow_SetMinimumSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qwindow.go
示例15: SetMaximumCacheSize
func (ptr *QGraphicsSvgItem) SetMaximumCacheSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QGraphicsSvgItem_SetMaximumCacheSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qgraphicssvgitem.go
示例16: SetResolution
func (ptr *QMediaResource) SetResolution(resolution core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QMediaResource_SetResolution(ptr.Pointer(), core.PointerFromQSize(resolution))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qmediaresource.go
示例17: SetIconSize
func (ptr *QAbstractButton) SetIconSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QAbstractButton_SetIconSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qabstractbutton.go
示例18: SetScaledSize
func (ptr *QImageReader) SetScaledSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QImageReader_SetScaledSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qimagereader.go
示例19: SetFrameSize
func (ptr *QVideoSurfaceFormat) SetFrameSize(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QVideoSurfaceFormat_SetFrameSize(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qvideosurfaceformat.go
示例20: SetSizeHint
func (ptr *QListWidgetItem) SetSizeHint(size core.QSize_ITF) {
if ptr.Pointer() != nil {
C.QListWidgetItem_SetSizeHint(ptr.Pointer(), core.PointerFromQSize(size))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlistwidgetitem.go
注:本文中的github.com/therecipe/qt/core.PointerFromQSize函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论