1// Aseprite
2// Copyright (C) 2020 Igara Studio S.A.
3// Copyright (C) 2001-2017 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifndef APP_FILE_GIF_OPTIONS_H_INCLUDED
9#define APP_FILE_GIF_OPTIONS_H_INCLUDED
10#pragma once
11
12#include "app/file/format_options.h"
13#include "render/dithering_algorithm.h"
14
15namespace app {
16
17 // Data for GIF files
18 class GifOptions : public FormatOptions {
19 public:
20 GifOptions(
21 bool interlaced = false,
22 bool loop = true,
23 bool preservePaletteOrder = true)
24 : m_interlaced(interlaced)
25 , m_loop(loop)
26 , m_preservePaletteOrder(preservePaletteOrder) {
27 }
28
29 bool interlaced() const { return m_interlaced; }
30 bool loop() const { return m_loop; }
31 bool preservePaletteOrder() const { return m_preservePaletteOrder; }
32
33 void setInterlaced(bool interlaced) { m_interlaced = interlaced; }
34 void setLoop(bool loop) { m_loop = loop; }
35 void setPreservePaletteOrder(bool preservePaletteOrder) {m_preservePaletteOrder = preservePaletteOrder; }
36
37 private:
38 bool m_interlaced;
39 bool m_loop;
40 bool m_preservePaletteOrder;
41 };
42
43} // namespace app
44
45#endif
46