Dali 3D User Interface Engine
Namespaces | Functions | Variables
utc-Dali-TextEditor.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <dali/devel-api/rendering/renderer.h>
#include <dali/integration-api/events/key-event-integ.h>
#include <dali/integration-api/events/tap-gesture-event.h>
#include <dali-toolkit-test-suite-utils.h>
#include <dali-toolkit/dali-toolkit.h>
#include <dali-toolkit/devel-api/controls/text-controls/text-editor.h>
#include <dali-toolkit/devel-api/styling/style-manager.h>
Include dependency graph for utc-Dali-TextEditor.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{utc-Dali-TextEditor.cpp}
 

Functions

void dali_texteditor_startup (void)
 
void dali_texteditor_cleanup (void)
 
static void anonymous_namespace{utc-Dali-TextEditor.cpp}::TestTextChangedCallback (TextEditor control)
 
Integration::TapGestureEvent anonymous_namespace{utc-Dali-TextEditor.cpp}::GenerateTap (Gesture::State state, unsigned int numberOfTaps, unsigned int numberOfTouches, Vector2 point)
 
Integration::KeyEvent anonymous_namespace{utc-Dali-TextEditor.cpp}::GenerateKey (const std::string &keyName, const std::string &keyString, int keyCode, int keyModifier, unsigned long timeStamp, const Integration::KeyEvent::State &keyState)
 
int UtcDaliToolkitTextEditorConstructorP (void)
 
int UtcDaliToolkitTextEditorNewP (void)
 
int UtcDaliToolkitTextEditorDownCastP (void)
 
int UtcDaliToolkitTextEditorDownCastN (void)
 
int UtcDaliToolkitTextEditorCopyConstructorP (void)
 
int UtcDaliToolkitTextEditorAssignmentOperatorP (void)
 
int UtcDaliTextEditorNewP (void)
 
int UtcDaliTextEditorGetPropertyP (void)
 
bool SetPropertyMapRetrieved (TextEditor &editor, const Property::Index property, const std::string mapKey, const std::string mapValue)
 
int UtcDaliTextEditorSetPropertyP (void)
 
int utcDaliTextEditorAtlasRenderP (void)
 
int utcDaliTextEditorTextChangedP (void)
 
int utcDaliTextEditorEvent01 (void)
 
int utcDaliTextEditorEvent02 (void)
 
int utcDaliTextEditorEvent03 (void)
 

Variables

const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_RENDERING_BACKEND = "renderingBackend"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_TEXT = "text"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_TEXT_COLOR = "textColor"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_FONT_FAMILY = "fontFamily"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_FONT_STYLE = "fontStyle"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_POINT_SIZE = "pointSize"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_HORIZONTAL_ALIGNMENT = "horizontalAlignment"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SCROLL_THRESHOLD = "scrollThreshold"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SCROLL_SPEED = "scrollSpeed"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_PRIMARY_CURSOR_COLOR = "primaryCursorColor"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SECONDARY_CURSOR_COLOR = "secondaryCursorColor"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_ENABLE_CURSOR_BLINK = "enableCursorBlink"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_CURSOR_BLINK_INTERVAL = "cursorBlinkInterval"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_CURSOR_BLINK_DURATION = "cursorBlinkDuration"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_CURSOR_WIDTH = "cursorWidth"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_GRAB_HANDLE_IMAGE = "grabHandleImage"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_GRAB_HANDLE_PRESSED_IMAGE = "grabHandlePressedImage"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_IMAGE_LEFT = "selectionHandleImageLeft"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_IMAGE_RIGHT = "selectionHandleImageRight"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_LEFT = "selectionHandlePressedImageLeft"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = "selectionHandlePressedImageRight"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_LEFT = "selectionHandleMarkerImageLeft"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_RIGHT = "selectionHandleMarkerImageRight"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HIGHLIGHT_COLOR = "selectionHighlightColor"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_DECORATION_BOUNDING_BOX = "decorationBoundingBox"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_ENABLE_MARKUP = "enableMarkup"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_COLOR = "inputColor"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_FONT_FAMILY = "inputFontFamily"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_FONT_STYLE = "inputFontStyle"
 
const char *const anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_POINT_SIZE = "inputPointSize"
 
const int anonymous_namespace{utc-Dali-TextEditor.cpp}::DEFAULT_RENDERING_BACKEND = Dali::Toolkit::Text::DEFAULT_RENDERING_BACKEND
 
const Dali::Vector4 anonymous_namespace{utc-Dali-TextEditor.cpp}::LIGHT_BLUE (0.75f, 0.96f, 1.f, 1.f)
 
const unsigned int anonymous_namespace{utc-Dali-TextEditor.cpp}::CURSOR_BLINK_INTERVAL = 500u
 
