Ejemplo n.º 1
0
/**
 * Method that gets the screen size into the instance variables
 * mScreenWidth and mScreenHeight.
 */
void ScreenImageSwiper::getScreenSize()
{
	if (WidgetManager::isAndroid())
	{
		/// Get screen dimensions.
		MAExtent size = maGetScrSize();

		/// Extract the screen width
		mScreenWidth = EXTENT_X(size);

		/// Extract the screen height
		mScreenHeight = EXTENT_Y(size);
	}
	else
	{
		/// Extract the screen width
		mScreenWidth = getPropertyInt(MAW_WIDGET_WIDTH);

		/// Extract the screen height
		mScreenHeight = getPropertyInt(MAW_WIDGET_HEIGHT);
	}
}
Ejemplo n.º 2
0
 /**
  * Get the maximum number of lines used for rendering text.
  * @return The maximum number of lines.
  */
 int Label::getMaxNumberOfLines()
 {
     return getPropertyInt(MAW_LABEL_MAX_NUMBER_OF_LINES);
 }
Ejemplo n.º 3
0
 /**
  * Get the number displayed on the application's icon badge.
  * Platform: iOS.
  * @return the number displayed on the application's icon badge.
  */
 int LocalNotification::getBadgeNumber() const
 {
     return getPropertyInt(MA_NOTIFICATION_LOCAL_BADGE_NUMBER);
 }
Ejemplo n.º 4
0
int Range::getHighlightColorIndex()
{
    return getPropertyInt(disp_, L"HighlightColorIndex");
}
Ejemplo n.º 5
0
int ParagraphFormat::getAlignment() const
{
    return getPropertyInt(disp_, L"Alignment");
}
Ejemplo n.º 6
0
int Collection::getCount()
{
    return getPropertyInt(disp_, L"Count");
}
Ejemplo n.º 7
0
int Styles::getCount()
{
    return getPropertyInt(styles_, L"Count");
}
Ejemplo n.º 8
0
int Notes::getCount() const
{
    return getPropertyInt(disp_, L"Count");
}
Ejemplo n.º 9
0
int Paragraphs::getCount()
{
    return getPropertyInt(paragraphs_, L"Count");
}
Ejemplo n.º 10
0
int Characters::getCount()
{
    return getPropertyInt(chars_, L"Count");
}
Ejemplo n.º 11
0
int StoryRanges::getCount()
{
    return getPropertyInt(range_, L"Count");
}
Ejemplo n.º 12
0
    /**
     * Get the displayed image handle.
     * @return A value greater than zero representing a MoSync handle to an
     * uncompressed image resource, or zero if the displayed image was created
     * using set image path function.
     */
    MAHandle Image::getImage()
    {
		return getPropertyInt(MAW_IMAGE_IMAGE);
    }