libfort
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
fort::property_owner< table > Class Template Reference

#include <fort.hpp>

Inheritance diagram for fort::property_owner< table >:
Inheritance graph
[legend]
Collaboration diagram for fort::property_owner< table >:
Collaboration graph
[legend]

Public Member Functions

 property_owner (std::size_t row_idx, std::size_t coll_idx, table *tbl, bool def=false)
 
bool set_cell_min_width (unsigned value)
 
bool set_cell_text_align (fort::text_align value)
 
bool set_cell_top_padding (unsigned value)
 
bool set_cell_bottom_padding (unsigned value)
 
bool set_cell_left_padding (unsigned value)
 
bool set_cell_right_padding (unsigned value)
 
bool set_cell_row_type (fort::row_type value)
 
bool set_cell_empty_str_height (unsigned value)
 
bool set_cell_content_fg_color (fort::color value)
 
bool set_cell_bg_color (fort::color value)
 
bool set_cell_content_bg_color (fort::color value)
 
bool set_cell_text_style (fort::text_style value)
 
bool set_cell_content_text_style (fort::text_style value)
 

Protected Member Functions

bool set_property (uint32_t property, int value)
 

Protected Attributes

std::size_t ps_row_idx_
 
std::size_t ps_coll_idx_
 
tableps_table_
 
bool set_default_properties_
 

Detailed Description

template<typename table>
class fort::property_owner< table >

Property owner.

property_owner is a base class for all objects (table, row, column, cell) for which user can specify properties.

Member Function Documentation

template<typename table>
bool fort::property_owner< table >::set_cell_bg_color ( fort::color  value)
inline

Set cell background color for the specified cell of the table.

Parameters
valueColor.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Cell background color

template<typename table>
bool fort::property_owner< table >::set_cell_bottom_padding ( unsigned  value)
inline

Set bottom padding for the specified cell of the table.

Parameters
valueValue of the bottom padding.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Bottom padding for cell content

template<typename table>
bool fort::property_owner< table >::set_cell_content_bg_color ( fort::color  value)
inline

Set content background color for the specified cell of the table.

Parameters
valueColor.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Cell content background color

template<typename table>
bool fort::property_owner< table >::set_cell_content_fg_color ( fort::color  value)
inline

Set content foreground color for the specified cell of the table.

Parameters
valueColor.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Cell content foreground text color

template<typename table>
bool fort::property_owner< table >::set_cell_content_text_style ( fort::text_style  value)
inline

Set content text style for the specified cell of the table.

Parameters
valueText style.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Cell content text style

template<typename table>
bool fort::property_owner< table >::set_cell_empty_str_height ( unsigned  value)
inline

Set empty string height for the specified cell of the table.

Parameters
valueValue of the empty string height.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Height of empty cell

template<typename table>
bool fort::property_owner< table >::set_cell_left_padding ( unsigned  value)
inline

Set left padding for the specified cell of the table.

Parameters
valueValue of the left padding.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Left padding for cell content

template<typename table>
bool fort::property_owner< table >::set_cell_min_width ( unsigned  value)
inline

Set min width for the specified cell of the table.

Parameters
valueValue of the min width.
Returns
  • true: Success; cell property was changed.
  • false: In case of error

< Minimum width

template<typename table>
bool fort::property_owner< table >::set_cell_right_padding ( unsigned  value)
inline

Set right padding for the specified cell of the table.

Parameters
valueValue of the left padding.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Right padding for cell content

template<typename table>
bool fort::property_owner< table >::set_cell_row_type ( fort::row_type  value)
inline

Set row type for the specified cell of the table.

Parameters
valueValue of the row type.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Row type

template<typename table>
bool fort::property_owner< table >::set_cell_text_align ( fort::text_align  value)
inline

Set text alignment for the specified cell of the table.

Parameters
valueValue of the text alignment.
Returns
  • true: Success; cell property was changed.
  • false: In case of error

< Text alignment

template<typename table>
bool fort::property_owner< table >::set_cell_text_style ( fort::text_style  value)
inline

Set cell text style for the specified cell of the table.

Parameters
valueText style.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Cell text style

template<typename table>
bool fort::property_owner< table >::set_cell_top_padding ( unsigned  value)
inline

Set top padding for the specified cell of the table.

Parameters
valueValue of the top padding.
Returns
  • true: Success; cell property was changed.
  • false: In case of error.

< Top padding for cell content


The documentation for this class was generated from the following file: