std::cout << " : " << style.GetFontPointSize() << std::endl;
std::cout << " : " << style.GetWeight() << std::endl;
std::cout << " : " << style.GetTextColor() << std::endl;
- std::cout << " : " << style.GetItalics() << std::endl;
- std::cout << " : " << style.GetUnderline() << std::endl;
- std::cout << " : " << style.GetShadow() << std::endl;
+ std::cout << " : " << style.IsItalicsEnabled() << std::endl;
+ std::cout << " : " << style.IsUnderlineEnabled() << std::endl;
+ std::cout << " : " << style.IsShadowEnabled() << std::endl;
std::cout << " : " << style.GetShadowColor() << std::endl;
std::cout << " : " << style.GetShadowOffset() << std::endl;
- std::cout << " : " << style.GetGlow() << std::endl;
+ std::cout << " : " << style.IsGlowEnabled() << std::endl;
std::cout << " : " << style.GetGlowColor() << std::endl;
std::cout << " : " << style.GetGlowIntensity() << std::endl;
std::cout << " : " << style.GetSmoothEdge() << std::endl;
- std::cout << " : " << style.GetOutline() << std::endl;
+ std::cout << " : " << style.IsOutlineEnabled() << std::endl;
std::cout << " : " << style.GetOutlineThickness() << std::endl;
}
DALI_TEST_CHECK( a.GetBoolean() == b.GetBoolean() );
break;
}
+ default:
+ {
+ break;
+ }
}
}
DALI_TEST_CHECK(event.keyName == data.receivedKeyEvent.keyPressedName );
DALI_TEST_CHECK(event.keyCode == data.receivedKeyEvent.keyCode);
DALI_TEST_CHECK(event.keyString == data.receivedKeyEvent.keyPressed );
- DALI_TEST_CHECK(event.state == data.receivedKeyEvent.state );
+ DALI_TEST_CHECK(static_cast<int>( event.state ) == static_cast<int>( data.receivedKeyEvent.state ) );
data.Reset();
static bool gOnScrollStartCalled; ///< Whether the OnScrollStart signal was invoked.
static bool gOnScrollUpdateCalled; ///< Whether the OnScrollUpdate signal was invoked.
static bool gOnScrollCompleteCalled; ///< Whether the OnScrollComplete signal was invoked.
-static bool gOnScrollClampedCalled; ///< Whether the OnScrollClamped signal was invoked.
static bool gOnSnapStartCalled; ///< Whether the OnSnapStart signal was invoked.
-static ClampState3 gLastClampPosition; ///< Clamping information from OnScrollClampedEvent.
static SnapType gLastSnapType; ///< Snaping information from SnapEvent.
static Vector3 gConstraintResult; ///< Result from constraint.
}
/**
- * Invoked when scrolling clamped.
- *
- * @param[in] event The position/scale/rotation axes that were clamped.
- */
-static void OnScrollClamped( const ScrollView::ClampEvent& event )
-{
- gOnScrollClampedCalled = true;
- gLastClampPosition = event.position;
-}
-
-/**
* Invoked when a snap or flick started.
*
* @param[in] event The type of snap and the target position/scale/rotation.
TextStyle retreivedStyleAtCursor = textInput.GetStyleAtCursor();
DALI_TEST_CHECK( style == retreivedStyleAtCursor );
- DALI_TEST_CHECK( !retreivedStyleAtCursor.GetItalics() );
+ DALI_TEST_CHECK( !retreivedStyleAtCursor.IsItalicsEnabled() );
tet_infoline("Set style before adding new character");
style.SetItalics( true );
tet_infoline("Confirm style at cursor is correct style");
retreivedStyleAtCursor = textInput.GetStyleAtCursor();
- DALI_TEST_CHECK( retreivedStyleAtCursor.GetItalics() );
+ DALI_TEST_CHECK( retreivedStyleAtCursor.IsItalicsEnabled() );
tet_infoline("Confirm style at cursor is not a style that was not set");
- DALI_TEST_CHECK( !retreivedStyleAtCursor.GetUnderline() );
+ DALI_TEST_CHECK( !retreivedStyleAtCursor.IsUnderlineEnabled() );
tet_infoline("Confirm markup text is correct");
DALI_TEST_EQUALS( styledString, textInput.GetMarkupText(), TEST_LOCATION);
// INTERNAL INCLUDES
#include <dali/public-api/dali-core.h>
-#include <dali/public-api/dali-core-capi-internal.h>
#include <stdarg.h>
void tet_infoline(const char*str);
#include <map>
// INTERNAL INCLUDES
-#include <dali/public-api/dali-core-capi-internal.h>
#include <dali/public-api/dali-core.h>
#include <dali/integration-api/core.h>
#include <dali/integration-api/gl-abstraction.h>
const Dali::TouchPoint pointDownOutside( 0, TouchPoint::Down, 10, 10 );
const Dali::TouchPoint pointUpOutside( 0, TouchPoint::Up, 10, 10 );
-static bool gOnTouchPointInterrupted = false;
-
-
Image CreateSolidColorImage( const Vector4& color, unsigned int width, unsigned int height )
{
BitmapImage imageData = BitmapImage::New( width, height, Pixel::RGBA8888 );
namespace
{
-static bool gObjectCreatedCallBackCalled;
-
-static void TestCallback(BaseHandle handle)
-{
- gObjectCreatedCallBackCalled = true;
-}
const int MILLISECONDS_PER_SECOND = 1000;
const int RENDER_FRAME_INTERVAL = 16; ///< Duration of each frame in ms. (at approx 60FPS)
static bool gOnScrollStartCalled; ///< Whether the OnScrollStart signal was invoked.
static bool gOnScrollUpdateCalled; ///< Whether the OnScrollUpdate signal was invoked.
static bool gOnScrollCompleteCalled; ///< Whether the OnScrollComplete signal was invoked.
-static bool gOnScrollClampedCalled; ///< Whether the OnScrollClamped signal was invoked.
-static bool gOnSnapStartCalled; ///< Whether the OnSnapStart signal was invoked.
-static ClampState3 gLastClampPosition; ///< Clamping information from OnScrollClampedEvent.
-static SnapType gLastSnapType; ///< Snaping information from SnapEvent.
static Vector3 gConstraintResult; ///< Result from constraint.
static ActorContainer gPages; ///< Keeps track of all the pages for applying effects.
gOnScrollCompleteCalled = true;
}
-/**
- * Invoked when scrolling clamped.
- *
- * @param[in] event The position/scale/rotation axes that were clamped.
- */
-static void OnScrollClamped( const ScrollView::ClampEvent& event )
-{
- gOnScrollClampedCalled = true;
- gLastClampPosition = event.position;
-}
-
-/**
- * Invoked when a snap or flick started.
- *
- * @param[in] event The type of snap and the target position/scale/rotation.
- */
-static void OnSnapStart( const ScrollView::SnapEvent& event )
-{
- gOnSnapStartCalled = true;
- gLastSnapType = event.type;
-}
-
ScrollView SetupTestScrollView(int rows, int columns, Vector2 size)
{
ScrollView scrollView = ScrollView::New();