View Source Imglab.Position (imglab v0.3.0)
Provides a set of macros to specify position parameter values.
Link to this section Summary
Functions
Returns a position as string.
Returns a position as string specified with horizontal and vertical values
Link to this section Functions
Returns a position as string.
examples
Examples
iex> Imglab.Position.position("left")
"left"
iex> Imglab.Position.position("bottom")
"bottom"
iex> Imglab.Position.position("right")
"right"
Returns a position as string specified with horizontal and vertical values:
iex> Imglab.Position.position("left", "bottom")
"left,bottom"
iex> Imglab.Position.position("center", "middle")
"center,middle"
iex> Imglab.Position.position("right", "top")
"right,top"
Or specified with vertical and horizontal values:
iex> Imglab.Position.position("bottom", "left")
"bottom,left"
iex> Imglab.Position.position("middle", "center")
"middle,center"
iex> Imglab.Position.position("top", "right")
"top,right"