-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change how we store data bind mode. This will be helpful once we implement converters to identify whether a converter's main direction is "toSource" or "toTarget". It also cleans up how the modal works and saves changes in real time instead of doing it on "Save" <img width="606" alt="data_bind_mode" src="https://github.com/user-attachments/assets/3662df84-e05a-4ea0-aaea-37e0b1294da0"> Diffs= 49cabe3cb update data bind mode to flags (#7612) Co-authored-by: hernan <[email protected]>
- Loading branch information
Showing
10 changed files
with
79 additions
and
98 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 |
---|---|---|
@@ -1 +1 @@ | ||
6c5c79b751c50fa4393fb0e44624635861bc3f3b | ||
49cabe3cbd9c9683bd704e0d72a455d698bfe061 |
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 was deleted.
Oops, something went wrong.
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,29 @@ | ||
#ifndef _RIVE_DATA_BIND_FLAGS_HPP_ | ||
#define _RIVE_DATA_BIND_FLAGS_HPP_ | ||
|
||
#include "rive/enum_bitset.hpp" | ||
|
||
namespace rive | ||
{ | ||
enum class DataBindFlags : unsigned short | ||
{ | ||
/// Whether the main binding direction is to source (0) or to target (1) | ||
Direction = 1 << 0, | ||
|
||
/// Whether the binding direction is twoWay | ||
TwoWay = 1 << 1, | ||
|
||
/// Whether the binding happens only once | ||
Once = 1 << 2, | ||
|
||
/// Flag if set to target | ||
ToTarget = 0, | ||
|
||
/// Flag if set to source | ||
ToSource = 1 << 0, | ||
|
||
}; | ||
|
||
RIVE_MAKE_ENUM_BITSET(DataBindFlags) | ||
} // namespace rive | ||
#endif |
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