MoSync 3.3
Image

Defines

#define MAW_IMAGE_IMAGE   "image"
#define MAW_IMAGE_PATH   "imagePath"
#define MAW_IMAGE_SCALE_MODE   "scaleMode"
 Specifies what type of scaling should be applied to the image.

Detailed Description

The available widget properties for a MAW_IMAGE. See Widget properties for more properties.


Define Documentation

#define MAW_IMAGE_IMAGE   "image"

Sets or gets the image that will be displayed. Setting this property will change MAW_IMAGE_PATH property value to an empty string.

Valid values
MoSync handle to an uncompressed image resource.
Operations
Set and get.
Example
        maWidgetSetProperty(buttonHandle, MAW_IMAGE_IMAGE, toString(R_MY_IMAGE));
#define MAW_IMAGE_PATH   "imagePath"

Sets or gets a path to a image file that will be displayed by the widget. Setting this property will change MAW_IMAGE_IMAGE property value to zero.

Valid values
A valid path to an image file.
Operations
Set and get.
Example
        maWidgetSetProperty(imageHandle, MAW_IMAGE_PATH, "file_path.png");
#define MAW_IMAGE_SCALE_MODE   "scaleMode"

Specifies what type of scaling should be applied to the image.

Valid values
Either 'none', 'scaleXY' or 'scalePreserveAspect'. Default 'none'.
Operations
Set only.
Example
        maWidgetSetProperty(imageHandle, MAW_IMAGE_SCALE_MODE, "scaleXY");
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines