Dali 3D User Interface Engine
Classes | Macros | Typedefs | Functions | Variables
utc-image-fitting-modes.cpp File Reference
#include "utc-image-loading-common.h"
#include "platform-abstractions/portable/image-operations.h"
Include dependency graph for utc-image-fitting-modes.cpp:

Go to the source code of this file.

Classes

struct  ImageFittingTestParameters
 

Macros

#define ANSI_BLACK   "\x1B[0m"
 
#define ANSI_RED   "\x1B[31m"
 
#define ANSI_GREEN   "\x1B[32m"
 
#define ANSI_YELLOW   "\x1B[33m"
 
#define ANSI_BLUE   "\x1B[34m"
 
#define ANSI_MAGENTA   "\x1B[35m"
 
#define ANSI_CYAN   "\x1B[36m"
 
#define ANSI_WHITE   "\x1B[37m"
 
#define ANSI_RESET   "\033[0m"
 

Typedefs

typedef unsigned char PixelBuffer
 
typedef Rect< int > ActiveArea
 
typedef std::vector
< ImageFittingTestParameters
TestContainer
 

Functions

void FillBitmap (BitmapPtr bitmap)
 
void PerformFittingTests (TestContainer &tests)
 
int UtcDaliFittingModesFitWidth (void)
 
int UtcDaliFittingModesFitHeight (void)
 
int UtcDaliFittingModesShrinkToFit (void)
 
int UtcDaliFittingModesScaleToFill (void)
 

Variables

const unsigned char BORDER_FILL_VALUE = 0xff
 
const char * ASCII_FILL_VALUE = ANSI_YELLOW "#"
 
const char * ASCII_PAD_VALUE = ANSI_BLUE "#"
 

Macro Definition Documentation

#define ANSI_BLACK   "\x1B[0m"

Definition at line 22 of file utc-image-fitting-modes.cpp.

#define ANSI_BLUE   "\x1B[34m"

Definition at line 26 of file utc-image-fitting-modes.cpp.

#define ANSI_CYAN   "\x1B[36m"

Definition at line 28 of file utc-image-fitting-modes.cpp.

#define ANSI_GREEN   "\x1B[32m"

Definition at line 24 of file utc-image-fitting-modes.cpp.

#define ANSI_MAGENTA   "\x1B[35m"

Definition at line 27 of file utc-image-fitting-modes.cpp.

#define ANSI_RED   "\x1B[31m"

Definition at line 23 of file utc-image-fitting-modes.cpp.

Referenced by PerformFittingTests().

#define ANSI_RESET   "\033[0m"

Definition at line 30 of file utc-image-fitting-modes.cpp.

Referenced by PerformFittingTests().

#define ANSI_WHITE   "\x1B[37m"

Definition at line 29 of file utc-image-fitting-modes.cpp.

#define ANSI_YELLOW   "\x1B[33m"

Definition at line 25 of file utc-image-fitting-modes.cpp.

Referenced by PerformFittingTests().

Typedef Documentation

typedef Rect< int > ActiveArea

Definition at line 49 of file utc-image-fitting-modes.cpp.

typedef unsigned char PixelBuffer

Definition at line 35 of file utc-image-fitting-modes.cpp.

typedef std::vector< ImageFittingTestParameters > TestContainer

Definition at line 78 of file utc-image-fitting-modes.cpp.

Function Documentation

void FillBitmap ( BitmapPtr  bitmap)

Definition at line 38 of file utc-image-fitting-modes.cpp.

References BORDER_FILL_VALUE, Dali::IntrusivePtr< T >::Get(), and Dali::Pixel::GetBytesPerPixel().

Referenced by PerformFittingTests().

Here is the call graph for this function:

Here is the caller graph for this function:

void PerformFittingTests ( TestContainer tests)
int UtcDaliFittingModesFitHeight ( void  )

Definition at line 270 of file utc-image-fitting-modes.cpp.

References END_TEST, Dali::FittingMode::FIT_HEIGHT, PerformFittingTests(), and tet_printf().

Here is the call graph for this function:

int UtcDaliFittingModesFitWidth ( void  )

Definition at line 242 of file utc-image-fitting-modes.cpp.

References END_TEST, Dali::FittingMode::FIT_WIDTH, PerformFittingTests(), and tet_printf().

Here is the call graph for this function:

int UtcDaliFittingModesScaleToFill ( void  )

Definition at line 326 of file utc-image-fitting-modes.cpp.

References END_TEST, PerformFittingTests(), Dali::FittingMode::SCALE_TO_FILL, and tet_printf().

Here is the call graph for this function:

int UtcDaliFittingModesShrinkToFit ( void  )

Definition at line 298 of file utc-image-fitting-modes.cpp.

References END_TEST, PerformFittingTests(), Dali::FittingMode::SHRINK_TO_FIT, and tet_printf().

Here is the call graph for this function:

Variable Documentation

const char* ASCII_FILL_VALUE = ANSI_YELLOW "#"

Definition at line 33 of file utc-image-fitting-modes.cpp.

Referenced by PerformFittingTests().

const char* ASCII_PAD_VALUE = ANSI_BLUE "#"

Definition at line 34 of file utc-image-fitting-modes.cpp.

Referenced by PerformFittingTests().

const unsigned char BORDER_FILL_VALUE = 0xff

Definition at line 32 of file utc-image-fitting-modes.cpp.

Referenced by FillBitmap().

Dali Docs Home
Read more about Dali