QMediaTimeRange::Interval Struct
struct QMediaTimeRange::IntervalQMediaTimeRange::Interval 클래스는 정수 정밀도를 가진 시간 간격을 나타냅니다. 더 보기...
공개 함수
| Interval() | |
| Interval(qint64 start, qint64 end) | |
| bool | contains(qint64 time) const |
| qint64 | end() const |
| bool | isNormal() const |
| QMediaTimeRange::Interval | normalized() const |
| qint64 | start() const |
| QMediaTimeRange::Interval | translated(qint64 offset) const |
관련 비멤버
| bool | operator!=(QMediaTimeRange::Interval lhs, QMediaTimeRange::Interval rhs) |
| bool | operator==(QMediaTimeRange::Interval lhs, QMediaTimeRange::Interval rhs) |
상세 설명
간격은 시작 시간( start())과 종료 시간( end())을 포함하여 지정됩니다. 이 클래스는 불변 클래스이므로, 이 값들은 생성자에서 설정되어야 합니다. 이 클래스가 나타내는 구체적인 시간 단위는 정의되어 있지 않으며, 부호 있는 64비트 정수로 표현할 수 있는 모든 시간에 적합합니다.
isNormal() 메서드는 시간 구간이 정상인지 여부를 판단합니다(정상 시간 구간은 start() <= end()인 경우입니다). normalized() 메서드를 호출하면 비정상 시간 구간에서 정상 시간 구간을 얻을 수 있습니다.
contains() 메서드는 지정된 시간이 해당 시간 구간 내에 포함되는지 여부를 판단합니다.
translated() 메서드는 지정된 오프셋만큼 시간을 앞뒤로 변환한 시간 구간을 반환합니다.
QMediaTimeRange도 참조하십시오 .
멤버 함수 문서
[constexpr noexcept default] Interval::Interval()
Interval 의 인스턴스를 기본 생성합니다.
[explicit constexpr noexcept] Interval::Interval(qint64 start, qint64 end)
지정된 start 과 end 시간을 사용하여 구간을 생성합니다.
[constexpr noexcept] bool Interval::contains(qint64 time) const
시간 간격에 지정된 time 가 포함되어 있으면 true를 반환합니다. 즉, start() <= time <= end()입니다.
[constexpr noexcept] qint64 Interval::end() const
구간의 종료 시간을 반환합니다.
start()도 참조하십시오 .
[constexpr noexcept] bool Interval::isNormal() const
이 시간 간격이 정상인 경우 true를 반환합니다. 정상적인 시간 간격은 start() <= end()을 만족합니다.
normalized()도 참조하십시오 .
[constexpr] QMediaTimeRange::Interval Interval::normalized() const
이 간격의 정규화된 버전을 반환합니다.
해당 구간의 start() 시간 값이 end() 시간 값보다 크면, 반환된 구간의 시작 시간과 종료 시간이 서로 바뀝니다.
[constexpr noexcept] qint64 Interval::start() const
구간의 시작 시간을 반환합니다.
end()도 참조하십시오 .
[constexpr] QMediaTimeRange::Interval Interval::translated(qint64 offset) const
offset 값을 적용하여 변환된 이 시간 구간의 복사본을 반환합니다. 양의 오프셋을 사용하면 구간을 시간상으로 앞으로 이동시킬 수 있고, 음의 오프셋을 사용하면 시간상으로 뒤로 이동시킬 수 있습니다.
관련 비회원
[constexpr noexcept] bool operator!=(QMediaTimeRange::Interval lhs, QMediaTimeRange::Interval rhs)
lhs 가 rhs 와 정확히 일치하지 않을 경우 true를 반환합니다.
[constexpr noexcept] bool operator==(QMediaTimeRange::Interval lhs, QMediaTimeRange::Interval rhs)
lhs 가 rhs 와 정확히 일치할 경우 true를 반환합니다.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.