* Hide the mouse when it is inside the specified widget. Works with * #GUI_Mouse_Show_InWidget(), which only calls #GUI_Mouse_Show() when * mouse was really hidden. * @param widgetIndex The index of the widget to check on. */
| 4064 | * @param widgetIndex The index of the widget to check on. |
| 4065 | */ |
| 4066 | void GUI_Mouse_Hide_InWidget(uint16 widgetIndex) |
| 4067 | { |
| 4068 | uint16 left, top; |
| 4069 | uint16 width, height; |
| 4070 | |
| 4071 | left = g_widgetProperties[widgetIndex].xBase << 3; |
| 4072 | top = g_widgetProperties[widgetIndex].yBase; |
| 4073 | width = g_widgetProperties[widgetIndex].width << 3; |
| 4074 | height = g_widgetProperties[widgetIndex].height; |
| 4075 | |
| 4076 | GUI_Mouse_Hide_InRegion(left, top, left + width - 1, top + height - 1); |
| 4077 | } |
| 4078 | |
| 4079 | /** |
| 4080 | * Draws a chess-pattern filled rectangle. |
no test coverage detected