const float anonymous_namespace{utc-Dali-TextEditor.cpp}::TO_MILLISECONDS = 1000.f
 
const float anonymous_namespace{utc-Dali-TextEditor.cpp}::TO_SECONDS = 1.f / TO_MILLISECONDS
 
const float anonymous_namespace{utc-Dali-TextEditor.cpp}::SCROLL_THRESHOLD = 10.f
 
const float anonymous_namespace{utc-Dali-TextEditor.cpp}::SCROLL_SPEED = 300.f
 
static bool anonymous_namespace{utc-Dali-TextEditor.cpp}::gTextChangedCallBackCalled
 

Function Documentation

void dali_texteditor_cleanup ( void  )

Definition at line 36 of file utc-Dali-TextEditor.cpp.

References test_return_value, and TET_PASS.

void dali_texteditor_startup ( void  )

Definition at line 31 of file utc-Dali-TextEditor.cpp.

References test_return_value, and TET_UNDEF.

bool SetPropertyMapRetrieved ( TextEditor editor,
const Property::Index  property,
const std::string  mapKey,
const std::string  mapValue 
)

Definition at line 252 of file utc-Dali-TextEditor.cpp.

References Dali::Handle::GetProperty(), Dali::Property::Map(), Dali::Handle::SetProperty(), and Dali::Property::Value().

Referenced by UtcDaliTextEditorSetPropertyP(), and UtcDaliTextFieldSetPropertyP().

Here is the call graph for this function:

Here is the caller graph for this function:

int utcDaliTextEditorAtlasRenderP ( void  )
int utcDaliTextEditorEvent01 ( void  )
int utcDaliTextEditorEvent02 ( void  )
int utcDaliTextEditorEvent03 ( void  )
int UtcDaliTextEditorGetPropertyP ( void  )

Definition at line 211 of file utc-Dali-TextEditor.cpp.

References Dali::Toolkit::TextEditor::Property::CURSOR_BLINK_DURATION, Dali::Toolkit::TextEditor::Property::CURSOR_BLINK_INTERVAL, Dali::Toolkit::TextEditor::Property::CURSOR_WIDTH, DALI_TEST_CHECK, Dali::Toolkit::TextEditor::Property::DECORATION_BOUNDING_BOX, Dali::Toolkit::TextEditor::Property::ENABLE_CURSOR_BLINK, Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, END_TEST, Dali::Toolkit::TextEditor::Property::FONT_FAMILY, Dali::Toolkit::TextEditor::Property::FONT_STYLE, Dali::Handle::GetPropertyIndex(), Dali::Toolkit::TextEditor::Property::GRAB_HANDLE_IMAGE, Dali::Toolkit::TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE, Dali::Toolkit::TextEditor::Property::HORIZONTAL_ALIGNMENT, Dali::Toolkit::TextEditor::Property::INPUT_COLOR, Dali::Toolkit::TextEditor::Property::INPUT_FONT_FAMILY, Dali::Toolkit::TextEditor::Property::INPUT_FONT_STYLE, Dali::Toolkit::TextEditor::Property::INPUT_POINT_SIZE, Dali::Toolkit::TextEditor::New(), Dali::Toolkit::TextEditor::Property::POINT_SIZE, Dali::Toolkit::TextEditor::Property::PRIMARY_CURSOR_COLOR, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_CURSOR_BLINK_DURATION, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_CURSOR_BLINK_INTERVAL, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_CURSOR_WIDTH, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_DECORATION_BOUNDING_BOX, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_ENABLE_CURSOR_BLINK, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_ENABLE_MARKUP, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_FONT_FAMILY, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_FONT_STYLE, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_GRAB_HANDLE_IMAGE, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_GRAB_HANDLE_PRESSED_IMAGE, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_HORIZONTAL_ALIGNMENT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_COLOR, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_FONT_FAMILY, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_FONT_STYLE, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_INPUT_POINT_SIZE, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_POINT_SIZE, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_PRIMARY_CURSOR_COLOR, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_RENDERING_BACKEND, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SCROLL_SPEED, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SCROLL_THRESHOLD, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SECONDARY_CURSOR_COLOR, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_IMAGE_LEFT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_IMAGE_RIGHT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_LEFT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_MARKER_IMAGE_RIGHT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_LEFT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_SELECTION_HIGHLIGHT_COLOR, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_TEXT, anonymous_namespace{utc-Dali-TextEditor.cpp}::PROPERTY_NAME_TEXT_COLOR, Dali::Toolkit::TextEditor::Property::RENDERING_BACKEND, Dali::Toolkit::TextEditor::Property::SCROLL_SPEED, Dali::Toolkit::TextEditor::Property::SCROLL_THRESHOLD, Dali::Toolkit::TextEditor::Property::SECONDARY_CURSOR_COLOR, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_IMAGE_LEFT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_IMAGE_RIGHT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_LEFT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_RIGHT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_LEFT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, Dali::Toolkit::TextEditor::Property::SELECTION_HIGHLIGHT_COLOR, tet_infoline(), Dali::Toolkit::TextEditor::Property::TEXT, and Dali::Toolkit::TextEditor::Property::TEXT_COLOR.

