Loading...
Searching...
No Matches
TimelineBase.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_TIMELINE_BASE_H
#define OPENSHOT_TIMELINE_BASE_H
#include <cstdint>
#include <list>
namespace openshot {
// Forward decl
class Clip;
struct TimelineInfoStruct
{
bool is_top_clip;
};
class TimelineBase {
public:
int preview_width;
int preview_height;
TimelineBase();
virtual std::list<openshot::Clip*> Clips() = 0;
virtual ~TimelineBase() = default;
};
}
#endif
openshot::TimelineBase
This class represents a timeline (used for building generic timeline implementations)
Definition TimelineBase.h:40
openshot::TimelineBase::preview_height
int preview_height
Optional preview width of timeline image. If your preview window is smaller than the timeline,...
Definition TimelineBase.h:44
openshot::TimelineBase::TimelineBase
TimelineBase()
Constructor for the base timeline.
Definition TimelineBase.cpp:18
openshot::TimelineBase::~TimelineBase
virtual ~TimelineBase()=default
openshot::TimelineBase::Clips
virtual std::list< openshot::Clip * > Clips()=0
openshot::TimelineBase::preview_width
int preview_width
Optional preview width of timeline image. If your preview window is smaller than the timeline,...
Definition TimelineBase.h:43
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
openshot::TimelineInfoStruct
This struct contains info about the current Timeline clip instance.
Definition TimelineBase.h:33
openshot::TimelineInfoStruct::is_top_clip
bool is_top_clip
Is clip on top (if overlapping another clip)
Definition TimelineBase.h:34