[ruby-gnome2-doc-cvs] [Hiki] create - Gdk::Cursor

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2003年 9月 29日 (月) 17:49:03 JST


-------------------------
REMOTE_ADDR = 61.204.181.66
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/?Gdk%3A%3ACursor
-------------------------
= class Gdk::Cursor
Standard and pixmap cursors.

== Object Hierarchy
* Object
  * GLib::Boxed
    * Gdk::Cursor

== 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.
    * Returns: true if the Gdk::Cursor is pixmap.

--- cursor_type
    Retrieves the GdkCursorType.

== Constants
=== GdkCursorType
--- X_CURSOR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/X_cursor.png>))
--- ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/arrow.png>))
--- BASED_ARROW_DOWN
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/based_arrow_down.png>))
--- BASED_ARROW_UP
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/based_arrow_up.png>))
--- BOAT
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/boat.png>))
--- BOGOSITY
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/bogosity.png>))
--- BOTTOM_LEFT_CORNER
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/bottom_left_corner.png>))
--- BOTTOM_RIGHT_CORNER
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/bottom_right_corner.png>))
--- BOTTOM_SIDE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/bottom_side.png>))
--- BOTTOM_TEE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/bottom_tee.png>))
--- BOX_SPIRAL
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/box_spiral.png>))
--- CENTER_PTR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/center_ptr.png>))
--- CIRCLE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/circle.png>))
--- CLOCK
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/clock.png>))
--- COFFEE_MUG
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/coffee_mug.png>))
--- CROSS
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/cross.png>))
--- CROSS_REVERSE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/cross_reverse.png>))
--- CROSSHAIR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/crosshair.png>))
--- DIAMOND_CROSS
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/diamond_cross.png>))
--- DOT
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/dot.png>))
--- DOTBOX
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/dotbox.png>))
--- DOUBLE_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/double_arrow.png>))
--- DRAFT_LARGE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/draft_large.png>))
--- DRAFT_SMALL
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/draft_small.png>))
--- DRAPED_BOX
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/draped_box.png>))
--- EXCHANGE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/exchange.png>))
--- FLEUR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/fleur.png>))
--- GOBBLER
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/gobbler.png>))
--- GUMBY
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/gumby.png>))
--- HAND1
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/hand1.png>))
--- HAND2
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/hand2.png>))
--- HEART
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/heart.png>))
--- ICON
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/icon.png>))
--- IRON_CROSS
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/iron_cross.png>))
--- LEFT_PTR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/left_ptr.png>))
--- LEFT_SIDE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/left_side.png>))
--- LEFT_TEE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/left_tee.png>))
--- LEFTBUTTON
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/leftbutton.png>))
--- LL_ANGLE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/ll_angle.png>))
--- LR_ANGLE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/lr_angle.png>))
--- MAN
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/man.png>))
--- MIDDLEBUTTON
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/middlebutton.png>))
--- MOUSE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/mouse.png>))
--- PENCIL
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/pencil.png>))
--- PIRATE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/pirate.png>))
--- PLUS
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/plus.png>))
--- QUESTION_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/question_arrow.png>))
--- RIGHT_PTR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/right_ptr.png>))
--- RIGHT_SIDE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/right_side.png>))
--- RIGHT_TEE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/right_tee.png>))
--- RIGHTBUTTON
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/rightbutton.png>))
--- RTL_LOGO
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/rtl_logo.png>))
--- SAILBOAT
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sailboat.png>))
--- SB_DOWN_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sb_down_arrow.png>))
--- SB_H_DOUBLE_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sb_h_double_arrow.png>))
--- SB_LEFT_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sb_left_arrow.png>))
--- SB_RIGHT_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sb_right_arrow.png>))
--- SB_UP_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sb_up_arrow.png>))
--- SB_V_DOUBLE_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sb_v_double_arrow.png>))
--- SHUTTLE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/shuttle.png>))
--- SIZING
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/sizing.png>))
--- SPIDER
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/spider.png>))
--- SPRAYCAN
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/spraycan.png>))
--- STAR
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/star.png>))
--- TARGET
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/target.png>))
--- TCROSS
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/tcross.png>))
--- TOP_LEFT_ARROW
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/top_left_arrow.png>))
--- TOP_LEFT_CORNER
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/top_left_corner.png>))
--- TOP_RIGHT_CORNER
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/top_right_corner.png>))
--- TOP_SIDE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/top_side.png>))
--- TOP_TEE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/top_tee.png>))
--- TREK
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/trek.png>))
--- UL_ANGLE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/ul_angle.png>))
--- UMBRELLA
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/umbrella.png>))
--- UR_ANGLE
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/ur_angle.png>))
--- WATCH
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/watch.png>))
--- XTERM
    ((<URL:http://developer.gnome.org/doc/API/2.0/gdk/xterm.png>))
--- LAST_CURSOR
--- CURSOR_IS_PIXMAP
    type of cursors constructed with Gdk::Pixmap. 


- ((<Masao>))







ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る