cadetill's blog Copyright © Xavier Martínez (cadetill)

Class TGMTransform

Unit

Declaration

type TGMTransform = class(TObject)

Description

Contains methods of transformations.

Hierarchy

Overview

Methods

Public class function APILangToStr(Value: TGMAPILang): string;
Public class function APIRegionToStr(Value: TGMAPIRegion): string;
Public class function APIVerToStr(Value: TGMAPIVer): string;
Public class function GestureHandlingToStr(Value: TGMGestureHandling): string;
Public class function GetStrToDouble(Value: string): Double;
Public class function GetStrToInteger(Value: string; Default: Integer = 0): Integer;
Public class function GMBoolToStr(Value: Boolean; UseBoolStrs: Boolean = False): string;
Public class function MapTypeControlStyleToStr(Value: TGMMapTypeControlStyle): string;
Public class function MapTypeIdsToStr(Values: TGMMapTypeIds; Delimiter: Char = ';'): string;
Public class function MapTypeIdToStr(Value: TGMMapTypeId): string;
Public class function PositionToStr(Value: TGMControlPosition): string;
Public class function ScaleControlStyleToStr(Value: TGMScaleControlStyle): string;
Public class function StrToAPILang(Value: string): TGMAPILang;
Public class function StrToAPIRegion(Value: string): TGMAPIRegion;
Public class function StrToAPIVer(Value: string): TGMAPIVer;
Public class function StrToGestureHandling(Value: string): TGMGestureHandling;
Public class function StrToLang(Value: string): TGMLang;
Public class function StrToMapTypeControlStyle(Value: string): TGMMapTypeControlStyle;
Public class function StrToMapTypeId(Value: string): TGMMapTypeId;
Public class function StrToPosition(Value: string): TGMControlPosition;
Public class function StrToScaleControlStyle(Value: string): TGMScaleControlStyle;

Description

Methods

Public class function APILangToStr(Value: TGMAPILang): string;

Returns a string that represents the APILang.

Parameters
Value
TGMAPILang to convert to string
Returns

string with the APILang

Public class function APIRegionToStr(Value: TGMAPIRegion): string;

Returns a string that represents the APIRegion.

Parameters
Value
TGMAPIRegion to convert to string
Returns

string with the APIRegion

Public class function APIVerToStr(Value: TGMAPIVer): string;

Returns a string that represents the APIVer.

Parameters
Value
TGMAPIVer to convert to string
Returns

string with the APIVer

Public class function GestureHandlingToStr(Value: TGMGestureHandling): string;

Returns a string that represents the GestureHandling.

Parameters
Value
TGMGestureHandling to convert to string.
Returns

string with the GestureHandling value.

Public class function GetStrToDouble(Value: string): Double;

Returns the double value represented by Value string.

If Value don't contains a double value, returns 0.

Parameters
Value
Value to convert.
Returns

Double value.

Public class function GetStrToInteger(Value: string; Default: Integer = 0): Integer;

Returns the integer value represented by Value string.

If Value don't contains a integer value, returns Default value.

Parameters
Value
Value to convert.
Default
Default value to return.
Returns

Integer value.

Public class function GMBoolToStr(Value: Boolean; UseBoolStrs: Boolean = False): string;

Returns a string that represents a boolean value.

This function have sense because some people have localized the original Delphi function.

Parameters
Value
Boolean value to convert.
UseBoolStrs
If true, returns a string value with "true" or "false" values, else returns "0" or "-1".
Returns

string that represents the boolean value.

Public class function MapTypeControlStyleToStr(Value: TGMMapTypeControlStyle): string;

Returns a string that represents the MapTypeControlStyle.

Parameters
Value
TGMMapTypeControlStyle to convert to string.
Returns

string with the MapTypeControlStyle value.

Public class function MapTypeIdsToStr(Values: TGMMapTypeIds; Delimiter: Char = ';'): string;

Returns a string with the MapTypeId included into Values and separated by Delimiter.

Parameters
Values
TGMMapTypeIds to convert to string.
Delimiter
Delimiter between MapTypeId.
Returns

string with the MapTypeIds value.

Public class function MapTypeIdToStr(Value: TGMMapTypeId): string;

Returns a string that represents the MapTypeId.

Parameters
Value
TMapTypeId to convert to string.
Returns

string with the MapTypeId value.

Public class function PositionToStr(Value: TGMControlPosition): string;

Returns a string that represents the Position.

Parameters
Value
TGMControlPosition to convert to string.
Returns

string with the Position value.

Public class function ScaleControlStyleToStr(Value: TGMScaleControlStyle): string;

Returns a string that represents the ScaleControlStyle.

Parameters
Value
TGMScaleControlStyle to convert to string.
Returns

string with the ScaleControlStyle.

Public class function StrToAPILang(Value: string): TGMAPILang;

Returns the TGMAPILang represented by the string Value.

Parameters
Value
string to convert to TGMAPILang.
Returns

TGMAPILang that represents the string.

Public class function StrToAPIRegion(Value: string): TGMAPIRegion;

Returns the TGMAPIRegion represented by the string Value.

Parameters
Value
string to convert to TGMAPIRegion.
Returns

TGMAPIRegion that represents the string.

Public class function StrToAPIVer(Value: string): TGMAPIVer;

Returns the TGMAPIVer represented by the string Value.

Parameters
Value
string to convert to TGMAPIVer.
Returns

TGMAPIVer that represents the string.

Public class function StrToGestureHandling(Value: string): TGMGestureHandling;

Returns the TGMGestureHandling represented by the string Value.

Parameters
Value
string to convert to TGMGestureHandling.
Returns

TGMGestureHandling that represents the string.

Public class function StrToLang(Value: string): TGMLang;

Returns the TGMLang represented by the string Value.

Parameters
Value
string to convert to TGMLang.
Returns

TGMLang that represents the string.

Public class function StrToMapTypeControlStyle(Value: string): TGMMapTypeControlStyle;

Returns the TGMMapTypeControlStyle represented by the string Value.

Parameters
Value
string to convert to TGMMapTypeControlStyle.
Returns

TGMMapTypeControlStyle that represents the string.

Public class function StrToMapTypeId(Value: string): TGMMapTypeId;

Returns the TGMMapTypeId represented by the string Value.

Parameters
Value
string to convert to TGMMapTypeId.
Returns

TGMMapTypeId that represents the string.

Public class function StrToPosition(Value: string): TGMControlPosition;

Returns the TGMControlPosition represented by the string Value.

Parameters
Value
string to convert to TGMControlPosition.
Returns

TGMControlPosition that represents the string.

Public class function StrToScaleControlStyle(Value: string): TGMScaleControlStyle;

Returns the TGMScaleControlStyle represented by the string Value.

Parameters
Value
string to convert to TGMScaleControlStyle.
Returns

TGMScaleControlStyle that represents the string.


Generated by PasDoc 0.15.0.