機能 #888 » 888.patch
core/mui/cairo_icon_over_button.rb | ||
---|---|---|
# - _gy_MiraclePainter 全体から見たy座標
|
||
def point_moved_main_icon(gx, gy)
|
||
icon_position = globalpos2iconpos(gx, gy)
|
||
@tree.pointer_on_main_icon = !!icon_position
|
||
if icon_position
|
||
if current_icon_pos != icon_position
|
||
on_modify
|
core/mui/gtk_tree_view_pretty_scroll.rb | ||
---|---|---|
def initialize(*a)
|
||
super
|
||
pointer_on_main_icon = false # メインアイコン上にポインタがあるなら真
|
||
scroll_to_top_animation = false # 自動スクロールアニメーション中なら真
|
||
get_scroll_to_top_animation_id = 0
|
||
scroll_to_top_animation_id = lambda{
|
||
... | ... | |
def scroll_to_zero_lator!
|
||
@scroll_to_zero_lator = true end
|
||
def pointer_on_main_icon
|
||
atomic {
|
||
@pointer_on_main_icon
|
||
}
|
||
end
|
||
def pointer_on_main_icon=(v)
|
||
atomic {
|
||
@pointer_on_main_icon = v
|
||
}
|
||
end
|
||
def scroll_to_zero?
|
||
defined?(@scroll_to_zero_lator) and @scroll_to_zero_lator end
|
||
!pointer_on_main_icon and defined?(@scroll_to_zero_lator) and @scroll_to_zero_lator end
|
||
end
|