Here is the call graph for this function:

int UtcDaliTextEditorNewP ( void  )

Definition at line 201 of file utc-Dali-TextEditor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Toolkit::TextEditor::New(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliTextEditorSetPropertyP ( void  )

Definition at line 271 of file utc-Dali-TextEditor.cpp.

References Dali::Stage::Add(), Dali::Color::BLUE, Dali::Toolkit::TextEditor::Property::CURSOR_BLINK_DURATION, Dali::Toolkit::TextEditor::Property::CURSOR_BLINK_INTERVAL, Dali::Toolkit::TextEditor::Property::CURSOR_WIDTH, DALI_TEST_CHECK, DALI_TEST_EQUALS(), Dali::Toolkit::TextEditor::Property::DECORATION_BOUNDING_BOX, Dali::Toolkit::TextEditor::Property::ENABLE_CURSOR_BLINK, Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, END_TEST, Dali::Toolkit::TextEditor::Property::FONT_FAMILY, Dali::Toolkit::TextEditor::Property::FONT_STYLE, Dali::Stage::GetCurrent(), Dali::Handle::GetProperty(), Dali::Toolkit::TextEditor::Property::GRAB_HANDLE_IMAGE, Dali::Toolkit::TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE, Dali::Color::GREEN, Dali::Toolkit::TextEditor::Property::HORIZONTAL_ALIGNMENT, Dali::Toolkit::TextEditor::Property::INPUT_COLOR, Dali::Toolkit::TextEditor::Property::INPUT_FONT_FAMILY, Dali::Toolkit::TextEditor::Property::INPUT_FONT_STYLE, Dali::Toolkit::TextEditor::Property::INPUT_POINT_SIZE, Dali::Math::MACHINE_EPSILON_1000, Dali::Toolkit::TextEditor::New(), Dali::Toolkit::TextEditor::Property::POINT_SIZE, Dali::Toolkit::TextEditor::Property::PRIMARY_CURSOR_COLOR, Dali::Color::RED, Dali::Toolkit::TextEditor::Property::RENDERING_BACKEND, Dali::Toolkit::Text::RENDERING_SHARED_ATLAS, Dali::Toolkit::TextEditor::Property::SCROLL_SPEED, Dali::Toolkit::TextEditor::Property::SCROLL_THRESHOLD, Dali::Toolkit::TextEditor::Property::SECONDARY_CURSOR_COLOR, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_IMAGE_LEFT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_IMAGE_RIGHT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_LEFT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_MARKER_IMAGE_RIGHT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_LEFT, Dali::Toolkit::TextEditor::Property::SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, Dali::Toolkit::TextEditor::Property::SELECTION_HIGHLIGHT_COLOR, Dali::Handle::SetProperty(), SetPropertyMapRetrieved(), TEST_LOCATION, tet_infoline(), Dali::Toolkit::TextEditor::Property::TEXT, Dali::Toolkit::TextEditor::Property::TEXT_COLOR, Dali::Color::WHITE, and Dali::Color::YELLOW.

Here is the call graph for this function:

int utcDaliTextEditorTextChangedP ( void  )
int UtcDaliToolkitTextEditorAssignmentOperatorP ( void  )
int UtcDaliToolkitTextEditorConstructorP ( void  )

Definition at line 129 of file utc-Dali-TextEditor.cpp.

References DALI_TEST_CHECK, END_TEST, and tet_infoline().

Here is the call graph for this function:

int UtcDaliToolkitTextEditorCopyConstructorP ( void  )
int UtcDaliToolkitTextEditorDownCastN ( void  )

Definition at line 162 of file utc-Dali-TextEditor.cpp.

References DALI_TEST_CHECK, Dali::Toolkit::TextEditor::DownCast(), END_TEST, and tet_infoline().

Here is the call graph for this function:

int UtcDaliToolkitTextEditorDownCastP ( void  )

Definition at line 147 of file utc-Dali-TextEditor.cpp.

References DALI_TEST_CHECK, Dali::Toolkit::TextEditor::DownCast(), END_TEST, Dali::Toolkit::TextEditor::New(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliToolkitTextEditorNewP ( void  )

Definition at line 138 of file utc-Dali-TextEditor.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Toolkit::TextEditor::New(), and tet_infoline().

Here is the call graph for this function:

Dali Docs Home
Read more about Dali