neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_item_selection_model Class Referenceabstract

#include <i_item_selection_model.hpp>

Inheritance diagram for neogfx::i_item_selection_model:
neolib::i_reference_counted neogfx::i_property_owner neogfx::i_object neolib::i_object neolib::i_lifetime

Classes

struct  no_current_index
 
struct  no_presentation_model
 

Public Types

typedef i_item_selection_model abstract_type
 

Public Member Functions

 declare_event (current_index_changed, const optional_item_presentation_model_index &, const optional_item_presentation_model_index &) declare_event(selection_changed
 
const item_selection const item_selectiondeclare_event (presentation_model_added, i_item_presentation_model &) declare_event(presentation_model_changed
 
const item_selection const item_selection i_item_presentation_model i_item_presentation_model & declare_event (presentation_model_removed, i_item_presentation_model &) declare_event(mode_changed
 
virtual ~i_item_selection_model ()=default
 
virtual bool has_presentation_model () const =0
 
virtual i_item_presentation_model & presentation_model () const =0
 
virtual void set_presentation_model (i_item_presentation_model &aModel)=0
 
virtual item_selection_mode mode () const =0
 
virtual void set_mode (item_selection_mode aType)=0
 
virtual bool has_current_index () const =0
 
virtual item_presentation_model_index const & current_index () const =0
 
virtual void set_current_index (item_presentation_model_index const &aIndex)=0
 
virtual void clear_current_index ()=0
 
virtual item_presentation_model_index relative_to_current_index (index_location aRelativeLocation, bool aSelectable=true, bool aEditable=false) const =0
 
virtual item_presentation_model_index relative_to_index (item_presentation_model_index const &aIndex, index_location aRelativeLocation, bool aSelectable=true, bool aEditable=false) const =0
 
virtual item_presentation_model_index next_cell () const =0
 
virtual item_presentation_model_index next_cell (item_presentation_model_index const &aIndex) const =0
 
virtual item_presentation_model_index previous_cell () const =0
 
virtual item_presentation_model_index previous_cell (item_presentation_model_index const &aIndex) const =0
 
virtual const item_selectionselection () const =0
 
virtual bool is_selected (item_presentation_model_index const &aIndex) const =0
 
virtual bool is_selectable (item_presentation_model_index const &aIndex) const =0
 
virtual void clear_selection ()=0
 
virtual void select (item_presentation_model_index const &aIndex, item_selection_operation aOperation)=0
 
virtual void select (item_model_index const &aIndex, item_selection_operation aOperation)=0
 
virtual bool sorting () const =0
 
virtual bool filtering () const =0
 
virtual bool is_editable (item_presentation_model_index const &aIndex) const =0
 
optional_item_presentation_model_index current_index_maybe () const
 
void select (item_presentation_model_index const &aIndex)
 
void select (item_model_index const &aIndex)
 
void clear (item_presentation_model_index const &aIndex)
 
void clear (item_model_index const &aIndex)
 
row_selection_iterator row_begin () const
 
row_selection_iterator row_end () const
 
cell_selection_iterator cell_begin () const
 
cell_selection_iterator cell_end () const
 
cell_selection_iterator begin () const
 
cell_selection_iterator end () const
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 
- Public Member Functions inherited from neogfx::i_property_owner
virtual ~i_property_owner ()=default
 
virtual void property_changed (i_property &aProperty)=0
 
virtual const i_propertiesproperties () const =0
 
virtual i_propertiesproperties ()=0
 
- Public Member Functions inherited from neogfx::i_object
virtual ~i_object ()=default
 
virtual i_objectas_object ()=0
 
virtual void class_name (neolib::i_string &aClassName) const =0
 
virtual neogfx::object_type object_type () const =0
 
- Public Member Functions inherited from neolib::i_object
 declare_event (destroying)
 
 declare_event (destroyed)
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 
virtual lifetime_state object_state () const =0
 
virtual std::shared_ptr< std::atomic< lifetime_state > > object_state_ptr () const =0
 
virtual bool is_creating () const =0
 
virtual bool is_alive () const =0
 
virtual bool is_destroying () const =0
 
virtual bool is_destroyed () const =0
 
virtual void set_alive ()=0
 
virtual void set_destroying ()=0
 
virtual void set_destroyed ()=0
 

Detailed Description

Definition at line 273 of file i_item_selection_model.hpp.

Member Typedef Documentation

◆ abstract_type

Constructor & Destructor Documentation

◆ ~i_item_selection_model()

virtual neogfx::i_item_selection_model::~i_item_selection_model ( )
virtualdefault

Member Function Documentation

◆ begin()

cell_selection_iterator neogfx::i_item_selection_model::begin ( ) const
inline

Definition at line 385 of file i_item_selection_model.hpp.

◆ cell_begin()

cell_selection_iterator neogfx::i_item_selection_model::cell_begin ( ) const
inline

Definition at line 377 of file i_item_selection_model.hpp.

◆ cell_end()

cell_selection_iterator neogfx::i_item_selection_model::cell_end ( ) const
inline

Definition at line 381 of file i_item_selection_model.hpp.

◆ clear() [1/2]

void neogfx::i_item_selection_model::clear ( item_model_index const &  aIndex)
inline

Definition at line 365 of file i_item_selection_model.hpp.

◆ clear() [2/2]

void neogfx::i_item_selection_model::clear ( item_presentation_model_index const &  aIndex)
inline

Definition at line 361 of file i_item_selection_model.hpp.

◆ clear_current_index()

virtual void neogfx::i_item_selection_model::clear_current_index ( )
pure virtual

◆ clear_selection()

virtual void neogfx::i_item_selection_model::clear_selection ( )
pure virtual

◆ current_index()

virtual item_presentation_model_index const & neogfx::i_item_selection_model::current_index ( ) const
pure virtual

◆ current_index_maybe()

optional_item_presentation_model_index neogfx::i_item_selection_model::current_index_maybe ( ) const
inline

Definition at line 321 of file i_item_selection_model.hpp.

◆ declare_event() [1/3]

neogfx::i_item_selection_model::declare_event ( current_index_changed  ,
const optional_item_presentation_model_index &  ,
const optional_item_presentation_model_index &   
)

◆ declare_event() [2/3]

const item_selection const item_selection & neogfx::i_item_selection_model::declare_event ( presentation_model_added  ,
i_item_presentation_model &   
)

◆ declare_event() [3/3]

const item_selection const item_selection i_item_presentation_model i_item_presentation_model & neogfx::i_item_selection_model::declare_event ( presentation_model_removed  ,
i_item_presentation_model &   
)

◆ end()

cell_selection_iterator neogfx::i_item_selection_model::end ( ) const
inline

Definition at line 389 of file i_item_selection_model.hpp.

◆ filtering()

virtual bool neogfx::i_item_selection_model::filtering ( ) const
pure virtual

◆ has_current_index()

virtual bool neogfx::i_item_selection_model::has_current_index ( ) const
pure virtual

◆ has_presentation_model()

virtual bool neogfx::i_item_selection_model::has_presentation_model ( ) const
pure virtual

◆ is_editable()

virtual bool neogfx::i_item_selection_model::is_editable ( item_presentation_model_index const &  aIndex) const
pure virtual

◆ is_selectable()

virtual bool neogfx::i_item_selection_model::is_selectable ( item_presentation_model_index const &  aIndex) const
pure virtual

◆ is_selected()

virtual bool neogfx::i_item_selection_model::is_selected ( item_presentation_model_index const &  aIndex) const
pure virtual

◆ mode()

virtual item_selection_mode neogfx::i_item_selection_model::mode ( ) const
pure virtual

◆ next_cell() [1/2]

virtual item_presentation_model_index neogfx::i_item_selection_model::next_cell ( ) const
pure virtual

◆ next_cell() [2/2]

virtual item_presentation_model_index neogfx::i_item_selection_model::next_cell ( item_presentation_model_index const &  aIndex) const
pure virtual

◆ presentation_model()

virtual i_item_presentation_model & neogfx::i_item_selection_model::presentation_model ( ) const
pure virtual

◆ previous_cell() [1/2]

virtual item_presentation_model_index neogfx::i_item_selection_model::previous_cell ( ) const
pure virtual

◆ previous_cell() [2/2]

virtual item_presentation_model_index neogfx::i_item_selection_model::previous_cell ( item_presentation_model_index const &  aIndex) const
pure virtual

◆ relative_to_current_index()

virtual item_presentation_model_index neogfx::i_item_selection_model::relative_to_current_index ( index_location  aRelativeLocation,
bool  aSelectable = true,
bool  aEditable = false 
) const
pure virtual

◆ relative_to_index()

virtual item_presentation_model_index neogfx::i_item_selection_model::relative_to_index ( item_presentation_model_index const &  aIndex,
index_location  aRelativeLocation,
bool  aSelectable = true,
bool  aEditable = false 
) const
pure virtual

◆ row_begin()

row_selection_iterator neogfx::i_item_selection_model::row_begin ( ) const
inline

Definition at line 369 of file i_item_selection_model.hpp.

◆ row_end()

row_selection_iterator neogfx::i_item_selection_model::row_end ( ) const
inline

Definition at line 373 of file i_item_selection_model.hpp.

◆ select() [1/4]

void neogfx::i_item_selection_model::select ( item_model_index const &  aIndex)
inline

Definition at line 344 of file i_item_selection_model.hpp.

◆ select() [2/4]

virtual void neogfx::i_item_selection_model::select ( item_model_index const &  aIndex,
item_selection_operation  aOperation 
)
pure virtual

◆ select() [3/4]

void neogfx::i_item_selection_model::select ( item_presentation_model_index const &  aIndex)
inline

Definition at line 327 of file i_item_selection_model.hpp.

◆ select() [4/4]

virtual void neogfx::i_item_selection_model::select ( item_presentation_model_index const &  aIndex,
item_selection_operation  aOperation 
)
pure virtual

◆ selection()

virtual const item_selection & neogfx::i_item_selection_model::selection ( ) const
pure virtual

◆ set_current_index()

virtual void neogfx::i_item_selection_model::set_current_index ( item_presentation_model_index const &  aIndex)
pure virtual

◆ set_mode()

virtual void neogfx::i_item_selection_model::set_mode ( item_selection_mode  aType)
pure virtual

◆ set_presentation_model()

virtual void neogfx::i_item_selection_model::set_presentation_model ( i_item_presentation_model &  aModel)
pure virtual

◆ sorting()

virtual bool neogfx::i_item_selection_model::sorting ( ) const
pure virtual

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