-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2c32f3
commit 2c0fded
Showing
7 changed files
with
100 additions
and
8 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
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
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,26 @@ | ||
/** | ||
* @file smooth_option.h | ||
* @author Forairaaaaa | ||
* @brief | ||
* @version 0.1 | ||
* @date 2024-05-20 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
#pragma once | ||
#include "../../smooth_widget/smooth_widget.h" | ||
#include "../base/option.h" | ||
|
||
namespace SmoothUIToolKit | ||
{ | ||
namespace Widgets | ||
{ | ||
namespace Selector | ||
{ | ||
class SmoothOption : public SmoothWidgetBase, public OptionBase | ||
{ | ||
}; | ||
} // namespace Selector | ||
} // namespace Widgets | ||
} // namespace SmoothUIToolKit |
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,21 @@ | ||
/** | ||
* @file smooth_selector.cpp | ||
* @author Forairaaaaa | ||
* @brief | ||
* @version 0.1 | ||
* @date 2024-05-20 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
#include "smooth_selector.h" | ||
#include "smooth_option.h" | ||
|
||
using namespace SmoothUIToolKit::Widgets::Selector; | ||
|
||
void SmoothSelector::onGoTo() | ||
{ | ||
// Get selected widget frame | ||
auto target_frame = ((SmoothOption*)getSelectedWidget())->getTransition().getTargetPoint(); | ||
getTransition().moveTo(target_frame); | ||
} |
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,27 @@ | ||
/** | ||
* @file smooth_selector.h | ||
* @author Forairaaaaa | ||
* @brief | ||
* @version 0.1 | ||
* @date 2024-05-20 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
#pragma once | ||
#include "../../smooth_widget/smooth_widget.h" | ||
#include "../base/selelctor.h" | ||
|
||
namespace SmoothUIToolKit | ||
{ | ||
namespace Widgets | ||
{ | ||
namespace Selector | ||
{ | ||
class SmoothSelector : public SmoothWidgetBase, public SelectorBase | ||
{ | ||
void onGoTo() override; | ||
}; | ||
} // namespace Selector | ||
} // namespace Widgets | ||
} // namespace SmoothUIToolKit |