Set(image ... ) command
This command used to show images on screen of cell phone.
Format
Set(image,window,_image_file_name) or
ExecAndSet(image,window, ... command to determine image file name ...) or
Set(image,icon,_icon_name_,_image_file_name_) or
ExecAndSet(image,icon,_icon_name_, ... command to determine image file name ...) or
Set(image,show|close|cursor|nocursor|dynamic_cursor|get_cursor|set_cursor) or
Set(image,remove_all)
Usage
Set(image,window ...)
Command Set(image,window,_image_file_name) used to show image on screen of cell phone. Of cource in most cases this should be ExecAndSet(...) variant of command. See cfg-example/Server-mode/winManager.cfg for details.
1=ExecAndSet(image,window,echo "$IMAGE_DIR/image.png")
Set(image,show)
Command Set(image,show) used to show previously uploaded image.
2=Set(image,show)
Set(image,close)
Command Set(image,close) used to close screen with image and return back to main screen.
3=Set(image,close)
Set(image,cursor|nocursor)
Command Set(image,cursor|nocursor) used to specify should or should not the cursor cross will be drawn over the image. If this option is set to "cursor" then it will be possible to move cursor cross with the joystick keys and if user pushes the joystick key, then two replies PressedX(x_coord,) and PressedY(y_coord,) will be sent. PressedX() event will be first one.
4=Set(image,nocursor)
Set(image,dynamic_cursor)
Command Set(image,dynamic_cursor) Is similar to Set(image,cursor), but each time user press joystrick key two replies PosX(x_coord,) and PosY(y_coord,) will be sent. PosX() event will be first one.
5=Set(image,dynamic_cursor)
Set(image,set_cursor ...)
Command Set(image,set_cursor, x_coord, y_coord) used to set cursor position on screen of cell phone.
6=Set(image,set_cursor,0,0)
To retrieve current cursor position use Get(cursor) command.
Set(image,icon ...)
Command Set(image,icon,_icon_name_,_image_file_name) used to upload 16x16, 32x32 or 64x64 icons, which could be used in Set(icons,...) command. Of cource in most cases this should be ExecAndSet(...) variant of command. See cfg-example/Server-mode/iconUpload.cfg for details.
7=ExecAndSet(image,icon,echo "$IMAGE_NAME,$IMAGE_DIR/image.png")
Only 16x16, 32x32 or 64x64 PNG icons could be uploaded. There is no way to show the list of uploaded icons. All uploaded icons could be removed by Set(upload,remove_all) command.
Set(image,remove_all)
Command Set(image,remove_all) used to remove all previously uploaded icons.
0=Set(image,remove_all)
Retrieving size of the screen
To retrive size of the screen of the cellphone it is possible to use Get(screen_size) command.