MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > a) Functions > laLayer_SetInputRect Function
MPLAB® Harmony Graphics Suite
laLayer_SetInputRect Function

Sets the layer's input rect dimensions. This rectangle controls the input area of the layer. Some use cases may require a layer to accept input even if the input is outside of the physical dimensions of the layer. One example is a touch glass that is larger than the size of a display. Widgets may need to be placed in this invisible external area and still be capable of receiving input events.

C
LIB_EXPORT laResult laLayer_SetInputRect(
    laLayer* layer, 
    int32_t x, 
    int32_t y, 
    int32_t width, 
    int32_t height
);
Parameters
Parameters 
Description 
const laLayer* layer 
the layer 
int32_t x 
the x position of the rectangle 
int32_t y 
the y position of the rectangle 
int32_t width 
the width of the rectangle 
int32_t height 
the height of the rectangle 
Returns

laResult - the result of the operation

MPLAB® Harmony Graphics Suite