AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGLengthList.hpp
1/*
2Copyright (C) 2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGUI_SVGLENGTHLIST_HPP
17#define AEONGUI_SVGLENGTHLIST_HPP
18
19#include <vector>
20#include "SVGLength.hpp"
21#include "aeongui/Platform.hpp"
22
23namespace AeonGUI
24{
25 namespace DOM
26 {
32 class DLL SVGLengthList
33 {
34 public:
39
42 unsigned long length() const;
45 unsigned long numberOfItems() const;
46
48 void clear();
53 SVGLength initialize ( const SVGLength& newItem );
58 SVGLength getItem ( unsigned long index ) const;
64 SVGLength insertItemBefore ( const SVGLength& newItem, unsigned long index );
70 SVGLength replaceItem ( const SVGLength& newItem, unsigned long index );
75 SVGLength removeItem ( unsigned long index );
80 SVGLength appendItem ( const SVGLength& newItem );
81
82 private:
84 std::vector<SVGLength> mItems;
86 };
87 }
88}
89
90#endif
Platform-specific DLL import/export macros and compiler helpers.
#define PRIVATE_TEMPLATE_MEMBERS_END
Restore warnings after PRIVATE_TEMPLATE_MEMBERS_START.
Definition Platform.hpp:49
#define PRIVATE_TEMPLATE_MEMBERS_START
Suppress MSVC C4251 warnings for private template data members.
Definition Platform.hpp:48
Represents an SVG length value with a unit.
Definition SVGLength.hpp:48
SVGLengthList()
Default constructor.
SVGLength appendItem(const SVGLength &newItem)
Append an item to the end.
Definition SVGLengthList.cpp:88
unsigned long numberOfItems() const
Get the number of items (alias).
Definition SVGLengthList.cpp:31
void clear()
Remove all items.
Definition SVGLengthList.cpp:36
SVGLength initialize(const SVGLength &newItem)
Clear and set a single item.
Definition SVGLengthList.cpp:41
SVGLength insertItemBefore(const SVGLength &newItem, unsigned long index)
Insert an item before the given index.
Definition SVGLengthList.cpp:57
SVGLength removeItem(unsigned long index)
Remove the item at the given index.
Definition SVGLengthList.cpp:77
SVGLength replaceItem(const SVGLength &newItem, unsigned long index)
Replace the item at the given index.
Definition SVGLengthList.cpp:67
unsigned long length() const
Get the number of items.
Definition SVGLengthList.cpp:26
SVGLength getItem(unsigned long index) const
Get the item at the given index.
Definition SVGLengthList.cpp:48