![]() |
Cinder
0.9.1
|
#include <AppCocoaTouch.h>
Public Member Functions | |
KeyboardOptions () | |
KeyboardOptions & | initialString (const std::string &str) |
KeyboardOptions & | type (KeyboardType type) |
KeyboardOptions & | closeOnReturn (bool enable) |
const std::string & | getInitialString () const |
KeyboardType | getType () const |
bool | getCloseOnReturn () const |
Optional params passed to showKeyboard();.
cinder::app::AppCocoaTouch::KeyboardOptions::KeyboardOptions | ( | ) |
KeyboardOptions& cinder::app::AppCocoaTouch::KeyboardOptions::initialString | ( | const std::string & | str | ) |
Sets the initial value of the keyboard string. Default is an empty string.
KeyboardOptions& cinder::app::AppCocoaTouch::KeyboardOptions::type | ( | KeyboardType | type | ) |
Sets the keyboard layout type to . Default is KeyboardType::DEFAULT.
KeyboardOptions& cinder::app::AppCocoaTouch::KeyboardOptions::closeOnReturn | ( | bool | enable | ) |
Sets whether the keyboard closes (hides) when the return key is entered. Default is true
.
const std::string& cinder::app::AppCocoaTouch::KeyboardOptions::getInitialString | ( | ) | const |
Returns the keyboard's initial string.
KeyboardType cinder::app::AppCocoaTouch::KeyboardOptions::getType | ( | ) | const |
Returns the keyboard layout type.
bool cinder::app::AppCocoaTouch::KeyboardOptions::getCloseOnReturn | ( | ) | const |
Returns whether the keyboard closes (hides) when the return key is entered.