Class: Shoes::Swt::Star

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Common::PainterUpdatesPosition, Common::Clickable, Common::Fill, Common::Remove, Common::Stroke, Common::Translate, Common::Visibility
Defined in:
shoes-swt/lib/shoes/swt/star.rb

Instance Attribute Summary collapse

Attributes included from Common::Clickable

#pass_coordinates

Instance Method Summary collapse

Methods included from Common::Translate

#clear_translate, #translate_left, #translate_top

Methods included from Common::Remove

#remove

Methods included from Common::Visibility

#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?

Methods included from Common::Clickable

#click, #pass_coordinates?, #register_click, #release

Methods included from Common::Stroke

#update_stroke

Methods included from Common::Fill

#update_fill

Constructor Details

#initialize(dsl, app) ⇒ Star

Returns a new instance of Star.



20
21
22
23
24
25
26
27
# File 'shoes-swt/lib/shoes/swt/star.rb', line 20

def initialize(dsl, app)
  @dsl = dsl
  @app = app
  @container = @app.real

  @painter = StarPainter.new(self)
  @app.add_paint_listener @painter
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



18
19
20
# File 'shoes-swt/lib/shoes/swt/star.rb', line 18

def app
  @app
end

#containerObject (readonly)

Returns the value of attribute container.



18
19
20
# File 'shoes-swt/lib/shoes/swt/star.rb', line 18

def container
  @container
end

#dslObject (readonly)

Returns the value of attribute dsl.



18
19
20
# File 'shoes-swt/lib/shoes/swt/star.rb', line 18

def dsl
  @dsl
end

#transformObject (readonly)

Returns the value of attribute transform.



18
19
20
# File 'shoes-swt/lib/shoes/swt/star.rb', line 18

def transform
  @transform
end