| Electronic Components Datasheet Search |
|
AN3128 Datasheet(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 Datasheet(HTML) 39 Page - STMicroelectronics |
|
39 / 105 page ![]() AN3128 Multi-input embedded GUI library firmware Doc ID 16918 Rev 5 39/105 Example: /* Declares and initiates a Page Object */ GL_Page_TypeDef page1; Create_PageObj( &page1 ); /* Declares and initiates a Label Object and add it with specified coordinates to a Page Object */ GL_PageControls_TypeDef* pageLabel = NewLabel("pageLabel", "Graphic Library", GL_HORIZONTAL, GL_FONT_BIG, GL_Blue); AddPageControlObj((uint16_t)((LCD_Width/11)*9), (uint8_t)(LCD_Height/11), pageLabel, &page1); /* Modify the label in a "Label Object" */ Set_Label(&page1, "pageLabel", "Graphic Library New") Figure 14, 15, 16, show, in detail, the Label Object properties and methods which the final application can use to interact with. 4.1.17 Get_Label API global function Table 22 describes the Get_Label function: Input parameter {x} pPage: pointer to page structure objName: name of the object Label: text on a Label Object Output parameter {x} None Return value GL_OK if successful, GL_ERROR otherwise Required preconditions None Called functions No API/HAL layer functions Table 21. Set_Label API function (continued) Name Description Table 22. Get_Label API function Name Description Function name Get_Label Function prototype GL_ErrStatus Get_Label (GL_Page_TypeDef* pPage, char* objName, char* Label) Behavior description Return the Label of a Label Object Input parameter {x} *pPage: pointer to page structure objName: name of the object Output parameter {x} Label: this is the variable where the Label of a Label Object is copied into Return value GL_OK if successful, GL_ERROR otherwise Required preconditions None Called functions No API/HAL layer functions |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |