# Set Window Position and Size

This interface allows you to set the position and size of a window for a specified screen group on a device.

# API Path

{CLTPlatform-ip}:8086/processor/setWindowPosition

  • Replace {CLTPlatform-ip} with the corresponding IP address.
  • The request port is 8086.

# Protocol

HTTP

# Method

POST

# Request Parameter

  • Set the Content-Type of the request body to application/json.
Parameter Name Description Required Type Data Dictionary Limit Example
command Command type Yes string processor/setWindowPosition
data Data Yes object
data >> index Sender index (starting from 0, -1 for broadcast) Yes int
data >> groupIndex Screen group index Yes int
data >> windowIndex Window index Yes int
data >> position Window position and size Yes object
data >> position >> x Horizontal position X of the window Yes int
data >> position >> y Vertical position Y of the window Yes int
data >> position >> width Width of the window Yes int
data >> position >> height Height of the window Yes int

# Request Example

{
    "command": "processor/setWindowPosition",
    "data": {
        "index": 0,
        "groupIndex": 0,
        "windowIndex": 0,
        "position": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
        }
    }
}

# Response

Parameter Name Description Required Type Data Dictionary Limit Example
command Command type Yes string
code Status code Yes int
message Message Yes string
data Data Yes object

# Response Example

{
    "code": 20000,
    "command": "processor/setWindowPosition",
    "data": {},
    "message": "Common_Success"
}

# Detailed Description

* 2023.11.16
    1. Standardized description.