Dali 3D User Interface Engine
Functions | Variables
Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp} Namespace Reference

Functions

BaseHandle Create ()
 Creation function for main Popup type. More...
 
BaseHandle CreateToast ()
 Creation function for named type "popupToast". More...
 

Variables

const int DEFAULT_TOAST_AUTO_HIDE_DELAY = 3000
 Toast will auto-hide after 3000ms (3 seconds) More...
 
const float DEFAULT_TOAST_TRANSITION_TIME = 0.65f
 Default time the toast Popup will take to show and hide. More...
 
const Vector3 DEFAULT_TOAST_BOTTOM_PARENT_ORIGIN (0.5f, 0.94f, 0.5f)
 This is similar to BOTTOM_CENTER, but vertically higher up, as a ratio of parent height. More...
 
const Vector3 DEFAULT_TOAST_WIDTH_OF_STAGE_RATIO (0.75f, 0.75f, 0.75f)
 Amount of the stage's width that the toast popup will take up. More...
 
TypeRegistration typeRegistrationToast ("PopupToast", typeid(Toolkit::Popup), CreateToast)
 
const Scripting::StringEnum DisplayStateTable []
 
const unsigned int DisplayStateTableCount = sizeof( DisplayStateTable ) / sizeof( DisplayStateTable[0] )
 
const Scripting::StringEnum AnimationModeTable []
 
const unsigned int AnimationModeTableCount = sizeof( AnimationModeTable ) / sizeof( AnimationModeTable[0] )
 
const Scripting::StringEnum ContextualModeTable []
 
const unsigned int ContextualModeTableCount = sizeof( ContextualModeTable ) / sizeof( ContextualModeTable[0] )
 
const Vector3 DEFAULT_POPUP_PARENT_RELATIVE_SIZE (0.75f, 1.0f, 1.0f)
 Default size percentage of parent. More...
 
const float DEFAULT_POPUP_ANIMATION_DURATION = 0.6f
 Duration of hide/show animations. More...
 
const float POPUP_OUT_MARGIN_WIDTH = 16.f
 Space between the screen edge and the popup edge in the horizontal dimension. More...
 
const float POPUP_OUT_MARGIN_HEIGHT = 36.f
 Space between the screen edge and the popup edge in the vertical dimension. More...
 
const Vector3 DEFAULT_TAIL_POSITION (0.5f, 1.0f, 0.0f)
 Position the tail will be displayed when enabled without setting the position. More...
 
const Vector2 DEFAULT_CONTEXTUAL_ADJACENCY_MARGIN (10.0f, 10.0f)
 How close the Popup will be to it's contextual parent. More...
 
const Vector2 DEFAULT_CONTEXTUAL_STAGE_BORDER (15.0f, 15.0f)
 How close the Popup can be to the stage edges. More...
 
const char * DEFAULT_BACKGROUND_IMAGE_PATH = DALI_IMAGE_DIR "00_popup_bg.9.png"
 Background image. More...
 
const char * DEFAULT_TAIL_UP_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_up.png"
 Tail up image. More...
 
const char * DEFAULT_TAIL_DOWN_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_down.png"
 Tail down image. More...
 
const char * DEFAULT_TAIL_LEFT_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_left.png"
 Tail left image. More...
 
const char * DEFAULT_TAIL_RIGHT_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_right.png"
 Tail right image. More...
 
const Vector4 DEFAULT_BACKING_COLOR (0.0f, 0.0f, 0.0f, 0.5f)
 Color of the dimmed backing. More...
 
const Vector3 BACKGROUND_OUTER_BORDER (40.0f, 30.0f, 0.0f)
 External border. More...
 
const Rect< float > DEFAULT_TITLE_PADDING (20.0f, 20.0f, 20.0f, 20.0f)
 Title padding used on popups with content and/or controls (from Tizen GUI UX). More...
 
const Rect< float > DEFAULT_TITLE_ONLY_PADDING (8.0f, 8.0f, 8.0f, 8.0f)
 Title padding used on popups with a title only (like toast popups). More...
 
const Vector3 FOOTER_SIZE (620.0f, 96.0f, 0.0f)
 Default size of the bottom control area. More...
 
const float DEFAULT_RELATIVE_PARENT_WIDTH = 0.75f
 If width is not fixed, relative size to parent is used by default. More...
 

Function Documentation

BaseHandle Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::Create ( )

Creation function for main Popup type.

Returns
Handle to the new popup object.

Definition at line 62 of file popup-impl.cpp.

References Dali::Toolkit::Popup::New().

Here is the call graph for this function:

BaseHandle Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::CreateToast ( )

Variable Documentation

const Scripting::StringEnum Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::AnimationModeTable[]
Initial value:
= {
{ "NONE", Toolkit::Popup::NONE },
{ "ZOOM", Toolkit::Popup::ZOOM },
{ "FADE", Toolkit::Popup::FADE },
{ "CUSTOM", Toolkit::Popup::CUSTOM },
}

Definition at line 162 of file popup-impl.cpp.

Referenced by Dali::Toolkit::Internal::Popup::GetProperty(), and Dali::Toolkit::Internal::Popup::SetProperty().

const unsigned int Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::AnimationModeTableCount = sizeof( AnimationModeTable ) / sizeof( AnimationModeTable[0] )
const Vector3 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::BACKGROUND_OUTER_BORDER(40.0f, 30.0f, 0.0f)
const Scripting::StringEnum Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::ContextualModeTable[]
Initial value:
= {
{ "NON_CONTEXTUAL", Toolkit::Popup::NON_CONTEXTUAL },
{ "ABOVE", Toolkit::Popup::ABOVE },
{ "RIGHT", Toolkit::Popup::RIGHT },
{ "BELOW", Toolkit::Popup::BELOW },
{ "LEFT", Toolkit::Popup::LEFT },
}

