Codebase list ruby-fxruby / run/8a909198-7fff-4596-a78d-571f487fdb51/upstream rdoc-sources / FXBitmapFrame.rb
run/8a909198-7fff-4596-a78d-571f487fdb51/upstream

Tree @run/8a909198-7fff-4596-a78d-571f487fdb51/upstream (Download .tar.gz)

FXBitmapFrame.rb @run/8a909198-7fff-4596-a78d-571f487fdb51/upstreamraw · history · blame

module Fox
  #
  # The bitmap frame is a simple frame widget displaying an monochrome bitmap
  # image; the bitmap is not owned by the bitmap frame so it must be explicitly
  # deleted elsewhere.
  #
  class FXBitmapFrame < FXFrame

    # The current image being displayed {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

    #
    # The current justification mode, some combination of the flags
    # +JUSTIFY_LEFT+, +JUSTIFY_RIGHT+, +JUSTIFY_TOP+ and +JUSTIFY_BOTTOM+
    # [Integer]
    #
    attr_accessor :justify

    #
    # Return an initialized FXBitmapFrame instance.
    #
    def initialize(p, bmp, opts=FRAME_SUNKEN|FRAME_THICK, x=0, y=0, width=0, height=0, padLeft=0, padRight=0, padTop=0, padBottom=0) # :yields: theBitmapFrame
    end
  end
end