Class: Shoes::Line

Inherits:
Widget show all
Defined in:
lacci/lib/shoes/widgets/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 Widget

#parent

Attributes inherited from Linkable

#linkable_id

Instance Method Summary collapse

Methods inherited from Widget

#banner, #caption, #destroy, display_properties, display_property, display_property_name?, display_property_names, #display_property_values, #download, dsl_name, #hide, #inscription, #inspect, #method_missing, #respond_to_missing?, #set_parent, #show, #subtitle, #tagline, #title, #toggle, widget_class_by_name

Methods included from Colors

#gray, #rgb, #to_rgb

Methods included from Log

configure_logger, #log_init, logger

Methods inherited from Linkable

#bind_shoes_event, #send_self_event, #send_shoes_event, #unsub_shoes_event

Constructor Details

#initialize(left, top, x2, y2) ⇒ Line

Returns a new instance of Line.



7
8
9
10
11
12
13
14
15
16
# File 'lacci/lib/shoes/widgets/line.rb', line 7

def initialize(left, top, x2, y2)
  @left = left
  @top = top
  @x2 = x2
  @y2 = y2
  @draw_context = Shoes::App.instance.current_draw_context

  super
  create_display_widget
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Shoes::Widget