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
6QT_BEGIN_NAMESPACE
7
8void LottieRenderer::setTrimmingState(LottieRenderer::TrimmingState trimmingState)
9{
10 m_trimmingState = trimmingState;
11}
12
13LottieRenderer::TrimmingState LottieRenderer::trimmingState() const
14{
15 return m_trimmingState;
16}
17
18void LottieRenderer::saveTrimmingState()
19{
20 m_trimStateStack.push(t: m_trimmingState);
21}
22
23void LottieRenderer::restoreTrimmingState()
24{
25 if (m_trimStateStack.size())
26 m_trimmingState = m_trimStateStack.pop();
27}
28
29QT_END_NAMESPACE
30

source code of qtlottie/src/bodymovin/lottierenderer.cpp