I cannot get the call right to a function with an enumeration from a library. Not even if I duplicate that enum in my program.
In the library:
enum class Layout {
Horizontal,
Vertical
};
The function prototype from the library code:
uint16_t cdrawString(const char *str,
int32_t x = 0,
int32_t y = 0,
uint16_t fg = 0xFFFF,
uint16_t bg = 0x0000,
Layout layout = Layout::Horizontal);
The call I want to compile:
ofr.cdrawString(myBuildString, 0, 0, TFT_YELLOW, DarkerRed, Horizontal);
It says Horizontal is not defined. Even if I duplicate the enum in my code with a different name (else it says it is already defined so it knows it is there), I cannot get Horizontal defined.
Please help he with this. There is no example, anywhere, of this usage that I can find and I have searched for a while. Thanks for any pointers to make this work.
In the library:
enum class Layout {
Horizontal,
Vertical
};
The function prototype from the library code:
uint16_t cdrawString(const char *str,
int32_t x = 0,
int32_t y = 0,
uint16_t fg = 0xFFFF,
uint16_t bg = 0x0000,
Layout layout = Layout::Horizontal);
The call I want to compile:
ofr.cdrawString(myBuildString, 0, 0, TFT_YELLOW, DarkerRed, Horizontal);
It says Horizontal is not defined. Even if I duplicate the enum in my code with a different name (else it says it is already defined so it knows it is there), I cannot get Horizontal defined.
Please help he with this. There is no example, anywhere, of this usage that I can find and I have searched for a while. Thanks for any pointers to make this work.