1 | // Copyright (C) 2018 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #include "lottierenderer_p.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | void LottieRenderer::setTrimmingState(LottieRenderer::TrimmingState trimmingState) |
9 | { |
10 | m_trimmingState = trimmingState; |
11 | } |
12 | |
13 | LottieRenderer::TrimmingState LottieRenderer::trimmingState() const |
14 | { |
15 | return m_trimmingState; |
16 | } |
17 | |
18 | void LottieRenderer::saveTrimmingState() |
19 | { |
20 | m_trimStateStack.push(t: m_trimmingState); |
21 | } |
22 | |
23 | void LottieRenderer::restoreTrimmingState() |
24 | { |
25 | if (m_trimStateStack.size()) |
26 | m_trimmingState = m_trimStateStack.pop(); |
27 | } |
28 | |
29 | QT_END_NAMESPACE |
30 |