- (void)input;
- unsigned int count = 0;
- unsigned int* array = NULL;
- ilm_getScreenIDs(&count, &array);
- printArray("Screen", array, count);
-}
-
-//=============================================================================
-COMMAND("get layers")
-//=============================================================================
-{
- (void)input;
- int count = 0;
- unsigned int* array = NULL;
- ilm_getLayerIDs(&count, &array);
- printArray("Layer", array, count);
-}
-
-//=============================================================================
-COMMAND("get surfaces")
-//=============================================================================
-{
- (void)input;
- int count = 0;
- unsigned int* array = NULL;
- ilm_getSurfaceIDs(&count, &array);
- printArray("Surface", array, count);
-}
-
-//=============================================================================
-COMMAND("get screen <screenid>")
-//=============================================================================
-{
- printScreenProperties(input->getUint("screenid"));
-}
-
-//=============================================================================
-COMMAND("get layer <layerid>")
-//=============================================================================
-{
- printLayerProperties(input->getUint("layerid"));
-}
-
-//=============================================================================
-COMMAND("get surface <surfaceid>")
-//=============================================================================
-{
- printSurfaceProperties(input->getUint("surfaceid"));
-}
-
-//=============================================================================
-COMMAND("dump screen <screenid> to <file>")
-//=============================================================================
-{
- ilm_takeScreenshot(input->getUint("screenid"),
- input->getString("file").c_str());
-}
-
-//=============================================================================
-COMMAND("dump layer <layerid> to <file>")
-//=============================================================================
-{
- ilm_takeLayerScreenshot(input->getString("file").c_str(),
- input->getUint("layerid"));
-}
-
-//=============================================================================
-COMMAND("dump surface <surfaceid> to <file>")
-//=============================================================================
-{
- ilm_takeSurfaceScreenshot(input->getString("file").c_str(),
- input->getUint("surfaceid"));
-}
-
-//=============================================================================
-COMMAND("set layer <layerid> source region <x> <y> <w> <h>")
-//=============================================================================
-{
- ilm_layerSetSourceRectangle(input->getUint("layerid"),
- input->getUint("x"),
- input->getUint("y"),
- input->getUint("w"),
- input->getUint("h"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set surface <surfaceid> source region <x> <y> <w> <h>")
-//=============================================================================
-{
- ilm_surfaceSetSourceRectangle(input->getUint("surfaceid"),
- input->getUint("x"),
- input->getUint("y"),
- input->getUint("w"),
- input->getUint("h"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set layer <layerid> destination region <x> <y> <w> <h>")
-//=============================================================================
-{
- ilm_layerSetDestinationRectangle(input->getUint("layerid"),
- input->getUint("x"),
- input->getUint("y"),
- input->getUint("w"),
- input->getUint("h"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set surface <surfaceid> destination region <x> <y> <w> <h>")
-//=============================================================================
-{
- ilm_surfaceSetDestinationRectangle(input->getUint("surfaceid"),
- input->getUint("x"),
- input->getUint("y"),
- input->getUint("w"),
- input->getUint("h"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set layer <layerid> opacity <opacity>")
-//=============================================================================
-{
- ilm_layerSetOpacity(input->getUint("layerid"),
- input->getDouble("opacity"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set surface <surfaceid> opacity <opacity>")
-//=============================================================================
-{
- ilm_surfaceSetOpacity(input->getUint("surfaceid"),
- input->getDouble("opacity"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set layer <layerid> visibility <visibility>")
-//=============================================================================
-{
- ilm_layerSetVisibility(input->getUint("layerid"),
- input->getBool("visibility"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set surface <surfaceid> visibility <visibility>")
-//=============================================================================
-{
- ilm_surfaceSetVisibility(input->getUint("surfaceid"),
- input->getBool("visibility"));
- ilm_commitChanges();
-}
-
-//=============================================================================
-COMMAND("set layer <layerid> orientation <orientation>")
-//=============================================================================
-{
- ilm_layerSetOrientation(input->getUint("layerid"),
- (ilmOrientation)input->getInt("orientation"));
- ilm_commitChanges();