Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QVideoTextureHelper::SubtitleLayout Struct Reference

#include <qvideotexturehelper_p.h>

+ Collaboration diagram for QVideoTextureHelper::SubtitleLayout:

Public Member Functions

bool update (const QSize &frameSize, QString text)
 
void draw (QPainter *painter, const QPointF &translate) const
 
QImage toImage () const
 

Public Attributes

QSize videoSize
 
QRectF bounds
 
QTextLayout layout
 

Detailed Description

Definition at line 154 of file qvideotexturehelper_p.h.

Member Function Documentation

◆ draw()

void QVideoTextureHelper::SubtitleLayout::draw ( QPainter * painter,
const QPointF & translate ) const

Definition at line 911 of file qvideotexturehelper.cpp.

◆ toImage()

QImage QVideoTextureHelper::SubtitleLayout::toImage ( ) const

Definition at line 931 of file qvideotexturehelper.cpp.

◆ update()

bool QVideoTextureHelper::SubtitleLayout::update ( const QSize & frameSize,
QString text )

Definition at line 857 of file qvideotexturehelper.cpp.

Member Data Documentation

◆ bounds

QRectF QVideoTextureHelper::SubtitleLayout::bounds

Definition at line 157 of file qvideotexturehelper_p.h.

◆ layout

QTextLayout QVideoTextureHelper::SubtitleLayout::layout

Definition at line 158 of file qvideotexturehelper_p.h.

◆ videoSize

QSize QVideoTextureHelper::SubtitleLayout::videoSize

Definition at line 156 of file qvideotexturehelper_p.h.


The documentation for this struct was generated from the following files: