(call! obj k & args)
Calls method k
of obj
with args
.
(call! "I'm a string" :index-of "s")
Calls method `k` of `obj` with `args`. (call! "I'm a string" :index-of "s")
(calls! obj & args)
Calls methods on obj
.
(calls! (java.util.ArrayList.) :add "I'm a string" :add "So am I")
Calls methods on `obj`. (calls! (java.util.ArrayList.) :add "I'm a string" :add "So am I")
(fields! obj & args)
Sets fields on obj
(it is important that obj
is a symbol, because when
the macro expands it will use it several times, and you probably don't want a
new object to be created each time a field is set).
(fields! obj
:active true
:angle 2
:awake true
:fixed-rotation false)
Sets fields on `obj` (it is important that `obj` is a symbol, because when the macro expands it will use it several times, and you probably don't want a new object to be created each time a field is set). (fields! obj :active true :angle 2 :awake true :fixed-rotation false)
(gdx & args)
Returns a fully-qualified libGDX symbol.
Returns a fully-qualified libGDX symbol.
(gdx-array clj-arr & options)
Returns an Array.
(gdx-array [1 2 3 4])
Returns an [Array](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/utils/Array.html). (gdx-array [1 2 3 4])
(gdx-array! object k & options)
Calls a single method on a gdx-array
.
Calls a single method on a `gdx-array`.
(gdx-array-map clj-map & options)
Returns an ArrayMap.
(gdx-array-map {:key-1 1 :key-2 2})
Returns an [ArrayMap](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/utils/ArrayMap.html). (gdx-array-map {:key-1 1 :key-2 2})
(gdx-array-map! object k & options)
Calls a single method on a gdx-array-map
.
Calls a single method on a `gdx-array-map`.
(gdx-class & args)
Returns a fully-qualified libGDX static class.
Returns a fully-qualified libGDX static class.
(gdx-field & args)
Returns a fully-qualified libGDX static method or field.
Returns a fully-qualified libGDX static method or field.
(key->camel k)
Returns a string based on keyword k
with camel case and no delimiters.
Returns a string based on keyword `k` with camel case and no delimiters.
(key->method k)
Returns a symbol based on keyword k
formatted as a method call.
Returns a symbol based on keyword `k` formatted as a method call.
(key->pascal k)
Returns a string based on keyword k
with pascal case and no delimiters.
Returns a string based on keyword `k` with pascal case and no delimiters.
(key->upper k)
Returns a string based on keyword k
with upper case and underscores.
Returns a string based on keyword `k` with upper case and underscores.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close