Class: Browser::Canvas::Style
- Inherits:
-
StyleObject
- Object
- StyleObject
- Browser::Canvas::Style
- Defined in:
- opal/browser/canvas/style.rb
Defined Under Namespace
Classes: Image, Line, Shadow, Text
Instance Attribute Summary collapse
-
#alpha ⇒ Object
Returns the value of attribute alpha.
-
#composite_operation ⇒ Object
Returns the value of attribute composite_operation.
-
#fill ⇒ Object
Returns the value of attribute fill.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#shadow ⇒ Object
readonly
Returns the value of attribute shadow.
-
#stroke ⇒ Object
Returns the value of attribute stroke.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from StyleObject
Instance Method Summary collapse
-
#initialize(context) ⇒ Style
constructor
A new instance of Style.
Constructor Details
Instance Attribute Details
#alpha ⇒ Object
Returns the value of attribute alpha.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def alpha @alpha end |
#composite_operation ⇒ Object
Returns the value of attribute composite_operation.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def composite_operation @composite_operation end |
#fill ⇒ Object
Returns the value of attribute fill.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def fill @fill end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def image @image end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def line @line end |
#shadow ⇒ Object (readonly)
Returns the value of attribute shadow.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def shadow @shadow end |
#stroke ⇒ Object
Returns the value of attribute stroke.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def stroke @stroke end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
85 86 87 |
# File 'opal/browser/canvas/style.rb', line 85 def text @text end |