Module: WR::Updown::ModUpdownBuddy

Defined in:
lib/wrb/components/updown.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#__updownbuddy__Object

Returns the value of attribute __updownbuddy__.



56
57
58
# File 'lib/wrb/components/updown.rb', line 56

def __updownbuddy__
  @__updownbuddy__
end

Instance Method Details

#move(*args) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
# File 'lib/wrb/components/updown.rb', line 57

def move(*args)
  super
  if @__updownbuddy__
    if @__updownbuddy__.style&RC::UDS_ALIGNRIGHT>0
      @__updownbuddy__.move(x+w, y,  @__updownbuddy__.w, h)
    elsif @__updownbuddy__.style&RC::UDS_ALIGNLEFT>0
      @__updownbuddy__.move(x-@__updownbuddy__.w, y, @__updownbuddy__.w, h)
    end
  end
  self
end