---
title: "Functions of Current weather"
canonical: "https://docs.cuesystem.com/space/CVCGC/689635335/Functions%20of%20Current%20weather"
format: markdown
---
## SetCurrentWeather

This function sets the current themperature and current weather icon of object to currentweather. 

#### Syntax

```visualbasic
Function SetCurrentWeather(currentweather As WeatherStructure) 
```

[Description of structre of WeatherStructure](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/689537033)

## SetObjectPosition

This function sets the position of object to newx and newy values. The function returns True on success or False if an error occurs.

#### Syntax

```visualbasic
Function SetObjectPosition(newx As Long, newy As Long) As Boolean
```

## GetObjectPosition

This function returns the current position of object in parameters currentx and currenty.

#### Syntax

```visualbasic
Function GetObjectPosition(ByRef currentx As Long, currenty As Long)
```

## SetObjectDimensions

This function sets dimensions of object to newwidth and newheight values. The function returns True on success or False if an error occurs.

#### Syntax

```visualbasic
Function SetObjectDimensions(newwidth As Long, newheight As Long) As Boolean
```

## GetObjectDimensions

This function returns current size of object in parameters currentwidth and currentheight.

#### Syntax

```visualbasic
Function GetObjectDimensions(ByRef currentwidth As Long, ByRef currentheight As Long)
```

## ShowObject

This function shows object, property Visible is set to True.

#### Syntax 

```visualbasic
Function ShowObject() 
```

## HideObject

This function hides object, property Visible is set to False.

#### Syntax

```visualbasic
Function HideObject()
```

## IsObjectVisible

This function returns value of property Visible. This function does not return real visibility of object (object should be hidden behind another object), it returns the information whether the object should be drawn or not.

#### Syntax

```visualbasic
Function IsObjectVisible()
```

## SetThemperatureFont

This function sets the font of themperature. The function returns True.

#### Syntax

```visualbasic
Function SetThemperatureFont(newthemperaturefont As AddressOf _Font) As Boolean
```

## GetThemperatureFont

This function returns address of themperature font.

#### Syntax

```visualbasic
Function GetThemperatureFont() As AddressOf _Font
```

## SetWeatherIconFont

This function sets the font of newweathericonfont. The function returns True.

#### Syntax

```visualbasic
Function SetWeatherIconFont(newweathericonfontAs AddressOf _Font) As Boolean
```

## GetWeatherIconFont

This function returns address of wheather icon font.

#### Syntax

```visualbasic
Function GetWeatherIconFont() As AddressOf _Font
```

## SetFontColor

This function sets FontColor to newfontcolor value. The function returns True.

#### Syntax

```visualbasic
Function SetFontColor(newfontcolor As Long) As Boolean
```

## GetFontColor

This function returns current FontColor.

#### Syntax

```visualbasic
Function GetFontColor() As Long
```