Method: TCPDF#GetX

Defined in:
lib/tcpdf.rb

#GetXObject Also known as: get_x

Returns the relative X value of current position. The value is relative to the left border for LTR languages and to the right border for RTL languages.

@return float
@access public
@since 1.2
@see

SetX(), GetY(), SetY()



5153
5154
5155
5156
5157
5158
5159
# File 'lib/tcpdf.rb', line 5153

def GetX()
  if @rtl
    return @w - @x
  else
    return @x
  end
end