-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal_Marszalek <1aam2am1@gmail.com>
- Loading branch information
Showing
9 changed files
with
1,152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// TGUI - Texus' Graphical User Interface | ||
// Copyright (C) 2012-2020 Bruno Van de Velde (vdv_b@tgui.eu) | ||
// | ||
// This software is provided 'as-is', without any express or implied warranty. | ||
// In no event will the authors be held liable for any damages arising from the use of this software. | ||
// | ||
// Permission is granted to anyone to use this software for any purpose, | ||
// including commercial applications, and to alter it and redistribute it freely, | ||
// subject to the following restrictions: | ||
// | ||
// 1. The origin of this software must not be misrepresented; | ||
// you must not claim that you wrote the original software. | ||
// If you use this software in a product, an acknowledgment | ||
// in the product documentation would be appreciated but is not required. | ||
// | ||
// 2. Altered source versions must be plainly marked as such, | ||
// and must not be misrepresented as being the original software. | ||
// | ||
// 3. This notice may not be removed or altered from any source distribution. | ||
// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#ifndef TGUI_COLOR_PICKER_RENDERER_HPP | ||
#define TGUI_COLOR_PICKER_RENDERER_HPP | ||
|
||
|
||
#include <TGUI/Renderers/ChildWindowRenderer.hpp> | ||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
namespace tgui | ||
{ | ||
class TGUI_API ColorPickerRenderer : public ChildWindowRenderer | ||
{ | ||
public: | ||
|
||
using ChildWindowRenderer::ChildWindowRenderer; | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/// @brief Sets the renderer data of the buttons which the color picker uses | ||
/// | ||
/// @param rendererData Data about how the buttons should look | ||
/// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
void setButton(std::shared_ptr<RendererData> rendererData); | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/// @brief Returns the renderer data of the buttons which the color picker uses | ||
/// | ||
/// @return Data about how the buttons looks | ||
/// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
std::shared_ptr<RendererData> getButton() const; | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/// @brief Sets the renderer data of the labels which the color picker uses | ||
/// | ||
/// @param rendererData Data about how the labels should look | ||
/// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
void setLabel(std::shared_ptr<RendererData> rendererData); | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/// @brief Returns the renderer data of the labels which the color picker uses | ||
/// | ||
/// @return Data about how the labels looks | ||
/// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
std::shared_ptr<RendererData> getLabel() const; | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/// @brief Sets the renderer data of the sliders which the color picker uses | ||
/// | ||
/// @param rendererData Data about how the sliders should look | ||
/// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
void setSlider(std::shared_ptr<RendererData> rendererData); | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/// @brief Returns the renderer data of the sliders which the color picker uses | ||
/// | ||
/// @return Data about how the sliders looks | ||
/// | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
std::shared_ptr<RendererData> getSlider() const; | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
}; | ||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
} | ||
|
||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#endif // TGUI_COLOR_PICKER_RENDERER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.