Class: Efl::Elm::ElmBg
- Inherits:
-
ElmObject
- Object
- Efl::Evas::REvasObject
- ElmObject
- Efl::Elm::ElmBg
- Includes:
- Helper
- Defined in:
- lib/efl/elm/elm_bg.rb
Instance Method Summary collapse
- #color_get ⇒ Object (also: #color)
- #file_get ⇒ Object (also: #file)
Methods included from Helper
Methods inherited from ElmObject
#cnp_selection_clear, #cnp_selection_get, #cnp_selection_set, #content_get, #content_set, #content_unset, #focus_allow_custom_chain_get, #focus_allow_custom_chain_set, #focus_allow_custom_chain_unset, #focus_allow_get, #focus_allow_set, #focus_custom_chain_append, #focus_custom_chain_prepend, #focus_cycle, #focus_get, #focus_set, #parent_widget_get, #scroll_freeze_pop, #scroll_freeze_push, #scroll_hold_pop, #scroll_hold_push, #scroll_lock_x_get, #scroll_lock_x_set, #scroll_lock_y_get, #scroll_lock_y_set, #smart_callback_add, #text_get, #text_set, #tree_dot_dump, #tree_dump, #tree_unfocusable_get, #tree_unfocusable_set
Methods inherited from Efl::Evas::REvasObject
#above_get, #below_get, #center_get, #center_set, #data_get, #ecore_evas_get, #evas_get, #evas_name, #evas_type, #free, #geometry_get, #initialize, #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, #size_hint_weight_set_expand_fill
Methods included from ClassHelper
#===, #address, included, #method_missing, #null?, #to_a, #to_ary, #to_ptr, #to_s
Constructor Details
This class inherits a constructor from Efl::Evas::REvasObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Efl::ClassHelper
Instance Method Details
#color_get ⇒ Object Also known as: color
24 25 26 27 28 29 30 |
# File 'lib/efl/elm/elm_bg.rb', line 24 def color_get r = FFI::MemoryPointer.new :int g = FFI::MemoryPointer.new :int b = FFI::MemoryPointer.new :int Native.elm_bg_color_get @ptr, r, g, b [ r.read_int, g.read_int, b.read_int ] end |
#file_get ⇒ Object Also known as: file
17 18 19 20 21 22 |
# File 'lib/efl/elm/elm_bg.rb', line 17 def file_get f = FFI::MemoryPointer.new :pointer g = FFI::MemoryPointer.new :pointer Native.elm_bg_file_get @ptr, f, g [ f.read_pointer.read_string, g.read_pointer.read_string ] end |