Class: Tgui::ScrollablePanel::Scrollbar
Instance Attribute Summary
Attributes inherited from WidgetLike
#host, #id
Instance Method Summary
collapse
Methods inherited from WidgetLike
abi_attr, abi_bit_enum, abi_def, abi_enum, #flags=, #initialize, self_abi_def, self_abi_def_setter, self_abi_def_setter_with_id, self_abi_def_with_id, self_packers_id_extend
Methods included from BangDef
#def!
Methods included from BangNest
#method_missing, #respond_to?
#bang_method_missing, #bang_object_stack, #bang_respond_to?, #self!, #upon!
Constructor Details
This class inherits a constructor from WidgetLike
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class BangNest
Instance Method Details
27
28
29
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 27
def amount
host.abi_unpack_integer(host.send("_abi_get_#{id}_scroll_amount"))
end
|
#amount=(amount) ⇒ Object
23
24
25
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 23
def amount=(amount)
host.send("_abi_set_#{id}_scroll_amount", host.abi_pack_integer(amount))
end
|
19
20
21
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 19
def policy
host.abi_unpack(Tgui::Scrollbar::Policy, host.send("_abi_get_#{id}_scrollbar_policy"))
end
|
#policy=(policy) ⇒ Object
15
16
17
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 15
def policy=(policy)
host.send("_abi_set_#{id}_scrollbar_policy", host.abi_pack(Tgui::Scrollbar::Policy, policy))
end
|
39
40
41
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 39
def shown?
host.abi_unpack_bool(host.send("_abi_is_#{id}_scrollbar_shown"))
end
|
35
36
37
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 35
def value
host.abi_unpack_integer(host.send("_abi_get_#{id}_scrollbar_value"))
end
|
#value=(value) ⇒ Object
31
32
33
|
# File 'lib/white_gold/dsl/scrollable_panel.rb', line 31
def value=(value)
host.send("_abi_set_#{id}_scrollbar_value", host.abi_pack_integer(value))
end
|