This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GrLib => Canvas and CanvasStruct Declaration



Hello Forum,


looks like my wisdom isn´t enough to understand the definition of GrLibs´ Canvas and CanvasStruct. I have a TM4C1293XL Launchpad, the Kentec Display Boosterpack and starting with corresponding example project delivered in the TivaWare included board examples.
I´m refering to the Canvas as the simplest example since the way of definition is always the same for the other widgets.

I have found the GrLibs User Guide "spmu018p". I have a question:

What is the reason for defining a "Canvas" and a "CanvasStruct"? From what i see from the example project and the definition in the h-File, struct definitions are supposed to be used in an array. Is this the only reason, or are there more?

best regards!