| Electronic Components Datasheet Search |
|
AN3128 Datasheet(PDF) 44 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 Datasheet(HTML) 44 Page - STMicroelectronics |
|
44 / 105 page ![]() Multi-input embedded GUI library firmware AN3128 44/105 Doc ID 16918 Rev 5 4.1.22 SetIconImage API global function Table 27 describes the SetIconImage function: Example: ... /* Declares and initiates a Page Object */ GL_Page_TypeDef page1; Create_PageObj( &page1 ); /* Declares and initiates a Icon Object and add it with specified coordinates to a Page Object */ GL_PageControls_TypeDef* MyIcon = NewIcon("MyIcon",(GL_uint8_t*)myImage1,90,90, IconFunc); AddPageControlObj((uint16_t)((LCD_Width/2)+45),(uint8_t)((LCD_Height/2)+45),MyIcon, &page1); ... void IconFunc(void) { if (page1.Page_Active == GL_TRUE) { GL_uint8_t* ptrBitmap = GL_NULL; ptrBitmap = (GL_uint8_t*)myImage2; SetIconImage( &page1, "MyIcon", ptrBitmap, 90, 90); RefreshPage( &page1 ); } } Table 27. SetIconImage API function Name Description Function name SetIconImage Function prototype GL_ErrStatus SetIconImage (GL_Page_TypeDef* pPage, char* objName, GL_uint8_t* pImage) Behavior description Return the image pointer of the icon object Input parameter {x} *pPage: pointer to page structure objName: name of the object pImage: pointer to the image Width: image width Height: image height Output parameter {x} None 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 |