neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_item_presentation_model< ItemModel > Class Template Reference

#include <item_presentation_model.hpp>

Inheritance diagram for neogfx::basic_item_presentation_model< ItemModel >:
neogfx::object< reference_counted< i_item_presentation_model > > neolib::object< Base > neogfx::i_properties neolib::lifetime< Base > neolib::i_lifetime neogfx::DesignStudio::widget_property_presentation_model neogfx::default_drop_list_presentation_model< ItemModel >

Public Member Functions

 define_declared_event (VisualAppearanceChanged, visual_appearance_changed) define_declared_event(ColumnInfoChanged
 
item_presentation_model_index::column_type define_declared_event (ItemModelChanged, item_model_changed, const i_item_model &) define_declared_event(ItemAdded
 
item_presentation_model_index::column_type item_presentation_model_index const & define_declared_event (ItemChanged, item_changed, item_presentation_model_index const &) define_declared_event(ItemRemoving
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const & define_declared_event (ItemRemoved, item_removed, item_presentation_model_index const &) define_declared_event(ItemExpanding
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & define_declared_event (ItemCollapsing, item_collapsing, item_presentation_model_index const &) define_declared_event(ItemExpanded
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & define_declared_event (ItemCollapsed, item_collapsed, item_presentation_model_index const &) define_declared_event(ItemToggled
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & define_declared_event (ItemChecked, item_checked, item_presentation_model_index const &) define_declared_event(ItemUnchecked
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & define_declared_event (ItemIndeterminate, item_indeterminate, item_presentation_model_index const &) define_declared_event(ItemsUpdating
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating define_declared_event (ItemsUpdated, items_updated) define_declared_event(ItemsSorting
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting define_declared_event (ItemsSorted, items_sorted) define_declared_event(ItemsFiltering
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering define_declared_event (ItemsFiltered, items_filtered) define_declared_event(DraggingItem
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const & define_declared_event (DraggingItemRenderInfo, dragging_item_render_info, i_drag_drop_item const &, bool &, size &) define_declared_event(DraggingItemRender
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const i_drag_drop_item const i_graphics_context point const & define_declared_event (DraggingItemCancelled, dragging_item_cancelled, i_drag_drop_item const &) define_declared_event(ItemDropped
 
 basic_item_presentation_model (bool aSortable=false)
 
 basic_item_presentation_model (i_item_model &aItemModel, bool aSortable=false)
 
 ~basic_item_presentation_model ()
 
bool metrics_available () const
 
bool attached () const final
 
i_widgetattachment () const final
 
void attach (i_ref_ptr< i_widget > const &aWidget) final
 
void detach () final
 
bool updating () const final
 
void begin_update () final
 
void end_update () final
 
bool has_item_model () const final
 
item_model_type & item_model () const final
 
void set_item_model (i_item_model &aItemModel) final
 
item_model_index to_item_model_index (item_presentation_model_index const &aIndex) const final
 
bool has_item_model_index (item_model_index const &aIndex) const final
 
item_presentation_model_index from_item_model_index (item_model_index const &aIndex, bool aIgnoreColumn=false) const final
 
uint32_t rows () const final
 
uint32_t columns () const final
 
uint32_t columns (item_presentation_model_index const &aIndex) const final
 
void accept (i_meta_visitor &aVisitor, bool aIgnoreCollapsedState=false) final
 
dimension column_width (item_presentation_model_index::column_type aColumnIndex, i_units_context const &aUnitsContext, bool aExtendIntoPadding=true) const override
 
std::string const & column_heading_text (item_presentation_model_index::column_type aColumnIndex) const override
 
size column_heading_extents (item_presentation_model_index::column_type aColumnIndex, i_units_context const &aUnitsContext) const override
 
void set_column_heading_text (item_presentation_model_index::column_type aColumnIndex, std::string const &aHeadingText) final
 
item_cell_flags column_flags (item_presentation_model_index::column_type aColumnIndex) const override
 
void set_column_flags (item_presentation_model_index::column_type aColumnIndex, item_cell_flags aFlags) final
 
optional_size column_image_size (item_presentation_model_index::column_type aColumnIndex) const override
 
void set_column_image_size (item_presentation_model_index::column_type aColumnIndex, optional_size const &aImageSize) final
 
bool expand (item_presentation_model_index const &aIndex) final
 
bool collapse (item_presentation_model_index const &aIndex) final
 
bool toggle_expanded (item_presentation_model_index const &aIndex) final
 
bool expand_to (item_model_index const &aIndex) final
 
const button_checked_state & checked_state (item_presentation_model_index const &aIndex) final
 
bool is_checked (item_presentation_model_index const &aIndex) const final
 
bool is_unchecked (item_presentation_model_index const &aIndex) const final
 
bool is_indeterminate (item_presentation_model_index const &aIndex) const final
 
void set_checked_state (item_presentation_model_index const &aIndex, button_checked_state const &aState) final
 
void check (item_presentation_model_index const &aIndex) final
 
void uncheck (item_presentation_model_index const &aIndex) final
 
void set_indeterminate (item_presentation_model_index const &aIndex) final
 
void set_checked (item_presentation_model_index const &aIndex, bool aChecked) final
 
void toggle_check (item_presentation_model_index const &aIndex) final
 
const font & default_font () const final
 
void set_default_font (optional_font const &aDefaultFont) final
 
size cell_spacing (i_units_context const &aUnitsContext) const final
 
void set_cell_spacing (optional_size const &aSpacing, i_units_context const &aUnitsContext) final
 
neogfx::padding cell_padding (i_units_context const &aUnitsContext) const final
 
void set_cell_padding (optional_padding const &aPadding, i_units_context const &aUnitsContext) final
 
bool alternating_row_color () const final
 
void set_alternating_row_color (bool aAlternatingColor) final
 
dimension item_height (item_presentation_model_index const &aIndex, i_units_context const &aUnitsContext) const final
 
double total_height (i_units_context const &aUnitsContext) const final
 
double item_position (item_presentation_model_index const &aIndex, i_units_context const &aUnitsContext) const final
 
std::pair< item_presentation_model_index::row_type, coordinateitem_at (double aPosition, i_units_context const &aUnitsContext) const final
 
item_cell_flags cell_flags (item_presentation_model_index const &aIndex) const override
 
void set_cell_flags (item_presentation_model_index const &aIndex, item_cell_flags aFlags) final
 
cell_meta_type & cell_meta (item_presentation_model_index const &aIndex) const final
 
std::string cell_to_string (item_presentation_model_index const &aIndex) const final
 
item_cell_data string_to_cell_data (item_presentation_model_index const &aIndex, std::string const &aString) const final
 
item_cell_data string_to_cell_data (item_presentation_model_index const &aIndex, std::string const &aString, bool &aError) const final
 
boost::basic_format< char > cell_format (item_presentation_model_index const &) const override
 
optional_color cell_color (item_presentation_model_index const &, color_role) const override
 
optional_font cell_font (item_presentation_model_index const &) const override
 
optional_size cell_image_size (item_presentation_model_index const &aIndex) const override
 
optional_size cell_check_box_size (item_presentation_model_index const &aIndex, i_units_context const &aUnitsContext) const override
 
optional_size cell_tree_expander_size (item_presentation_model_index const &aIndex, i_units_context const &aUnitsContext) const override
 
optional_texture cell_image (item_presentation_model_index const &) const override
 
neogfx::glyph_textcell_glyph_text (item_presentation_model_index const &aIndex) const override
 
size cell_extents (item_presentation_model_index const &aIndex, i_units_context const &aUnitsContext) const override
 
dimension indent (item_presentation_model_index const &aIndex, i_units_context const &aUnitsContext) const override
 
void sort (i_item_sort_predicate const &aPredicate) final
 
bool sortable () const final
 
void set_sortable (bool aSortable) final
 
optional_sort_by_param sorting_by () const final
 
void sort_by (item_presentation_model_index::column_type aColumnIndex, const optional_sort_direction &aSortDirection=optional_sort_direction{}) final
 
void reset_sort () final
 
optional_item_presentation_model_index find_item (filter_search_key const &aFilterSearchKey, item_presentation_model_index::column_type aColumnIndex=0, filter_search_type aFilterSearchType=filter_search_type::Prefix, case_sensitivity aCaseSensitivity=case_sensitivity::CaseInsensitive) const final
 
bool filtering () const final
 
optional_filter filtering_by () const final
 
void filter_by (item_presentation_model_index::column_type aColumnIndex, filter_search_key const &aFilterSearchKey, filter_search_type aFilterSearchType=filter_search_type::Value, case_sensitivity aCaseSensitivity=case_sensitivity::CaseInsensitive) final
 
void reset_filter () final
 
- Public Member Functions inherited from neogfx::object< reference_counted< i_item_presentation_model > >
i_objectas_object () override
 
void class_name (neolib::i_string &aClassName) const override
 
neogfx::object_type object_type () const override
 
void property_changed (i_property &) override
 
const i_propertiesproperties () const override
 
i_propertiesproperties () override
 
void register_property (i_property &aProperty) override
 
const neogfx::property_mapproperty_map () const override
 
- Public Member Functions inherited from neolib::object< Base >
 define_declared_event (Destroying, destroying)
 
 define_declared_event (Destroyed, destroyed)
 
 object (lifetime_state aState=lifetime_state::Creating)
 
 ~object ()
 
void set_destroying () override
 
void set_destroyed () override
 
bool is_alive () const final
 
bool is_destroyed () const final
 
- Public Member Functions inherited from neolib::lifetime< Base >
 lifetime (lifetime_state aState=lifetime_state::Alive)
 
virtual ~lifetime ()
 
lifetime_state object_state () const final
 
std::shared_ptr< std::atomic< lifetime_state > > object_state_ptr () const final
 
bool is_creating () const final
 
bool is_destroying () const final
 
void set_alive () override
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 
- Public Member Functions inherited from neogfx::i_properties
uint32_t count () const
 
std::string name (uint32_t aIndex) const
 
const i_propertyproperty (uint32_t aIndex) const
 
i_propertyproperty (uint32_t aIndex)
 

Public Attributes

 column_info_changed
 
item_presentation_model_index::column_type item_added
 
item_presentation_model_index::column_type item_presentation_model_index const item_removing
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_expanding
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_expanded
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_toggled
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_unchecked
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering dragging_item
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const dragging_item_render
 
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const i_drag_drop_item const i_graphics_context point const item_dropped
 

Additional Inherited Members

- Public Types inherited from neolib::lifetime< Base >
typedef neolib::destroyed_flag destroyed_flag
 
- Protected Member Functions inherited from neogfx::i_properties
neogfx::property_mapproperty_map ()
 

Detailed Description

template<typename ItemModel>
class neogfx::basic_item_presentation_model< ItemModel >

Definition at line 42 of file item_presentation_model.hpp.

Constructor & Destructor Documentation

◆ basic_item_presentation_model() [1/2]

template<typename ItemModel >
neogfx::basic_item_presentation_model< ItemModel >::basic_item_presentation_model ( bool  aSortable = false)
inline

Definition at line 128 of file item_presentation_model.hpp.

◆ basic_item_presentation_model() [2/2]

template<typename ItemModel >
neogfx::basic_item_presentation_model< ItemModel >::basic_item_presentation_model ( i_item_model &  aItemModel,
bool  aSortable = false 
)
inline

Definition at line 132 of file item_presentation_model.hpp.

◆ ~basic_item_presentation_model()

template<typename ItemModel >
neogfx::basic_item_presentation_model< ItemModel >::~basic_item_presentation_model ( )
inline

Definition at line 137 of file item_presentation_model.hpp.

Member Function Documentation

◆ accept()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::accept ( i_meta_visitor &  aVisitor,
bool  aIgnoreCollapsedState = false 
)
inlinefinal

Definition at line 277 of file item_presentation_model.hpp.

◆ alternating_row_color()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::alternating_row_color ( ) const
inlinefinal

Definition at line 549 of file item_presentation_model.hpp.

◆ attach()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::attach ( i_ref_ptr< i_widget > const &  aWidget)
inlinefinal

Definition at line 158 of file item_presentation_model.hpp.

◆ attached()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::attached ( ) const
inlinefinal

Definition at line 148 of file item_presentation_model.hpp.

◆ attachment()

template<typename ItemModel >
i_widget & neogfx::basic_item_presentation_model< ItemModel >::attachment ( ) const
inlinefinal

Definition at line 152 of file item_presentation_model.hpp.

◆ begin_update()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::begin_update ( )
inlinefinal

Definition at line 175 of file item_presentation_model.hpp.

◆ cell_check_box_size()

template<typename ItemModel >
optional_size neogfx::basic_item_presentation_model< ItemModel >::cell_check_box_size ( item_presentation_model_index const &  aIndex,
i_units_context const &  aUnitsContext 
) const
inlineoverride

Definition at line 836 of file item_presentation_model.hpp.

◆ cell_color()

template<typename ItemModel >
optional_color neogfx::basic_item_presentation_model< ItemModel >::cell_color ( item_presentation_model_index const &  ,
color_role   
) const
inlineoverride

Definition at line 820 of file item_presentation_model.hpp.

◆ cell_extents()

template<typename ItemModel >
size neogfx::basic_item_presentation_model< ItemModel >::cell_extents ( item_presentation_model_index const &  aIndex,
i_units_context const &  aUnitsContext 
) const
inlineoverride

Definition at line 869 of file item_presentation_model.hpp.

◆ cell_flags()

template<typename ItemModel >
item_cell_flags neogfx::basic_item_presentation_model< ItemModel >::cell_flags ( item_presentation_model_index const &  aIndex) const
inlineoverride

Definition at line 658 of file item_presentation_model.hpp.

◆ cell_font()

template<typename ItemModel >
optional_font neogfx::basic_item_presentation_model< ItemModel >::cell_font ( item_presentation_model_index const &  ) const
inlineoverride

Definition at line 824 of file item_presentation_model.hpp.

◆ cell_format()

template<typename ItemModel >
boost::basic_format< char > neogfx::basic_item_presentation_model< ItemModel >::cell_format ( item_presentation_model_index const &  ) const
inlineoverride

Definition at line 815 of file item_presentation_model.hpp.

◆ cell_glyph_text()

template<typename ItemModel >
neogfx::glyph_text & neogfx::basic_item_presentation_model< ItemModel >::cell_glyph_text ( item_presentation_model_index const &  aIndex) const
inlineoverride

Definition at line 859 of file item_presentation_model.hpp.

◆ cell_image()

template<typename ItemModel >
optional_texture neogfx::basic_item_presentation_model< ItemModel >::cell_image ( item_presentation_model_index const &  ) const
inlineoverride

Definition at line 855 of file item_presentation_model.hpp.

◆ cell_image_size()

template<typename ItemModel >
optional_size neogfx::basic_item_presentation_model< ItemModel >::cell_image_size ( item_presentation_model_index const &  aIndex) const
inlineoverride

Definition at line 828 of file item_presentation_model.hpp.

◆ cell_meta()

template<typename ItemModel >
cell_meta_type & neogfx::basic_item_presentation_model< ItemModel >::cell_meta ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 672 of file item_presentation_model.hpp.

◆ cell_padding()

template<typename ItemModel >
neogfx::padding neogfx::basic_item_presentation_model< ItemModel >::cell_padding ( i_units_context const &  aUnitsContext) const
inlinefinal

Definition at line 534 of file item_presentation_model.hpp.

◆ cell_spacing()

template<typename ItemModel >
size neogfx::basic_item_presentation_model< ItemModel >::cell_spacing ( i_units_context const &  aUnitsContext) const
inlinefinal

Definition at line 511 of file item_presentation_model.hpp.

◆ cell_to_string()

template<typename ItemModel >
std::string neogfx::basic_item_presentation_model< ItemModel >::cell_to_string ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 688 of file item_presentation_model.hpp.

◆ cell_tree_expander_size()

template<typename ItemModel >
optional_size neogfx::basic_item_presentation_model< ItemModel >::cell_tree_expander_size ( item_presentation_model_index const &  aIndex,
i_units_context const &  aUnitsContext 
) const
inlineoverride

Definition at line 848 of file item_presentation_model.hpp.

◆ check()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::check ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 467 of file item_presentation_model.hpp.

◆ checked_state()

template<typename ItemModel >
const button_checked_state & neogfx::basic_item_presentation_model< ItemModel >::checked_state ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 434 of file item_presentation_model.hpp.

◆ collapse()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::collapse ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 383 of file item_presentation_model.hpp.

◆ column_flags()

template<typename ItemModel >
item_cell_flags neogfx::basic_item_presentation_model< ItemModel >::column_flags ( item_presentation_model_index::column_type  aColumnIndex) const
inlineoverride

Definition at line 344 of file item_presentation_model.hpp.

◆ column_heading_extents()

template<typename ItemModel >
size neogfx::basic_item_presentation_model< ItemModel >::column_heading_extents ( item_presentation_model_index::column_type  aColumnIndex,
i_units_context const &  aUnitsContext 
) const
inlineoverride

Definition at line 322 of file item_presentation_model.hpp.

◆ column_heading_text()

template<typename ItemModel >
std::string const & neogfx::basic_item_presentation_model< ItemModel >::column_heading_text ( item_presentation_model_index::column_type  aColumnIndex) const
inlineoverride

Definition at line 310 of file item_presentation_model.hpp.

◆ column_image_size()

template<typename ItemModel >
optional_size neogfx::basic_item_presentation_model< ItemModel >::column_image_size ( item_presentation_model_index::column_type  aColumnIndex) const
inlineoverride

Definition at line 358 of file item_presentation_model.hpp.

◆ column_width()

template<typename ItemModel >
dimension neogfx::basic_item_presentation_model< ItemModel >::column_width ( item_presentation_model_index::column_type  aColumnIndex,
i_units_context const &  aUnitsContext,
bool  aExtendIntoPadding = true 
) const
inlineoverride

Definition at line 299 of file item_presentation_model.hpp.

◆ columns() [1/2]

template<typename ItemModel >
uint32_t neogfx::basic_item_presentation_model< ItemModel >::columns ( ) const
inlinefinal

Definition at line 268 of file item_presentation_model.hpp.

◆ columns() [2/2]

template<typename ItemModel >
uint32_t neogfx::basic_item_presentation_model< ItemModel >::columns ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 272 of file item_presentation_model.hpp.

◆ default_font()

template<typename ItemModel >
const font & neogfx::basic_item_presentation_model< ItemModel >::default_font ( ) const
inlinefinal

Definition at line 497 of file item_presentation_model.hpp.

◆ define_declared_event() [1/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const i_drag_drop_item const i_graphics_context point const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( DraggingItemCancelled  ,
dragging_item_cancelled  ,
i_drag_drop_item const &   
)

◆ define_declared_event() [2/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( DraggingItemRenderInfo  ,
dragging_item_render_info  ,
i_drag_drop_item const &  ,
bool &  ,
size  
)

◆ define_declared_event() [3/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemChanged  ,
item_changed  ,
item_presentation_model_index const &   
)

◆ define_declared_event() [4/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemChecked  ,
item_checked  ,
item_presentation_model_index const &   
)

◆ define_declared_event() [5/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemCollapsed  ,
item_collapsed  ,
item_presentation_model_index const &   
)

◆ define_declared_event() [6/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemCollapsing  ,
item_collapsing  ,
item_presentation_model_index const &   
)

◆ define_declared_event() [7/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemIndeterminate  ,
item_indeterminate  ,
item_presentation_model_index const &   
)

◆ define_declared_event() [8/13]

template<typename ItemModel >
item_presentation_model_index::column_type neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemModelChanged  ,
item_model_changed  ,
const i_item_model &   
)

◆ define_declared_event() [9/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const & neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemRemoved  ,
item_removed  ,
item_presentation_model_index const &   
)

◆ define_declared_event() [10/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemsFiltered  ,
items_filtered   
)

◆ define_declared_event() [11/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemsSorted  ,
items_sorted   
)

◆ define_declared_event() [12/13]

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( ItemsUpdated  ,
items_updated   
)

◆ define_declared_event() [13/13]

template<typename ItemModel >
neogfx::basic_item_presentation_model< ItemModel >::define_declared_event ( VisualAppearanceChanged  ,
visual_appearance_changed   
)

◆ detach()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::detach ( )
inlinefinal

Definition at line 164 of file item_presentation_model.hpp.

◆ end_update()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::end_update ( )
inlinefinal

Definition at line 180 of file item_presentation_model.hpp.

◆ expand()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::expand ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 371 of file item_presentation_model.hpp.

◆ expand_to()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::expand_to ( item_model_index const &  aIndex)
inlinefinal

Definition at line 422 of file item_presentation_model.hpp.

◆ filter_by()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::filter_by ( item_presentation_model_index::column_type  aColumnIndex,
filter_search_key const &  aFilterSearchKey,
filter_search_type  aFilterSearchType = filter_search_type::Value,
case_sensitivity  aCaseSensitivity = case_sensitivity::CaseInsensitive 
)
inlinefinal

Definition at line 1007 of file item_presentation_model.hpp.

◆ filtering()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::filtering ( ) const
inlinefinal

Definition at line 996 of file item_presentation_model.hpp.

◆ filtering_by()

template<typename ItemModel >
optional_filter neogfx::basic_item_presentation_model< ItemModel >::filtering_by ( ) const
inlinefinal

Definition at line 1000 of file item_presentation_model.hpp.

◆ find_item()

template<typename ItemModel >
optional_item_presentation_model_index neogfx::basic_item_presentation_model< ItemModel >::find_item ( filter_search_key const &  aFilterSearchKey,
item_presentation_model_index::column_type  aColumnIndex = 0,
filter_search_type  aFilterSearchType = filter_search_type::Prefix,
case_sensitivity  aCaseSensitivity = case_sensitivity::CaseInsensitive 
) const
inlinefinal

Definition at line 974 of file item_presentation_model.hpp.

◆ from_item_model_index()

template<typename ItemModel >
item_presentation_model_index neogfx::basic_item_presentation_model< ItemModel >::from_item_model_index ( item_model_index const &  aIndex,
bool  aIgnoreColumn = false 
) const
inlinefinal

Definition at line 254 of file item_presentation_model.hpp.

◆ has_item_model()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::has_item_model ( ) const
inlinefinal

Definition at line 191 of file item_presentation_model.hpp.

◆ has_item_model_index()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::has_item_model_index ( item_model_index const &  aIndex) const
inlinefinal

Definition at line 250 of file item_presentation_model.hpp.

◆ indent()

template<typename ItemModel >
dimension neogfx::basic_item_presentation_model< ItemModel >::indent ( item_presentation_model_index const &  aIndex,
i_units_context const &  aUnitsContext 
) const
inlineoverride

Definition at line 905 of file item_presentation_model.hpp.

◆ is_checked()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::is_checked ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 438 of file item_presentation_model.hpp.

◆ is_indeterminate()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::is_indeterminate ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 446 of file item_presentation_model.hpp.

◆ is_unchecked()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::is_unchecked ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 442 of file item_presentation_model.hpp.

◆ item_at()

template<typename ItemModel >
std::pair< item_presentation_model_index::row_type, coordinate > neogfx::basic_item_presentation_model< ItemModel >::item_at ( double  aPosition,
i_units_context const &  aUnitsContext 
) const
inlinefinal

Definition at line 621 of file item_presentation_model.hpp.

◆ item_height()

template<typename ItemModel >
dimension neogfx::basic_item_presentation_model< ItemModel >::item_height ( item_presentation_model_index const &  aIndex,
i_units_context const &  aUnitsContext 
) const
inlinefinal

Definition at line 558 of file item_presentation_model.hpp.

◆ item_model()

template<typename ItemModel >
item_model_type & neogfx::basic_item_presentation_model< ItemModel >::item_model ( ) const
inlinefinal

Definition at line 195 of file item_presentation_model.hpp.

◆ item_position()

template<typename ItemModel >
double neogfx::basic_item_presentation_model< ItemModel >::item_position ( item_presentation_model_index const &  aIndex,
i_units_context const &  aUnitsContext 
) const
inlinefinal

Definition at line 594 of file item_presentation_model.hpp.

◆ metrics_available()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::metrics_available ( ) const
inline

Definition at line 144 of file item_presentation_model.hpp.

◆ reset_filter()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::reset_filter ( )
inlinefinal

Definition at line 1021 of file item_presentation_model.hpp.

◆ reset_sort()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::reset_sort ( )
inlinefinal

Definition at line 967 of file item_presentation_model.hpp.

◆ rows()

template<typename ItemModel >
uint32_t neogfx::basic_item_presentation_model< ItemModel >::rows ( ) const
inlinefinal

Definition at line 261 of file item_presentation_model.hpp.

◆ set_alternating_row_color()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_alternating_row_color ( bool  aAlternatingColor)
inlinefinal

Definition at line 553 of file item_presentation_model.hpp.

◆ set_cell_flags()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_cell_flags ( item_presentation_model_index const &  aIndex,
item_cell_flags  aFlags 
)
inlinefinal

Definition at line 664 of file item_presentation_model.hpp.

◆ set_cell_padding()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_cell_padding ( optional_padding const &  aPadding,
i_units_context const &  aUnitsContext 
)
inlinefinal

Definition at line 542 of file item_presentation_model.hpp.

◆ set_cell_spacing()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_cell_spacing ( optional_size const &  aSpacing,
i_units_context const &  aUnitsContext 
)
inlinefinal

Definition at line 527 of file item_presentation_model.hpp.

◆ set_checked()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_checked ( item_presentation_model_index const &  aIndex,
bool  aChecked 
)
inlinefinal

Definition at line 479 of file item_presentation_model.hpp.

◆ set_checked_state()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_checked_state ( item_presentation_model_index const &  aIndex,
button_checked_state const &  aState 
)
inlinefinal

Definition at line 450 of file item_presentation_model.hpp.

◆ set_column_flags()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_column_flags ( item_presentation_model_index::column_type  aColumnIndex,
item_cell_flags  aFlags 
)
inlinefinal

Definition at line 350 of file item_presentation_model.hpp.

◆ set_column_heading_text()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_column_heading_text ( item_presentation_model_index::column_type  aColumnIndex,
std::string const &  aHeadingText 
)
inlinefinal

Definition at line 338 of file item_presentation_model.hpp.

◆ set_column_image_size()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_column_image_size ( item_presentation_model_index::column_type  aColumnIndex,
optional_size const &  aImageSize 
)
inlinefinal

Definition at line 362 of file item_presentation_model.hpp.

◆ set_default_font()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_default_font ( optional_font const &  aDefaultFont)
inlinefinal

Definition at line 503 of file item_presentation_model.hpp.

◆ set_indeterminate()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_indeterminate ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 475 of file item_presentation_model.hpp.

◆ set_item_model()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_item_model ( i_item_model &  aItemModel)
inlinefinal

Definition at line 201 of file item_presentation_model.hpp.

◆ set_sortable()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::set_sortable ( bool  aSortable)
inlinefinal

Definition at line 936 of file item_presentation_model.hpp.

◆ sort()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::sort ( i_item_sort_predicate const &  aPredicate)
inlinefinal

Definition at line 920 of file item_presentation_model.hpp.

◆ sort_by()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::sort_by ( item_presentation_model_index::column_type  aColumnIndex,
const optional_sort_direction &  aSortDirection = optional_sort_direction{} 
)
inlinefinal

Definition at line 947 of file item_presentation_model.hpp.

◆ sortable()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::sortable ( ) const
inlinefinal

Definition at line 932 of file item_presentation_model.hpp.

◆ sorting_by()

template<typename ItemModel >
optional_sort_by_param neogfx::basic_item_presentation_model< ItemModel >::sorting_by ( ) const
inlinefinal

Definition at line 940 of file item_presentation_model.hpp.

◆ string_to_cell_data() [1/2]

template<typename ItemModel >
item_cell_data neogfx::basic_item_presentation_model< ItemModel >::string_to_cell_data ( item_presentation_model_index const &  aIndex,
std::string const &  aString 
) const
inlinefinal

Definition at line 700 of file item_presentation_model.hpp.

◆ string_to_cell_data() [2/2]

template<typename ItemModel >
item_cell_data neogfx::basic_item_presentation_model< ItemModel >::string_to_cell_data ( item_presentation_model_index const &  aIndex,
std::string const &  aString,
bool &  aError 
) const
inlinefinal

Definition at line 705 of file item_presentation_model.hpp.

◆ to_item_model_index()

template<typename ItemModel >
item_model_index neogfx::basic_item_presentation_model< ItemModel >::to_item_model_index ( item_presentation_model_index const &  aIndex) const
inlinefinal

Definition at line 246 of file item_presentation_model.hpp.

◆ toggle_check()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::toggle_check ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 483 of file item_presentation_model.hpp.

◆ toggle_expanded()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::toggle_expanded ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 395 of file item_presentation_model.hpp.

◆ total_height()

template<typename ItemModel >
double neogfx::basic_item_presentation_model< ItemModel >::total_height ( i_units_context const &  aUnitsContext) const
inlinefinal

Definition at line 584 of file item_presentation_model.hpp.

◆ uncheck()

template<typename ItemModel >
void neogfx::basic_item_presentation_model< ItemModel >::uncheck ( item_presentation_model_index const &  aIndex)
inlinefinal

Definition at line 471 of file item_presentation_model.hpp.

◆ updating()

template<typename ItemModel >
bool neogfx::basic_item_presentation_model< ItemModel >::updating ( ) const
inlinefinal

Definition at line 171 of file item_presentation_model.hpp.

Member Data Documentation

◆ column_info_changed

template<typename ItemModel >
neogfx::basic_item_presentation_model< ItemModel >::column_info_changed

Definition at line 48 of file item_presentation_model.hpp.

◆ dragging_item

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering neogfx::basic_item_presentation_model< ItemModel >::dragging_item

Definition at line 68 of file item_presentation_model.hpp.

◆ dragging_item_render

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const neogfx::basic_item_presentation_model< ItemModel >::dragging_item_render

Definition at line 70 of file item_presentation_model.hpp.

◆ item_added

template<typename ItemModel >
item_presentation_model_index::column_type neogfx::basic_item_presentation_model< ItemModel >::item_added

Definition at line 50 of file item_presentation_model.hpp.

◆ item_dropped

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const items_updating items_sorting items_filtering i_drag_drop_item const i_drag_drop_item const i_graphics_context point const neogfx::basic_item_presentation_model< ItemModel >::item_dropped

Definition at line 72 of file item_presentation_model.hpp.

◆ item_expanded

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const neogfx::basic_item_presentation_model< ItemModel >::item_expanded

Definition at line 56 of file item_presentation_model.hpp.

◆ item_expanding

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const neogfx::basic_item_presentation_model< ItemModel >::item_expanding

Definition at line 54 of file item_presentation_model.hpp.

◆ item_removing

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const neogfx::basic_item_presentation_model< ItemModel >::item_removing

Definition at line 52 of file item_presentation_model.hpp.

◆ item_toggled

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const neogfx::basic_item_presentation_model< ItemModel >::item_toggled

Definition at line 58 of file item_presentation_model.hpp.

◆ item_unchecked

template<typename ItemModel >
item_presentation_model_index::column_type item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const item_presentation_model_index const neogfx::basic_item_presentation_model< ItemModel >::item_unchecked

Definition at line 60 of file item_presentation_model.hpp.


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