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

Gdk::Cursor

class Gdk::Cursor

Standard and pixmap cursors.

Class Methods

Gdk::Cursor.new(cursor_type)
Creates a new cursor from the set of builtin cursors.
  • cursor_type: cursor to create
  • Returns: a new Gdk::Cursor
Gdk::Cursor.new(source, mask, fg, bg, x, y)
Creates a new cursor from a given pixmap and mask. Both the pixmap and mask must have a depth of 1 (i.e. each pixel has only 2 values - on or off). The standard cursor size is 16 by 16 pixels. You can create a bitmap from inline data.
  • source: the Gdk::Pixmap specifying the cursor.
  • mask: the Gdk::Pixmap specifying the mask, which must be the same size as source.
  • fg: the foreground color(Gdk::Color), used for the bits in the source which are 1. The color does not have to be allocated first.
  • bg: the background color(Gdk::Color), used for the bits in the source which are 0. The color does not have to be allocated first.
  • x: the horizontal offset of the 'hotspot' of the cursor.
  • y: the vertical offset of the 'hotspot' of the cursor.
  • Returns : a new Gdk::Cursor.

Instance Methods

pixmap?
Retrieves whether the Gdk::Cursor is pixmap or builtin.
cursor_type
Retrieves the cursor type.
更新日時:2005/11/17 02:43:41
キーワード:
参照:[Vte::Terminal] [Gdk::Cursor] [Gdk::Window] [マウスカーソル]