Class: Shoes::Line
- Defined in:
- lacci/lib/shoes/drawables/line.rb
Constant Summary
Constants included from Log
Shoes::Log::DEFAULT_COMPONENT, Shoes::Log::DEFAULT_DEBUG_LOG_CONFIG, Shoes::Log::DEFAULT_LOG_CONFIG
Instance Attribute Summary
Attributes inherited from Drawable
#debug_id, #destroyed, #parent
Attributes inherited from Linkable
Instance Method Summary collapse
-
#initialize(left, top, x2, y2) ⇒ Line
constructor
A new instance of Line.
Methods inherited from Drawable
allocate_drawable_id, #app, #banner, #caption, #destroy, #download, drawable_by_id, drawable_class_by_name, dsl_name, #event, get_shoes_events, #hide, #inscription, #inspect, is_widget_class?, #method_missing, register_drawable_id, #respond_to_missing?, #set_parent, shoes_events, shoes_style, shoes_style_hashes, shoes_style_name?, shoes_style_names, #shoes_style_values, shoes_styles, #show, #style, #subtitle, #tagline, #title, #toggle, unregister_drawable_id, validate_as
Methods included from Colors
Methods included from Log
configure_logger, #log_init, logger
Methods inherited from Linkable
#bind_shoes_event, #send_self_event, #send_shoes_event, #unsub_all_shoes_events, #unsub_shoes_event
Constructor Details
#initialize(left, top, x2, y2) ⇒ Line
Returns a new instance of Line.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lacci/lib/shoes/drawables/line.rb', line 8 def initialize(left, top, x2, y2) super @left = left @top = top @x2 = x2 @y2 = y2 @draw_context = Shoes::App.instance.current_draw_context create_display_drawable end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Shoes::Drawable