Class: Efl::Elm::ElmBg

Inherits:
Efl::Evas::REvasObject show all
Defined in:
lib/efl/elementary.rb

Instance Method Summary (collapse)

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, #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

- (ElmBg) initialize(parent, &block)



61
62
63
# File 'lib/efl/elementary.rb', line 61

def initialize parent, &block
    super Native.method(:elm_bg_add), parent, &block
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Efl::ClassHelper

Instance Method Details

- (Object) color_get Also known as: color



71
72
73
74
75
76
77
# File 'lib/efl/elementary.rb', line 71

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

- (Object) file_get Also known as: file



64
65
66
67
68
69
# File 'lib/efl/elementary.rb', line 64

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