Changeset View
Changeset View
Standalone View
Standalone View
source/gui/COList.h
/* Copyright (C) 2016 Wildfire Games. | /* Copyright (C) 2019 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | protected: | ||||
/** | /** | ||||
* Available columns. | * Available columns. | ||||
*/ | */ | ||||
std::vector<COListColumn> m_Columns; | std::vector<COListColumn> m_Columns; | ||||
private: | private: | ||||
// Width of space available for columns | // Width of space available for columns | ||||
float m_TotalAvailableColumnWidth; | float m_TotalAvailableColumnWidth; | ||||
float m_HeadingHeight; | |||||
}; | }; | ||||
vladislavbelov: The sprite is rendered as a square, so it needs to be called similar. Also it doesn't have to… | |||||
Done Inline ActionsI've moved it to the source file, but I don't get what you mean by caching. gentz: I've moved it to the source file, but I don't get what you mean by caching. | |||||
Done Inline ActionsI said sharing. If you want to change a constant in a header, you need to recompile all targets that use the header. If the constant is in the source, you don't need to do that. vladislavbelov: I said sharing. If you want to change a constant in a header, you need to recompile all targets… | |||||
#endif // INCLUDED_COLIST | #endif // INCLUDED_COLIST |
Wildfire Games · Phabricator
The sprite is rendered as a square, so it needs to be called similar. Also it doesn't have to be in the header, because we don't share it.