Sha256: 4d21a2d8c7924a258cf79a9fd0b7cdf408460d00d9f74bedc8930d42199cade8

Contents?: true

Size: 1.75 KB

Versions: 30

Compression:

Stored size: 1.75 KB

Contents

module Fox
  #
  # Cursor class
  #
  # === Stock cursors
  #
  # +CURSOR_ARROW+::		Default left pointing arrow
  # +CURSOR_RARROW+::		Right arrow
  # +CURSOR_IBEAM+::		Text I-Beam
  # +CURSOR_WATCH+::		Stopwatch or hourglass
  # +CURSOR_CROSS+::		Crosshair
  # +CURSOR_UPDOWN+::		Move up, down
  # +CURSOR_LEFTRIGHT+::	Move left, right
  # +CURSOR_MOVE+::		    Move up, down, left, right
  #
  # === Cursor options
  #
  # +CURSOR_KEEP+::			Keep pixel data in client
  # +CURSOR_OWNED+::		Pixel data is owned by cursor
  #
  class FXCursor < FXId

    # Width of cursor, in pixels (returns zero for stock cursors) [Integer]
    attr_reader	:width
    
    # Height of cursor, in pixels (returns zero for stock cursors) [Integer]
    attr_reader	:height
    
    # Hotspot x-coordinate (returns zero for stock cursors) [Integer]
    attr_accessor :hotX
    
    # Hotspot y-coordinate (returns zero for stock cursors) [Integer]
    attr_accessor :hotY

    #
    # Make stock cursor, where _stockCursorId_ is one of the stock cursors
    # (+CURSOR_ARROW+, +CURSOR_RARROW+, etc.)
    #
    def initialize(a, curid=CURSOR_ARROW) # :yields: theCursor
    end
  
    #
    # Make cursor from _src_ and _msk_; cursor size should be 32x32 for portability!
    #
    def initialize(a, pix, width=32, height=32, hotX=-1, hotY=-1) # :yields: theCursor
    end
  
    #
    # Make cursor from FXColor pixels; cursor size should be 32x32 for portability!
    #
    def initialize(a, pixels, width=32, height=32, hotX=-1, hotY=-1) # :yields: theCursor
    end

    #
    # Save pixel data only.
    #
    def savePixels(stream) ; end
  
    #
    # Load pixel data only.
    #
    def loadPixels(stream) ; end
    
    # Return +true+ if there is color in the cursor.
    def color?; end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXCursor.rb
fxruby-1.6.22.pre2 rdoc-sources/FXCursor.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXCursor.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXCursor.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXCursor.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXCursor.rb
fxruby-1.6.20 rdoc-sources/FXCursor.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXCursor.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXCursor.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXCursor.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXCursor.rb
fxruby-1.6.12 rdoc-sources/FXCursor.rb
fxruby-1.6.13 rdoc-sources/FXCursor.rb
fxruby-1.6.14-universal-darwin-9 rdoc-sources/FXCursor.rb
fxruby-1.6.15-universal-darwin-9 rdoc-sources/FXCursor.rb
fxruby-1.6.14 rdoc-sources/FXCursor.rb
fxruby-1.6.15 rdoc-sources/FXCursor.rb
fxruby-1.6.15-x86-mswin32-60 rdoc-sources/FXCursor.rb
fxruby-1.6.16-universal-darwin-9 rdoc-sources/FXCursor.rb
fxruby-1.6.16-x86-mswin32-60 rdoc-sources/FXCursor.rb