Class: Efl::Elm::ElmWin
- Inherits:
-
Efl::Evas::REvasObject
- Object
- Efl::Evas::REvasObject
- Efl::Elm::ElmWin
- Defined in:
- lib/efl/elementary.rb
Instance Method Summary (collapse)
-
- (ElmWin) initialize(parent, title, type = :elm_win_basic, &block)
constructor
A new instance of ElmWin.
- - (Object) inwin_add
- - (Object) screen_position_get (also: #screen_position)
- - (Object) smart_callback_add(event_str, cb, data = FFI::MemoryPointer::NULL)
Methods inherited from Efl::Evas::REvasObject
#above_get, #below_get, #center_get, #center_set, #color_get, #data_get, #ecore_evas_get, #evas_get, #evas_name, #evas_type, #free, #geometry_get, #object_box_add, release, #size, #size=, #size_hint_align_get, #size_hint_align_set_fill, #size_hint_aspect_get, #size_hint_max_get, #size_hint_min_get, #size_hint_padding_get, #size_hint_request_get, #size_hint_weight_get, #size_hint_weight_set_expand
Methods included from ClassHelper
#===, #address, included, #method_missing, #null?, #to_a, #to_ary, #to_ptr, #to_s
Constructor Details
- (ElmWin) initialize(parent, title, type = :elm_win_basic, &block)
A new instance of ElmWin
30 31 32 |
# File 'lib/efl/elementary.rb', line 30 def initialize parent, title, type=:elm_win_basic, &block super Native.method(:elm_win_add), parent, title, type, &block end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Efl::ClassHelper
Instance Method Details
- (Object) inwin_add
36 37 38 |
# File 'lib/efl/elementary.rb', line 36 def inwin_add ElmInWin.new @ptr end |
- (Object) screen_position_get Also known as: screen_position
39 40 41 42 43 44 |
# File 'lib/efl/elementary.rb', line 39 def screen_position_get x = FFI::MemoryPointer.new :int y = FFI::MemoryPointer.new :int Native.elm_win_screen_position_get @ptr, x, y [ x.read_int, y.read_int ] end |
- (Object) smart_callback_add(event_str, cb, data = FFI::MemoryPointer::NULL)
33 34 35 |
# File 'lib/efl/elementary.rb', line 33 def smart_callback_add event_str, cb, data=FFI::MemoryPointer::NULL Native.evas_object_smart_callback_add @ptr, event_str, cb, data end |