* | cellHorizontalAlignment | string |
* | cellVerticalAlignment | string |
*
- * The row-span or column span has integer value, but its type is float here due to the limitation of the builder's ability to differentiate integer and float from Json string.
+ * The rowSpan or columnSpan has integer value, but its type is float here due to the limitation of the builder's ability to differentiate integer and float from Json string.
* The available values for cellHorizontalAlignment are: left, center, right.
* The available values for cellVerticalAlignment are: top, center, bottom.
*
* @code
* "name":"gallery1",
- * "type":"ImageActor",
+ * "type":"ImageView",
* "image": {
- * "filename": "{DALI_IMAGE_DIR}gallery-small-1.jpg"
+ * "url": "{DALI_IMAGE_DIR}gallery-small-1.jpg"
* },
- * "customProperties": {
+ * "properties": {
* "cellIndex":[1,1], // property to specify the top-left cell this child occupies, if not set, the first available cell is used
* "rowSpan":3, // property to specify how many rows this child occupies, if not set, default value is 1
* "columnSpan": 2, // property to specify how many columns this child occupies, if nor set, default value is 1
enum PropertyRange
{
PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< @SINCE_1_0.0
- PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices @SINCE_1_0.0
+ PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000, ///< Reserve property indices @SINCE_1_0.0
+
+ CHILD_PROPERTY_START_INDEX = CHILD_PROPERTY_REGISTRATION_START_INDEX, ///< @SINCE_1_1.36
+ CHILD_PROPERTY_END_INDEX = CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000 ///< Reserve child property indices @SINCE_1_1.36
};
/**
* }
* @endcode
*
- * LayoutColumns: set the height of the rows.
+ * LayoutColumns: set the width of the columns.
* It has the format as follows in script:
* @code
* "layoutColumns":
};
/**
+ * @brief An enumeration of child properties belonging to the TableView class.
+ * @SINCE_1_1.36
+ */
+ struct ChildProperty
+ {
+ enum
+ {
+ CELL_INDEX = CHILD_PROPERTY_START_INDEX, ///< name "cellIndex", The top-left cell this child occupies, if not set, the first available cell is used, type VECTOR2 @SINCE_1_1.36
+ ROW_SPAN, ///< name "rowSpan", The number of rows this child occupies, if not set, default value is 1, type FLOAT @SINCE_1_1.36
+ COLUMN_SPAN, ///< name "columnSpan", The number of columns this child occupies, if not set, default value is 1, type FLOAT @SINCE_1_1.36
+ CELL_HORIZONTAL_ALIGNMENT, ///< name "cellHorizontalAlignment", The horizontal alignment of this child inside the cells, if not set, default value is 'left', type STRING @SINCE_1_1.36
+ CELL_VERTICAL_ALIGNMENT ///< name "cellVerticalAlignment", The vertical alignment of this child inside the cells, if not set, default value is 'top', type STRING @SINCE_1_1.36
+ };
+ };
+
+ /**
* @brief Describes how the size of a row / column been set
* @SINCE_1_0.0
*/
/**
* @brief Constructor to initialise values to defaults for convenience
* @SINCE_1_0.0
+ * @param[in] rowIndex The row index initialized
+ * @param[in] columnIndex The column index initialized
+ * @param[in] rowSpan The row span initialized
+ * @param[in] columnSpan The column span initialized
*/
CellPosition( unsigned int rowIndex = 0, unsigned int columnIndex = 0,
unsigned int rowSpan = 1, unsigned int columnSpan = 1 )
/**
* @brief Copy constructor. Creates another handle that points to the same real object
* @SINCE_1_0.0
- * @param handle to copy from
+ * @param[in] handle to copy from
*/
TableView( const TableView& handle );
/**
* @brief Assignment operator. Changes this handle to point to another real object
* @SINCE_1_0.0
+ * @param[in] handle Handle to an object
+ * @return A reference to this
*/
TableView& operator=( const TableView& handle );
/**
* @brief Gets a row's fixed height.
* @SINCE_1_0.0
+ * @param[in] rowIndex The row index with fixed height
* @return height in world coordinate units.
* @pre The row rowIndex must exist.
* @note The returned value is valid if it has been set before.
/**
* @brief Gets a row's relative height.
* @SINCE_1_0.0
+ * @param[in] rowIndex The row index with relative height
* @return height in percentage units, between 0.0f and 1.0f.
* @pre The row rowIndex must exist.
* @note The returned value is valid if it has been set before.
/**
* @brief Gets a column's fixed width.
* @SINCE_1_0.0
+ * @param[in] columnIndex The column index with fixed width
* @return width in world coordinate units.
* @pre The column columnIndex must exist.
* @note The returned value is valid if it has been set before.
/**
* @brief Gets a column's relative width.
* @SINCE_1_0.0
+ * @param[in] columnIndex The column index with relative width
* @return width in percentage units, between 0.0f and 1.0f.
* @pre The column columnIndex must exist.
* @note The returned value is valid if it has been set before.
public: // Not intended for application developers
+ /// @cond internal
/**
* @brief Creates a handle using the Toolkit::Internal implementation.
* @SINCE_1_0.0
* @param[in] internal A pointer to the internal CustomActor.
*/
explicit DALI_INTERNAL TableView( Dali::Internal::CustomActor* internal );
+ /// @endcond
};
/**