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

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

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

module Fox
  #
  # FXDrawable is an abstract base class for any surface that can be
  # drawn upon, such as an FXWindow or an FXImage.
  #
  class FXDrawable < FXId

    # Width of drawable, in pixels [Integer]
    attr_reader :width

    # Height of drawable, in pixels [Integer]
    attr_reader :height

    # Visual {FXVisual}
    attr_accessor :visual

    #
    # Resize drawable to the specified width and height.
    #
    # ==== Parameters:
    #
    # +width+:: new drawable width, in pixels [Integer]
    # +height+:: new drawable height, in pixels [Integer]
    #
    def resize(w, h); end
  end
end