---
name: "Gnome2::Print::Unit"
section: "3pm"
platform: "linux"
package: "libgnome2-print-perl"
version: "0.95.1-1+b1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::Print::Unit"
---

# Gnome2::Print::Unit(3pm)

Gnome2::Print::Unit

```
  Glib::Boxed
  +----Gnome2::Print::Unit
```

**scalar = $unit**-\>**abbr**\
 **scalar = $unit**-\>**abbr\_plural**\
 **scalar = $unit**-\>**base**\
 **unit = Gnome2::Print::Unit-\>get\_by\_abbreviation ($abbreviation)** `$abbreviation` (Glib::UChar)\
 **unit = Gnome2::Print::Unit-\>get\_by\_name ($name)** `$name` (Glib::UChar)\
 **$distance** = `$from`-\>**convert\_distance($to)** `$to` (Gnome2::Print::Unit)

This function returns a double on success or undef on failure.\
 **$distance** = `$from`-\>**convert\_distance\_full**($to, `$ctmscale`, `$devicescale)` `$to` (Gnome2::Print::Unit) `$ctmscale` (double) `$devicescale` (double)

This function returns a double on success or undef on failure.\
 **unit = Gnome2::Print::Unit-\>get\_default**\
 **unit = Gnome2::Print::Unit-\>get\_identity ($base)** `$base` (integer)\
 **list = $bases**-\>**get\_list** This function returns a list of Gnome2::Print::Unit.\
 **scalar = $unit**-\>**name**\
 **scalar = $unit**-\>**plural**\
 **scalar = $unit**-\>**unittobase**\
 **scalar = $unit**-\>**version** Gnome2::Print, Glib::Boxed Copyright (C) 2003-2004 by the gtk2-perl team. This software is licensed under the LGPL.  See Gnome2::Print for a full notice.
