Mobile SDK for Windows Apps2.0
Transforming Windows apps into Mobile apps
cmpstruct.h
Go to the documentation of this file.
00001 
00011 #pragma once
00012 
00013 #include <WinDef.h>
00014 #include <cmpenum.h>
00015 
00016 
00017 #pragma pack(push, 1)
00018 
00058 #ifdef CMPCOM
00059 [export, public]
00060 #endif
00061 typedef struct CMP_DISPLAY_RECT
00062 {
00063     INT32     Left;         //    left-most   x coordinate 
00064     INT32     Top;          //    top-most    y coordinate 
00065     INT32     Right;        //    right-most  x coordinate 
00066     INT32     Bottom;       //    bottom-most y coordinate 
00067 } CMP_DISPLAY_RECT;
00068 
00085 #ifdef CMPCOM
00086 [export, public]
00087 #endif
00088 typedef struct CMP_ORIENTATION_DATA
00089 {
00090     INT16 DeviceOrientation;    // orientation position of device             
00091     INT16 AppOrientation;       // orientation position of application        
00092     INT16 OrientationFlags;     // orientation flags (FOLLOW_SENSOR or LOCKED)
00093 } CMP_ORIENTATION_DATA;
00094 
00136 #ifdef CMPCOM
00137 [export, public]
00138 #endif
00139 typedef struct CMP_DISPLAY_SETTINGS
00140 {
00141     INT16                         Length;                       // 0x00   Length of display settings structure                                        
00142     INT16                         MetricsFlags;                 // 0x02   Flags which define which structure fields are supported                     
00143     INT16                         DeviceOrientation;            // 0x04   Orientation of the device  @ref CMP_ORIENTATION_POSITION                    
00144     INT32                         PixelWidth;                   // 0x06   Width in pixels of the mobile device display based on current orientation   
00145     INT32                         PixelHeight;                  // 0x0A   Height in pixels of the mobile device display based on current orientation  
00146     INT16                         ColorDepth;                   // 0x0E   Color bits used for each pixel for the mobile device display                
00147     INT32                         WidthMilliInches;             // 0x10   Width of display in 1/1000th of an inch units  (1000 = 1 inch)              
00148     INT32                         HeightMilliInches;            // 0x14   Height of display in 1/1000th of an inch units (1000 = 1 inch)              
00149     INT32                         PixelsPerInch;                // 0x18   Pixels per inch combined between vertical and horizontal                    
00150     INT32                         HorizontalPixelsPerInch;      // 0x1C   Pixels per inch along the horizontal                                        
00151     INT32                         VerticalPixelsPerInch;        // 0x20   Pixels per inch along the vertical                                          
00152 } CMP_DISPLAY_SETTINGS;
00153 
00177 #ifdef CMPCOM
00178 [export, public]
00179 #endif
00180 typedef struct CMP_KEYBOARD_STATE
00181 {
00182     CMP_KEYBOARD_TYPE       KybdType;               //  Type of keyboard            @ref CMP_KEYBOARD_TYPE      
00183     INT16                   KybdFlags;              //  Keyboard flags              @ref CMP_KEYBOARD_FLAGS     
00184     CMP_KEYBOARD_AUTOCAPS   KybdAutoCaps;           //  Auto-capitalization setting @ref CMP_KEYBOARD_AUTOCAPS  
00185     CMP_KEYBOARD_RETURNKEY  KybdReturnKey;          //  Return key text setting     @ref CMP_KEYBOARD_RETURNKEY 
00186     CMP_DISPLAY_RECT        EditFieldRect;          //  Location of text box        @ref CMP_DISPLAY_RECT       
00187 } CMP_KEYBOARD_STATE;
00188 
00202 #ifdef CMPCOM
00203 [export, public]
00204 #endif
00205 typedef struct CMP_DISPLAY_POINT
00206 {
00207     INT32     Left;                 // x coordinate 
00208     INT32     Top;                  // y coordinate 
00209 } CMP_DISPLAY_POINT;
00210 
00243 #ifdef CMPCOM
00244 [export, public]
00245 #endif
00246 typedef struct CMP_CAPTURE_PICTURE_OPTIONS
00247 {
00248     CMP_CAPTURE_QUALITY     Quality;            // picture quality (low, medium, high, maximum, or default)
00249     CMP_CAPTURE_CAMERA      CameraSelection;    // camera selection (front, back, or default)
00250     CMP_IMAGE_FORMAT        Encoding;           // encoding of data (JPEG, PNG)
00251     INT32                   DesiredWidth;       // desired pixel width (0 = no desired width)
00252     INT32                   DesiredHeight;      // desired pixel height (0 = no desired height)
00253     CMP_THUMBNAIL_TYPE      ThumbnailType;      // type of thumbnail included (which can be NONE)
00254     INT16                   ThumbnailWidth;     // if CMP_THUMBNAIL_TYPE is CUSTOM, this is the desired width
00255     INT16                   ThumbnailHeight;    // if CMP_THUMBNAIL_TYPE is CUSTOM, this is the desired height
00256 } CMP_CAPTURE_PICTURE_OPTIONS;
00257 
00283 #ifdef CMPCOM
00284 [export, public]
00285 #endif
00286 typedef struct CMP_CAPTURE_VIDEO_OPTIONS
00287 {
00288     CMP_CAPTURE_QUALITY     Quality;            // video quality. changes frames per second or image quality (low, medium, high, maximum, or default)
00289     CMP_CAPTURE_CAMERA      CameraSelection;    // camera selection (front, back, or default)
00290     CMP_VIDEO_ENCODING      Encoding;           // encoding of data (MPEG4, H264, or default)
00291     INT32                   DesiredWidth;       // desired pixel width (0 = no desired width)
00292     INT32                   DesiredHeight;      // desired pixel height (0 = no desired height)
00293     INT32                   DurationLimit;      // limit of time in seconds (0 = no limit)
00294 } CMP_CAPTURE_VIDEO_OPTIONS;
00295 
00312 #ifdef CMPCOM
00313 [export, public]
00314 #endif
00315 typedef struct CMP_CAPTURE_AUDIO_OPTIONS
00316 {
00317     CMP_CAPTURE_QUALITY     Quality;            // audio quality is related to sample rate (low, medium, high, maximum, or default)
00318     CMP_AUDIO_ENCODING      Encoding;           // encoding of data 
00319     INT32                   DurationLimit;      // limit of time in seconds (0 = no limit)
00320 } CMP_CAPTURE_AUDIO_OPTIONS;
00321 
00322 
00323 #pragma pack(pop)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Events Defines