Sha256: 969b1e97a49122e74f3d2b5127eb0bd69db258341776ad2b7b0f850c3cb9fef1

Contents?: true

Size: 1.37 KB

Versions: 13

Compression:

Stored size: 1.37 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, tgt=nil, sel=0, opts=0, x=0, y=0, w=0, h=0) # :yields: theBitmapView
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fxruby-1.4.0 rdoc-sources/FXBitmapView.rb
fxruby-1.4.2 rdoc-sources/FXBitmapView.rb
fxruby-1.4.1 rdoc-sources/FXBitmapView.rb
fxruby-1.4.3 rdoc-sources/FXBitmapView.rb
fxruby-1.4.4 rdoc-sources/FXBitmapView.rb
fxruby-1.4.5 rdoc-sources/FXBitmapView.rb
fxruby-1.4.6 rdoc-sources/FXBitmapView.rb
fxruby-1.4.7 rdoc-sources/FXBitmapView.rb
fxruby-1.6.0 rdoc-sources/FXBitmapView.rb
fxruby-1.6.1 rdoc-sources/FXBitmapView.rb
fxruby-1.6.2 rdoc-sources/FXBitmapView.rb
fxruby-1.6.3 rdoc-sources/FXBitmapView.rb
fxruby-1.6.4 rdoc-sources/FXBitmapView.rb