Definition at line 169 of file popup-impl.cpp.

Referenced by Dali::Toolkit::Internal::Popup::GetProperty(), and Dali::Toolkit::Internal::Popup::SetProperty().

const unsigned int Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::ContextualModeTableCount = sizeof( ContextualModeTable ) / sizeof( ContextualModeTable[0] )
const char* Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_BACKGROUND_IMAGE_PATH = DALI_IMAGE_DIR "00_popup_bg.9.png"

Background image.

Definition at line 189 of file popup-impl.cpp.

Referenced by Dali::Toolkit::Internal::Popup::OnInitialize().

const Vector4 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_BACKING_COLOR(0.0f, 0.0f, 0.0f, 0.5f)

Color of the dimmed backing.

const Vector2 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_CONTEXTUAL_ADJACENCY_MARGIN(10.0f, 10.0f)

How close the Popup will be to it's contextual parent.

Referenced by Dali::Toolkit::Internal::Popup::LayoutContext().

const Vector2 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_CONTEXTUAL_STAGE_BORDER(15.0f, 15.0f)

How close the Popup can be to the stage edges.

Referenced by Dali::Toolkit::Internal::Popup::LayoutContext().

const float Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_POPUP_ANIMATION_DURATION = 0.6f

Duration of hide/show animations.

Definition at line 179 of file popup-impl.cpp.

const Vector3 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_POPUP_PARENT_RELATIVE_SIZE(0.75f, 1.0f, 1.0f)

Default size percentage of parent.

Referenced by Dali::Toolkit::Internal::Popup::OnInitialize().

const float Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_RELATIVE_PARENT_WIDTH = 0.75f

If width is not fixed, relative size to parent is used by default.

Definition at line 200 of file popup-impl.cpp.

Referenced by Dali::Toolkit::Internal::Popup::OnInitialize().

const char* Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TAIL_DOWN_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_down.png"

Tail down image.

Definition at line 191 of file popup-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TAIL_LEFT_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_left.png"

Tail left image.

Definition at line 192 of file popup-impl.cpp.

const Vector3 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TAIL_POSITION(0.5f, 1.0f, 0.0f)

Position the tail will be displayed when enabled without setting the position.

const char* Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TAIL_RIGHT_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_right.png"

Tail right image.

Definition at line 193 of file popup-impl.cpp.

const char* Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TAIL_UP_IMAGE_PATH = DALI_IMAGE_DIR "popup_tail_up.png"

Tail up image.

Definition at line 190 of file popup-impl.cpp.

const Rect<float> Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TITLE_ONLY_PADDING(8.0f, 8.0f, 8.0f, 8.0f)

Title padding used on popups with a title only (like toast popups).

Referenced by Dali::Toolkit::Internal::Popup::LayoutPopup().

const Rect<float> Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TITLE_PADDING(20.0f, 20.0f, 20.0f, 20.0f)

Title padding used on popups with content and/or controls (from Tizen GUI UX).

Referenced by Dali::Toolkit::Internal::Popup::LayoutPopup(), and Dali::Toolkit::Internal::Popup::SetTitle().

const int Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TOAST_AUTO_HIDE_DELAY = 3000

Toast will auto-hide after 3000ms (3 seconds)

Definition at line 68 of file popup-impl.cpp.

const Vector3 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TOAST_BOTTOM_PARENT_ORIGIN(0.5f, 0.94f, 0.5f)

This is similar to BOTTOM_CENTER, but vertically higher up, as a ratio of parent height.

Referenced by CreateToast().

const float Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TOAST_TRANSITION_TIME = 0.65f

Default time the toast Popup will take to show and hide.

Definition at line 69 of file popup-impl.cpp.

const Vector3 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DEFAULT_TOAST_WIDTH_OF_STAGE_RATIO(0.75f, 0.75f, 0.75f)

Amount of the stage's width that the toast popup will take up.

Referenced by CreateToast().

const Scripting::StringEnum Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DisplayStateTable[]
Initial value:
= {
{ "SHOWING", Toolkit::Popup::SHOWING },
{ "SHOWN", Toolkit::Popup::SHOWN },
{ "HIDING", Toolkit::Popup::HIDING },
{ "HIDDEN", Toolkit::Popup::HIDDEN },
}

Definition at line 155 of file popup-impl.cpp.

Referenced by Dali::Toolkit::Internal::Popup::GetProperty(), and Dali::Toolkit::Internal::Popup::SetProperty().

const unsigned int Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::DisplayStateTableCount = sizeof( DisplayStateTable ) / sizeof( DisplayStateTable[0] )
const Vector3 Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::FOOTER_SIZE(620.0f, 96.0f, 0.0f)

Default size of the bottom control area.

const float Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::POPUP_OUT_MARGIN_HEIGHT = 36.f

Space between the screen edge and the popup edge in the vertical dimension.

Definition at line 181 of file popup-impl.cpp.

const float Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::POPUP_OUT_MARGIN_WIDTH = 16.f

Space between the screen edge and the popup edge in the horizontal dimension.

Definition at line 180 of file popup-impl.cpp.

TypeRegistration Dali::Toolkit::Internal::anonymous_namespace{popup-impl.cpp}::typeRegistrationToast("PopupToast", typeid(Toolkit::Popup), CreateToast)
Dali Docs Home
Read more about Dali