2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus <superstippi@gmx.de>
8 #ifndef FLAT_ICON_IMPORTER_H
9 #define FLAT_ICON_IMPORTER_H
13 # include "Importer.h"
15 # include <SupportDefs.h>
18 #include "IconBuild.h"
29 class LittleEndianBuffer
;
36 class FlatIconImporter
: public Importer
{
38 class FlatIconImporter
{
42 virtual ~FlatIconImporter();
45 status_t
Import(Icon
* icon
,
48 status_t
Import(Icon
* icon
,
49 uint8
* buffer
, size_t size
);
52 status_t
_ParseSections(LittleEndianBuffer
& buffer
,
55 status_t
_ParseStyles(LittleEndianBuffer
& buffer
,
56 StyleContainer
* styles
);
57 status_t
_ParsePaths(LittleEndianBuffer
& buffer
,
58 PathContainer
* paths
);
59 Shape
* _ReadPathSourceShape(
60 LittleEndianBuffer
& buffer
,
61 StyleContainer
* styles
,
62 PathContainer
* paths
);
63 status_t
_ParseShapes(LittleEndianBuffer
& buffer
,
64 StyleContainer
* styles
,
66 ShapeContainer
* shapes
);
73 #endif // FLAT_ICON_IMPORTER_H