Sha256: 2e6d603c7fac0c1c5889d9cc78a887f11382bd3699953c36432c9516c45d8ece
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
module Fox # # The FXBitmapView widget displays a scrollable view of a bitmap. # # === 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
5 entries across 5 versions & 1 rubygems