Sha256: 515c68191eb124e903c25c97f25652607f59311b56b3ae4f63435982ae542ab7

Contents?: true

Size: 1.39 KB

Versions: 37

Compression:

Stored size: 1.39 KB

Contents

module Fox
  #
  # The Bitmap View widget display a scrollable view of a monochrome bitmap image;
  # the bitmap is not owned by the bitmap frame so it must be explicitly deleted
  # elsewhere.  Thus, a single bitmap image can be displayed inside multiple bitmap
  # view widgets.
  #
  # === Bitmap alignment styles
  #
  # +BITMAPVIEW_NORMAL+::	Normal mode is centered
  # +BITMAPVIEW_CENTER_X+::	Centered horizontally
  # +BITMAPVIEW_LEFT+::		Left-aligned
  # +BITMAPVIEW_RIGHT+::	Right-aligned
  # +BITMAPVIEW_CENTER_Y+::	Centered vertically
  # +BITMAPVIEW_TOP+::		Top-aligned
  # +BITMAPVIEW_BOTTOM+::	Bottom-aligned
  #
  # === Events
  #
  # +SEL_RIGHTBUTTONPRESS+::	sent when the right mouse button goes down; the message data is an FXEvent instance.
  # +SEL_RIGHTBUTTONRELEASE+::	sent when the right mouse button goes up; the message data is an FXEvent instance.
  #
  class FXBitmapView < FXScrollArea
  
    # The bitmap [FXBitmap]
    attr_accessor :bitmap
    
    # The color used for the "on" bits in the bitmap [FXColor]
    attr_accessor :onColor

    # The color used for the "off" bits in the bitmap [FXColor]
    attr_accessor :offColor

    # Current alignment [Integer]
    attr_accessor :alignment

    #
    # Return an initialized FXBitmapView instance.
    #
    def initialize(p, bmp=nil, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theBitmapView
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

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