Class: Fox::FXDrawable
Overview
FXDrawable is an abstract base class for any surface that can be drawn upon, such as an FXWindow or an FXImage.
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Height of drawable, in pixels [Integer].
-
#visual ⇒ Object
Visual FXVisual.
-
#width ⇒ Object
readonly
Width of drawable, in pixels [Integer].
Attributes inherited from FXId
Instance Method Summary collapse
-
#resize(w, h) ⇒ Object
Resize drawable to the specified width and height.
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Instance Attribute Details
#height ⇒ Object (readonly)
Height of drawable, in pixels [Integer]
12 13 14 |
# File 'rdoc-sources/FXDrawable.rb', line 12 def height @height end |
#visual ⇒ Object
Visual Fox::FXVisual
15 16 17 |
# File 'rdoc-sources/FXDrawable.rb', line 15 def visual @visual end |
#width ⇒ Object (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 |