AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGNumberList.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_SVGNUMBERLIST_HPP
17#define AEONGUI_SVGNUMBERLIST_HPP
18
19#include <vector>
20#include "aeongui/Platform.hpp"
21
22namespace AeonGUI
23{
24 namespace DOM
25 {
31 class DLL SVGNumberList
32 {
33 public:
38
41 unsigned long length() const;
44 unsigned long numberOfItems() const;
45
47 void clear();
52 float initialize ( float newItem );
57 float getItem ( unsigned long index ) const;
63 float insertItemBefore ( float newItem, unsigned long index );
69 float replaceItem ( float newItem, unsigned long index );
74 float removeItem ( unsigned long index );
79 float appendItem ( float newItem );
80
81 private:
83 std::vector<float> mItems;
85 };
86 }
87}
88
89#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
float insertItemBefore(float newItem, unsigned long index)
Insert an item before the given index.
Definition SVGNumberList.cpp:57
float replaceItem(float newItem, unsigned long index)
Replace the item at the given index.
Definition SVGNumberList.cpp:67
float removeItem(unsigned long index)
Remove the item at the given index.
Definition SVGNumberList.cpp:77
float getItem(unsigned long index) const
Get the item at the given index.
Definition SVGNumberList.cpp:48
void clear()
Remove all items.
Definition SVGNumberList.cpp:36
SVGNumberList()
Default constructor.
float initialize(float newItem)
Clear and set a single item.
Definition SVGNumberList.cpp:41
unsigned long numberOfItems() const
Get the number of items (alias).
Definition SVGNumberList.cpp:31
unsigned long length() const
Get the number of items.
Definition SVGNumberList.cpp:26
float appendItem(float newItem)
Append an item to the end.
Definition SVGNumberList.cpp:88