新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gnome::PrintUnit

Class Methods

get_identify(base)
default
get_by_name(name)
  • name: the name of unit.
  • Returns: specified unit, or nil.
get_by_abbreviation(abbreviation)
  • abbreviation: the abbreviation of unit.
  • Returns: specified unit, or nil.
get_list(bases)
  • bases: the bases of unit. Base can be composited by Gnome::PrintUnitBase#|.
  • Returns: an array of specified units.

Instance Methods

name
  • Returns: the name of unit.
base
unit_to_base
  • Returns: the value of unit to base.
abbr
  • Returns: the abbreviation of unit.
plural
  • Returns: the plural of unit.
abbr_plural
  • Returns: the plural of abbreviation of unit.
convert_distance(distance, to)
  • distance: the target distance.
  • to: the unit to convert.
  • Returns: the converted distance, nil on error.
convert_distance_full(distance, to, ctm_scale, device_scale)

Constants

PS_UNIT
The unit of PS.
更新日時:2005/11/17 02:43:41
キーワード:
参照:[Gnome::PrintUnitBase] [Gnome::PrintUnit]