Class: Fox::FXDrawable

Inherits:
FXId show all
Defined in:
rdoc-sources/FXDrawable.rb

Overview

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

Direct Known Subclasses

FXBitmap, FXImage, FXWindow

Instance Attribute Summary collapse

Attributes inherited from FXId

#app, #userData, #xid

Instance Method Summary collapse

Methods inherited from FXId

#create, #created?, #destroy, #detach, #runOnUiThread

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Instance Attribute Details

#heightObject (readonly)

Height of drawable, in pixels [Integer]


12
13
14
# File 'rdoc-sources/FXDrawable.rb', line 12

def height
  @height
end

#visualObject

Visual Fox::FXVisual


15
16
17
# File 'rdoc-sources/FXDrawable.rb', line 15

def visual
  @visual
end

#widthObject (readonly)

Width of drawable, in pixels [Integer]


9
10
11
# File 'rdoc-sources/FXDrawable.rb', line 9

def width
  @width
end

Instance Method Details

#resize(w, h) ⇒ Object

Resize drawable to the specified width and height.

Parameters:

width

new drawable width, in pixels [Integer]

height

new drawable height, in pixels [Integer]


25
# File 'rdoc-sources/FXDrawable.rb', line 25

def resize(w, h); end