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

#include <item_view.hpp>

Inheritance diagram for neogfx::item_view:
neogfx::drag_drop_target< drag_drop_source< framed_scrollable_widget > > neogfx::i_header_view_owner neogfx::drag_drop_source< framed_scrollable_widget > neogfx::i_drag_drop_target neogfx::scrollable_widget< framed_widget< widget<> > > neogfx::i_drag_drop_source neogfx::framed_widget< widget<> > neogfx::i_scrollbar_container neogfx::widget< Interface > neogfx::layout_item< Base > neogfx::anchorable< reference_counted< Base > > neolib::reference_counted< Base, DeallocateOnRelease > neogfx::list_view neogfx::table_view neogfx::drop_list_view neogfx::tree_view

Public Member Functions

 item_view (frame_style aFrameStyle=frame_style::SolidFrame, neogfx::scrollbar_style aScrollbarStyle=neogfx::scrollbar_style::Normal)
 
 item_view (i_widget &aParent, frame_style aFrameStyle=frame_style::SolidFrame, neogfx::scrollbar_style aScrollbarStyle=neogfx::scrollbar_style::Normal)
 
 item_view (i_layout &aLayout, frame_style aFrameStyle=frame_style::SolidFrame, neogfx::scrollbar_style aScrollbarStyle=neogfx::scrollbar_style::Normal)
 
 ~item_view ()
 
bool has_model () const
 
const i_item_model & model () const
 
i_item_model & model ()
 
void set_model (i_item_model &aModel)
 
void set_model (i_ref_ptr< i_item_model > const &aModel)
 
bool has_presentation_model () const
 
const i_item_presentation_model & presentation_model () const
 
i_item_presentation_model & presentation_model ()
 
void set_presentation_model (i_item_presentation_model &aPresentationModel)
 
void set_presentation_model (i_ref_ptr< i_item_presentation_model > const &aPresentationModel)
 
bool has_selection_model () const
 
const i_item_selection_modelselection_model () const
 
i_item_selection_modelselection_model ()
 
void set_selection_model (i_item_selection_model &aSelectionModel)
 
void set_selection_model (i_ref_ptr< i_item_selection_model > const &aSelectionModel)
 
bool hot_tracking () const
 
void enable_hot_tracking ()
 
void disable_hot_tracking ()
 
bool is_valid (item_presentation_model_index const &aItemIndex) const
 
bool is_visible (item_presentation_model_index const &aItemIndex, bool aPartiallyVisible=false) const
 
bool make_visible (item_presentation_model_index const &aItemIndex)
 
const optional_item_presentation_model_index & editing () const
 
void edit (item_presentation_model_index const &aItemIndex)
 
void begin_edit ()
 
void end_edit (bool aCommit)
 
bool beginning_edit () const
 
bool ending_edit () const
 
i_widgeteditor () const
 
bool editor_has_text_edit () const
 
text_edit & editor_text_edit () const
 
void enable_drag_drop_source (bool aEnable=true) final
 
color palette_color (color_role aColorRole) const override
 
rect row_rect (item_presentation_model_index const &aItemIndex) const
 
rect cell_rect (item_presentation_model_index const &aItemIndex, cell_part aPart=cell_part::Base) const
 
rect cell_rect (item_presentation_model_index const &aItemIndex, i_graphics_context &aGc, cell_part aPart=cell_part::Base) const
 
optional_item_presentation_model_index item_at (const point &aPosition, bool aIncludeEntireRow=true) const
 
- Public Member Functions inherited from neogfx::drag_drop_target< drag_drop_source< framed_scrollable_widget > >
bool drag_drop_target_enabled () const final
 
void enable_drag_drop_target (bool aEnable=true) final
 
bool can_accept (i_drag_drop_object const &aObject, optional_point const &aDropPosition={}) const final
 
drop_operation accepted_as (i_drag_drop_object const &aObject, optional_point const &aDropPosition={}) const final
 
bool accept (i_drag_drop_object const &aObject, optional_point const &aDropPosition={}) final
 
bool is_widget () const final
 
i_widget const & as_widget () const final
 
i_widgetas_widget () final
 
- Public Member Functions inherited from neogfx::drag_drop_source< framed_scrollable_widget >
 define_declared_event (DraggingObject, dragging_object, i_drag_drop_object const &) define_declared_event(DraggingCancelled
 
i_drag_drop_object const & define_declared_event (ObjectDroppedOnTarget, object_dropped_on_target, i_drag_drop_object const &, i_drag_drop_target &) public
 
 ~drag_drop_source ()
 
bool drag_drop_source_enabled () const final
 
bool drag_drop_active () const final
 
i_drag_drop_object const & object_being_dragged () const final
 
void start_drag_drop (i_drag_drop_object const &aObject) final
 
void cancel_drag_drop () final
 
void end_drag_drop (i_drag_drop_target &aTarget) final
 
point const & drag_drop_tracking_position () const final
 
i_ref_ptr< i_widget > const & drag_drop_widget () const final
 
void set_drag_drop_widget (i_ref_ptr< i_widget > const &aWidget) final
 
i_widgetdrag_drop_event_monitor () const final
 
void monitor_drag_drop_events (i_widget &aWidget) final
 
void stop_monitoring_drag_drop_events () final
 
- Public Member Functions inherited from neogfx::scrollable_widget< framed_widget< widget<> > >
 scrollable_widget (Args &&... aArgs)
 
 scrollable_widget (neogfx::scrollbar_style aScrollbarStyle, Args &&... aArgs)
 
 scrollable_widget (i_widget &aParent, Args &&... aArgs)
 
 scrollable_widget (i_widget &aParent, neogfx::scrollbar_style aScrollbarStyle, Args &&... aArgs)
 
 scrollable_widget (i_layout &aLayout, Args &&... aArgs)
 
 scrollable_widget (i_layout &aLayout, neogfx::scrollbar_style aScrollbarStyle, Args &&... aArgs)
 
 scrollable_widget (const scrollable_widget &)=delete
 
 ~scrollable_widget ()
 
neogfx::scrollbar_style scrollbar_style () const
 
point scroll_position () const
 
void scroll_to (i_widget &aChild)
 
void layout_items_started () override
 
void layout_items_completed () override
 
void resized () override
 
rect client_rect (bool aExtendIntoPadding=true) const override
 
widget_part part (point const &aPosition) const override
 
void paint_non_client_after (i_graphics_context &aGc) const override
 
bool mouse_wheel_scrolled (mouse_wheel aWheel, point const &aPosition, delta aDelta, key_modifiers_e aKeyModifiers) override
 
void mouse_button_pressed (mouse_button aButton, point const &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_button_double_clicked (mouse_button aButton, point const &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_button_released (mouse_button aButton, point const &aPosition) override
 
void mouse_moved (point const &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_entered (point const &aPosition) override
 
void mouse_left () override
 
bool key_pressed (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers) override
 
virtual scrollbar const & vertical_scrollbar () const
 
virtual scrollbarvertical_scrollbar ()
 
virtual scrollbar const & horizontal_scrollbar () const
 
virtual scrollbarhorizontal_scrollbar ()
 
virtual neogfx::scrolling_disposition scrolling_disposition () const
 
virtual neogfx::scrolling_disposition scrolling_disposition (i_widget const &aChildWidget) const
 
rect scroll_area () const override
 
size scroll_page () const override
 
- Public Member Functions inherited from neogfx::framed_widget< widget<> >
 framed_widget (Args &&... aArgs)
 
 framed_widget (i_widget &aParent, Args &&... aArgs)
 
 framed_widget (i_layout &aLayout, Args &&... aArgs)
 
 framed_widget (dimension aLineWidth, Args &&... aArgs)
 
 framed_widget (i_widget &aParent, dimension aLineWidth, Args &&... aArgs)
 
 framed_widget (i_layout &aLayout, dimension aLineWidth, Args &&... aArgs)
 
 framed_widget (frame_style aStyle, Args &&... aArgs)
 
 framed_widget (i_widget &aParent, frame_style aStyle, Args &&... aArgs)
 
 framed_widget (i_layout &aLayout, frame_style aStyle, Args &&... aArgs)
 
 framed_widget (frame_style aStyle, dimension aLineWidth, Args &&... aArgs)
 
 framed_widget (i_widget &aParent, frame_style aStyle, dimension aLineWidth, Args &&... aArgs)
 
 framed_widget (i_layout &aLayout, frame_style aStyle, dimension aLineWidth, Args &&... aArgs)
 
neogfx::border border () const override
 
void paint_non_client (i_graphics_context &aGc) const override
 
void set_frame_style (frame_style aStyle)
 
virtual bool has_frame_color () const
 
virtual color frame_color () const
 
virtual void set_frame_color (const optional_color &aFrameColor=optional_color{})
 
virtual color inner_frame_color () const
 
virtual bool has_frame_radius () const
 
virtual vec4 frame_radius () const
 
virtual void set_frame_radius (const optional_vec4 &aFrameRadius=optional_vec4{})
 
dimension line_width () const
 
dimension effective_frame_width () const
 
- Public Member Functions inherited from neogfx::widget< Interface >
 define_declared_event (DeviceMetricsUpdated, device_metrics_updated, const i_widget &) define_declared_event(ChildAdded
 
i_widgetdefine_declared_event (ChildRemoved, child_removed, i_widget &) define_declared_event(VisibilityChanged
 
i_widget visibility_changed define_declared_event (PositionChanged, position_changed) define_declared_event(ParentPositionChanged
 
i_widget visibility_changed parent_position_changed define_declared_event (SizeChanged, size_changed) define_declared_event(LayoutCompleted
 
i_widget visibility_changed parent_position_changed layout_completed define_declared_event (Painting, painting, i_graphics_context &) define_declared_event(PaintingChildren
 
i_widget visibility_changed parent_position_changed layout_completed i_graphics_contextdefine_declared_event (Painted, painted, i_graphics_context &) define_declared_event(Mouse
 
i_widget visibility_changed parent_position_changed layout_completed i_graphics_context const neogfx::mouse_eventdefine_declared_event (NonClientMouse, non_client_mouse_event, const neogfx::non_client_mouse_event &) define_declared_event(QueryMouseCursor
 
i_widget visibility_changed parent_position_changed layout_completed i_graphics_context const neogfx::mouse_event neogfx::mouse_cursordefine_declared_event (Keyboard, keyboard_event, const neogfx::keyboard_event &) define_declared_event(Focus
 
 widget ()
 
 widget (const widget &)=delete
 
 widget (i_widget &aParent)
 
 widget (i_layout &aLayout)
 
 ~widget ()
 
void property_changed (i_property &aProperty) override
 
bool is_singular () const final
 
void set_singular (bool aSingular) final
 
bool is_root () const final
 
bool has_root () const final
 
const i_windowroot () const final
 
i_windowroot () final
 
void set_root (i_window &aRoot) final
 
bool is_surface () const override
 
bool has_surface () const override
 
const i_surfacesurface () const override
 
i_surfacesurface () override
 
const i_surfacereal_surface () const override
 
i_surfacereal_surface () override
 
bool has_parent () const final
 
const i_widgetparent () const final
 
i_widgetparent () final
 
void set_parent (i_widget &aParent) override
 
void parent_changed () final
 
bool adding_child () const override
 
i_widgetadd (i_widget &aChild) override
 
i_widgetadd (const i_ref_ptr< i_widget > &aChild) override
 
void remove (i_widget &aChild, bool aSingular, i_ref_ptr< i_widget > &aChildRef) override
 
void remove_all () override
 
bool has_children () const override
 
const widget_listchildren () const override
 
widget_list::const_iterator last () const override
 
widget_list::iterator last () override
 
widget_list::const_iterator find (const i_widget &aChild, bool aThrowIfNotFound=true) const override
 
widget_list::iterator find (const i_widget &aChild, bool aThrowIfNotFound=true) override
 
void bring_child_to_front (const i_widget &aChild) override
 
void send_child_to_back (const i_widget &aChild) override
 
layer_t layer () const override
 
void set_layer (layer_t aLayer) override
 
const i_widgetbefore () const override
 
i_widgetbefore () override
 
const i_widgetafter () const override
 
i_widgetafter () override
 
void link_before (i_widget *aPreviousWidget) override
 
void link_after (i_widget *aNextWidget) override
 
void unlink () override
 
bool has_layout () const override
 
void set_layout (i_layout &aLayout, bool aMoveExistingItems=true) override
 
void set_layout (const i_ref_ptr< i_layout > &aLayout, bool aMoveExistingItems=true) override
 
const i_layoutlayout () const override
 
i_layoutlayout () override
 
bool can_defer_layout () const override
 
bool is_managing_layout () const override
 
optional< neogfx::layout_reason > & layout_reason () override
 
void layout_items (bool aDefer=false) override
 
void layout_items_started () override
 
bool layout_items_in_progress () const override
 
void layout_items_completed () override
 
bool device_metrics_available () const override
 
const i_device_metricsdevice_metrics () const override
 
neogfx::size_policy size_policy () const override
 
size minimum_size (optional_size const &aAvailableSpace={}) const override
 
size maximum_size (optional_size const &aAvailableSpace={}) const override
 
neogfx::padding padding () const override
 
rect element_rect (skin_element aElement) const override
 
bool has_logical_coordinate_system () const override
 
neogfx::logical_coordinate_system logical_coordinate_system () const override
 
void set_logical_coordinate_system (const optional_logical_coordinate_system &aLogicalCoordinateSystem) override
 
rect non_client_rect () const override
 
rect client_rect (bool aExtendIntoPadding=true) const override
 
void move (const point &aPosition) override
 
void moved () override
 
void parent_moved () override
 
bool resizing () const override
 
void resize (const size &aSize) override
 
void resized () override
 
const i_widgetget_widget_at (const point &aPosition) const override
 
i_widgetget_widget_at (const point &aPosition) override
 
neogfx::widget_type widget_type () const override
 
bool part_active (widget_part aPart) const override
 
widget_part part (const point &aPosition) const override
 
widget_part hit_test (const point &aPosition) const override
 
bool has_parent_layout () const final
 
const i_layoutparent_layout () const final
 
i_layoutparent_layout () final
 
void set_parent_layout (i_layout *aParentLayout) final
 
bool has_parent_widget () const final
 
const i_widgetparent_widget () const final
 
i_widgetparent_widget () final
 
void set_parent_widget (i_widget *aParentWidget) final
 
void layout_as (const point &aPosition, const size &aSize) override
 
neogfx::view const & view () const override
 
neogfx::viewview () override
 
layer_t render_layer () const override
 
void set_render_layer (const std::optional< layer_t > &aLayer) override
 
bool can_update () const override
 
bool update (bool aIncludeNonClient=false) override
 
bool update (const rect &aUpdateRect) override
 
bool requires_update () const override
 
rect update_rect () const override
 
rect default_clip_rect (bool aIncludeNonClient=false) const override
 
bool ready_to_render () const override
 
void render (i_graphics_context &aGc) const override
 
void paint_non_client (i_graphics_context &aGc) const override
 
void paint (i_graphics_context &aGc) const override
 
void paint_non_client_after (i_graphics_context &aGc) const override
 
double opacity () const override
 
void set_opacity (double aOpacity) override
 
bool has_background_opacity () const override
 
double background_opacity () const override
 
void set_background_opacity (double aOpacity) override
 
bool has_palette () const override
 
const i_palettepalette () const override
 
void set_palette (const i_palette &aPalette) override
 
bool has_palette_color (color_role aColorRole) const override
 
color palette_color (color_role aColorRole) const override
 
void set_palette_color (color_role aColorRole, const optional_color &aColor) override
 
color container_background_color () const override
 
bool has_font_role () const override
 
neogfx::font_role font_role () const override
 
void set_font_role (const optional_font_role &aFontRole) override
 
bool has_font () const override
 
const neogfx::font & font () const override
 
void set_font (optional_font const &aFont) override
 
bool visible () const override
 
bool effectively_visible () const override
 
bool hidden () const override
 
bool effectively_hidden () const override
 
bool show (bool aVisible) override
 
bool enabled () const override
 
bool effectively_enabled () const override
 
bool disabled () const override
 
bool effectively_disabled () const override
 
bool enable (bool aEnable) override
 
bool entered (bool aChildEntered=false) const override
 
bool can_capture () const override
 
bool capturing () const override
 
const optional_pointcapture_position () const override
 
void set_capture (capture_reason aReason=capture_reason::Other, const optional_point &aPosition={}) override
 
void release_capture (capture_reason aReason=capture_reason::Other) override
 
void non_client_set_capture () override
 
void non_client_release_capture () override
 
void captured () override
 
void capture_released () override
 
bool has_focus_policy () const override
 
neogfx::focus_policy focus_policy () const override
 
void set_focus_policy (const optional_focus_policy &aFocusPolicy) override
 
bool can_set_focus (focus_reason aFocusReason) const override
 
bool has_focus () const override
 
bool child_has_focus () const override
 
bool set_focus (focus_reason aFocusReason=focus_reason::Other) override
 
bool release_focus () override
 
void focus_gained (focus_reason aFocusReason) override
 
void focus_lost (focus_reason aFocusReason) override
 
bool consider_ancestors_for_mouse_events () const override
 
void set_consider_ancestors_for_mouse_events (bool aConsiderAncestors=true) override
 
bool ignore_mouse_events (bool aConsiderAncestors=true) const override
 
void set_ignore_mouse_events (bool aIgnoreMouseEvents) override
 
bool ignore_non_client_mouse_events (bool aConsiderAncestors=true) const override
 
void set_ignore_non_client_mouse_events (bool aIgnoreNonClientMouseEvents) override
 
neogfx::mouse_event_location mouse_event_location () const override
 
bool mouse_wheel_scrolled (mouse_wheel aWheel, const point &aPosition, delta aDelta, key_modifiers_e aKeyModifiers) override
 
void mouse_button_pressed (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_button_double_clicked (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_button_released (mouse_button aButton, const point &aPosition) override
 
void mouse_moved (const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_entered (const point &aPosition) override
 
void mouse_left () override
 
point mouse_position () const override
 
neogfx::mouse_cursor mouse_cursor () const override
 
bool key_pressed (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers) override
 
bool key_released (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers) override
 
bool text_input (i_string const &aText) override
 
bool sys_text_input (i_string const &aText) override
 
const i_widgetwidget_for_mouse_event (const point &aPosition, bool aForHitTest=false) const override
 
i_widgetwidget_for_mouse_event (const point &aPosition, bool aForHitTest=false) override
 
- Public Member Functions inherited from neogfx::layout_item< Base >
 layout_item ()
 
 ~layout_item ()
 
const i_stringid () const final
 
void set_id (const i_string &aId) final
 
bool is_cache () const final
 
bool is_layout () const final
 
const i_layoutas_layout () const final
 
i_layoutas_layout () final
 
bool is_spacer () const final
 
const i_spacer & as_spacer () const final
 
i_spacer & as_spacer () final
 
bool is_widget () const override
 
const i_widgetas_widget () const override
 
i_widgetas_widget () override
 
bool has_parent_layout_item () const final
 
const i_layout_itemparent_layout_item () const final
 
i_layout_itemparent_layout_item () final
 
bool has_layout_manager () const final
 
const i_widgetlayout_manager () const final
 
i_widgetlayout_manager () final
 
void update_layout (bool aDeferLayout=true, bool aAncestors=false) final
 
point origin () const final
 
void reset_origin () const final
 
point position () const final
 
size extents () const final
 
bool has_size_policy () const noexcept override
 
neogfx::size_policy size_policy () const override
 
void set_size_policy (const optional_size_policy &aSizePolicy, bool aUpdateLayout=true) override
 
bool has_weight () const noexcept override
 
size weight () const override
 
void set_weight (optional_size const &aWeight, bool aUpdateLayout=true) override
 
bool has_ideal_size () const noexcept override
 
bool is_ideal_size_constrained () const noexcept override
 
size ideal_size (optional_size const &aAvailableSpace={}) const override
 
void set_ideal_size (optional_size const &aIdealSize, bool aUpdateLayout=true) override
 
bool has_minimum_size () const noexcept override
 
bool is_minimum_size_constrained () const noexcept override
 
size minimum_size (optional_size const &aAvailableSpace={}) const override
 
void set_minimum_size (optional_size const &aMinimumSize, bool aUpdateLayout=true) override
 
bool has_maximum_size () const noexcept override
 
bool is_maximum_size_constrained () const noexcept override
 
size maximum_size (optional_size const &aAvailableSpace={}) const override
 
void set_maximum_size (optional_size const &aMaximumSize, bool aUpdateLayout=true) override
 
bool has_fixed_size () const noexcept override
 
size fixed_size (optional_size const &aAvailableSpace={}) const override
 
void set_fixed_size (optional_size const &aFixedSize, bool aUpdateLayout=true)
 
bool has_transformation () const noexcept override
 
mat33 const & transformation (bool aCombineAncestorTransformations=false) const override
 
void set_transformation (optional_mat33 const &aTransformation, bool aUpdateLayout=true) override
 
bool has_margin () const noexcept override
 
neogfx::margin margin () const override
 
void set_margin (optional_margin const &aMargin, bool aUpdateLayout=true) override
 
bool has_border () const noexcept override
 
neogfx::border border () const override
 
void set_border (optional_border const &aBorder, bool aUpdateLayout=true) override
 
bool has_padding () const noexcept override
 
neogfx::padding padding () const override
 
void set_padding (optional_padding const &aPadding, bool aUpdateLayout=true) override
 
void invalidate_combined_transformation () override
 
void fix_weightings (bool aRecalculate=true) override
 
i_anchor & anchor_to (i_anchorable &aRhs, i_string const &aLhsAnchor, anchor_constraint_function aLhsFunction, i_string const &aRhsAnchor, anchor_constraint_function aRhsFunction) override
 
- Public Member Functions inherited from neogfx::anchorable< reference_counted< Base > >
 ~anchorable ()
 
i_anchor & anchor_to (i_anchorable &aRhs, const i_string &aLhsAnchor, anchor_constraint_function aLhsFunction, const i_string &aRhsAnchor, anchor_constraint_function aRhsFunction) override
 
const anchor_map_typeanchors () const override
 
anchor_map_typeanchors () override
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neogfx::i_drag_drop_source
 declare_event (dragging_object, i_drag_drop_object const &) declare_event(dragging_cancelled
 
void enable_drag_drop_source (i_widget &aWidget)
 
- Public Member Functions inherited from neogfx::i_drag_drop_target
 declare_event (object_acceptable, i_drag_drop_object const &, optional_point const &, drop_operation &) declare_event(object_dropped
 
virtual ~i_drag_drop_target ()=default
 

Protected Member Functions

bool is_drag_drop_object (point const &aPosition) const override
 
i_drag_drop_object const * drag_drop_object (point const &aPosition) override
 
bool updating_models () const override
 
void header_view_updated (header_view &aHeaderView, header_view_update_reason aUpdateReason) override
 
virtual void model_changed ()=0
 
virtual void presentation_model_changed ()=0
 
virtual void selection_model_changed ()=0
 
virtual void tree_changed ()=0
 
virtual rect item_display_rect (bool aIntersectItemArea=false) const =0
 
virtual size total_item_area (i_units_context const &aUnitsContext) const =0
 
virtual dimension column_width (uint32_t aColumn) const =0
 
std::pair< item_model_index::value_type, coordinatefirst_visible_item (i_graphics_context &aGc) const
 
std::pair< item_model_index::value_type, coordinatelast_visible_item (i_graphics_context &aGc) const
 
void layout_items_completed () override
 
widget_part hit_test (const point &aPosition) const override
 
neogfx::size_policy size_policy () const override
 
void paint (i_graphics_context &aGc) const override
 
void capture_released () override
 
neogfx::focus_policy focus_policy () const override
 
void focus_gained (focus_reason aFocusReason) override
 
void mouse_button_pressed (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_button_double_clicked (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_button_released (mouse_button aButton, const point &aPosition) override
 
void mouse_moved (const point &aPosition, key_modifiers_e aKeyModifiers) override
 
void mouse_entered (const point &aPosition) override
 
void mouse_left () override
 
bool key_pressed (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers) override
 
bool text_input (i_string const &aText) override
 
rect scroll_area () const override
 
size scroll_page () const override
 
void update_scrollbar_visibility () override
 
bool update_scrollbar_visibility (usv_stage_e aStage) override
 
bool use_scrollbar_container_updater () const override
 
void scroll_page_updated () override
 
virtual void column_info_changed (item_model_index::value_type aColumnIndex)
 
virtual void item_added (const item_model_index &aItemIndex)
 
virtual void item_changed (const item_model_index &aItemIndex)
 
virtual void item_removed (const item_model_index &aItemIndex)
 
virtual void item_model_changed (const i_item_model &aItemModel)
 
virtual void item_added (item_presentation_model_index const &aItemIndex)
 
virtual void item_changed (item_presentation_model_index const &aItemIndex)
 
virtual void item_removed (item_presentation_model_index const &aItemIndex)
 
virtual void items_updated ()
 
virtual void items_sorting ()
 
virtual void items_sorted ()
 
virtual void items_filtering ()
 
virtual void items_filtered ()
 
virtual void presentation_model_added (i_item_presentation_model &aNewModel)
 
virtual void presentation_model_changed (i_item_presentation_model &aNewModel, i_item_presentation_model &aOldModel)
 
virtual void presentation_model_removed (i_item_presentation_model &aOldModel)
 
virtual void mode_changed (item_selection_mode aNewMode)
 
virtual void current_index_changed (const optional_item_presentation_model_index &aCurrentIndex, const optional_item_presentation_model_index &aPreviousIndex)
 
virtual void selection_changed (const item_selection &aCurrentSelection, const item_selection &aPreviousSelection)
 
- Protected Member Functions inherited from neogfx::drag_drop_source< framed_scrollable_widget >
scalar drag_drop_trigger_distance () const
 
void set_drag_drop_trigger_distance (scalar aDistance)
 
- Protected Member Functions inherited from neogfx::scrollable_widget< framed_widget< widget<> > >
rect scrollbar_geometry (i_scrollbar const &aScrollbar) const override
 
void scrollbar_updated (i_scrollbar const &aScrollbar, i_scrollbar::update_reason_e aReason) override
 
color scrollbar_color (i_scrollbar const &aScrollbar) const override
 
i_widget const & as_widget () const override
 
i_widgetas_widget () override
 
void update_scrollbar_visibility () override
 
void init_scrollbars ()
 
- Protected Member Functions inherited from neogfx::layout_item< Base >
void set_position (const point &aPosition) override
 
void set_extents (const size &aExtents) override
 
point unconstrained_origin () const override
 
point unconstrained_position () const override
 
void layout_item_enabled (i_layout_item &aItem) override
 
void layout_item_disabled (i_layout_item &aItem) override
 

Additional Inherited Members

- Public Types inherited from neogfx::widget< Interface >
typedef i_widget abstract_type
 
typedef neolib::vector< ref_ptr< i_widget > > widget_list
 
- Public Types inherited from neogfx::anchorable< reference_counted< Base > >
typedef neolib::map< string, i_anchor * > anchor_map_type
 
- Public Attributes inherited from neogfx::drag_drop_source< framed_scrollable_widget >
 dragging_cancelled
 
- Public Attributes inherited from neogfx::widget< Interface >
 child_added
 
i_widget visibility_changed parent_position_changed layout_completed painting_children
 
i_widget visibility_changed parent_position_changed layout_completed i_graphics_context mouse_event
 
i_widget visibility_changed parent_position_changed layout_completed i_graphics_context const neogfx::mouse_event query_mouse_cursor
 
i_widget visibility_changed parent_position_changed layout_completed i_graphics_context const neogfx::mouse_event neogfx::mouse_cursor focus_event
 
- Public Attributes inherited from neogfx::layout_item< Base >
define_property(property_category::soft_geometry, point, Position, position) define_property(property_category cache< pointiOrigin
 
cache< mat33iCombinedTransformation
 
- Protected Types inherited from neogfx::scrollable_widget< framed_widget< widget<> > >
enum  usv_stage_e
 

Detailed Description

Definition at line 45 of file item_view.hpp.

Constructor & Destructor Documentation

◆ item_view() [1/3]

neogfx::item_view::item_view ( frame_style  aFrameStyle = frame_style::SolidFrame,
neogfx::scrollbar_style  aScrollbarStyle = neogfx::scrollbar_style::Normal 
)

◆ item_view() [2/3]

neogfx::item_view::item_view ( i_widget aParent,
frame_style  aFrameStyle = frame_style::SolidFrame,
neogfx::scrollbar_style  aScrollbarStyle = neogfx::scrollbar_style::Normal 
)

◆ item_view() [3/3]

neogfx::item_view::item_view ( i_layout aLayout,
frame_style  aFrameStyle = frame_style::SolidFrame,
neogfx::scrollbar_style  aScrollbarStyle = neogfx::scrollbar_style::Normal 
)

◆ ~item_view()

neogfx::item_view::~item_view ( )

Member Function Documentation

◆ begin_edit()

void neogfx::item_view::begin_edit ( )

◆ beginning_edit()

bool neogfx::item_view::beginning_edit ( ) const

◆ capture_released()

void neogfx::item_view::capture_released ( )
overrideprotected

◆ cell_rect() [1/2]

rect neogfx::item_view::cell_rect ( item_presentation_model_index const &  aItemIndex,
cell_part  aPart = cell_part::Base 
) const

◆ cell_rect() [2/2]

rect neogfx::item_view::cell_rect ( item_presentation_model_index const &  aItemIndex,
i_graphics_context aGc,
cell_part  aPart = cell_part::Base 
) const

◆ column_info_changed()

virtual void neogfx::item_view::column_info_changed ( item_model_index::value_type  aColumnIndex)
protectedvirtual

◆ column_width()

virtual dimension neogfx::item_view::column_width ( uint32_t  aColumn) const
protectedpure virtual

Implemented in neogfx::list_view, and neogfx::table_view.

◆ current_index_changed()

virtual void neogfx::item_view::current_index_changed ( const optional_item_presentation_model_index &  aCurrentIndex,
const optional_item_presentation_model_index &  aPreviousIndex 
)
protectedvirtual

Reimplemented in neogfx::drop_list_view.

◆ disable_hot_tracking()

void neogfx::item_view::disable_hot_tracking ( )

◆ drag_drop_object()

i_drag_drop_object const * neogfx::item_view::drag_drop_object ( point const &  aPosition)
overrideprotectedvirtual

◆ edit()

void neogfx::item_view::edit ( item_presentation_model_index const &  aItemIndex)

◆ editing()

const optional_item_presentation_model_index & neogfx::item_view::editing ( ) const

◆ editor()

i_widget & neogfx::item_view::editor ( ) const

◆ editor_has_text_edit()

bool neogfx::item_view::editor_has_text_edit ( ) const

◆ editor_text_edit()

text_edit & neogfx::item_view::editor_text_edit ( ) const

◆ enable_drag_drop_source()

void neogfx::item_view::enable_drag_drop_source ( bool  aEnable = true)
finalvirtual

◆ enable_hot_tracking()

void neogfx::item_view::enable_hot_tracking ( )

◆ end_edit()

void neogfx::item_view::end_edit ( bool  aCommit)

◆ ending_edit()

bool neogfx::item_view::ending_edit ( ) const

◆ first_visible_item()

std::pair< item_model_index::value_type, coordinate > neogfx::item_view::first_visible_item ( i_graphics_context aGc) const
protected

◆ focus_gained()

void neogfx::item_view::focus_gained ( focus_reason  aFocusReason)
overrideprotected

◆ focus_policy()

neogfx::focus_policy neogfx::item_view::focus_policy ( ) const
overrideprotected

◆ has_model()

bool neogfx::item_view::has_model ( ) const

◆ has_presentation_model()

bool neogfx::item_view::has_presentation_model ( ) const

◆ has_selection_model()

bool neogfx::item_view::has_selection_model ( ) const

◆ header_view_updated()

void neogfx::item_view::header_view_updated ( header_view aHeaderView,
header_view_update_reason  aUpdateReason 
)
overrideprotectedvirtual

◆ hit_test()

widget_part neogfx::item_view::hit_test ( const point aPosition) const
overrideprotected

◆ hot_tracking()

bool neogfx::item_view::hot_tracking ( ) const

◆ is_drag_drop_object()

bool neogfx::item_view::is_drag_drop_object ( point const &  aPosition) const
overrideprotectedvirtual

◆ is_valid()

bool neogfx::item_view::is_valid ( item_presentation_model_index const &  aItemIndex) const

◆ is_visible()

bool neogfx::item_view::is_visible ( item_presentation_model_index const &  aItemIndex,
bool  aPartiallyVisible = false 
) const

◆ item_added() [1/2]

virtual void neogfx::item_view::item_added ( const item_model_index aItemIndex)
protectedvirtual

◆ item_added() [2/2]

virtual void neogfx::item_view::item_added ( item_presentation_model_index const &  aItemIndex)
protectedvirtual

◆ item_at()

optional_item_presentation_model_index neogfx::item_view::item_at ( const point aPosition,
bool  aIncludeEntireRow = true 
) const

◆ item_changed() [1/2]

virtual void neogfx::item_view::item_changed ( const item_model_index aItemIndex)
protectedvirtual

◆ item_changed() [2/2]

virtual void neogfx::item_view::item_changed ( item_presentation_model_index const &  aItemIndex)
protectedvirtual

◆ item_display_rect()

virtual rect neogfx::item_view::item_display_rect ( bool  aIntersectItemArea = false) const
protectedpure virtual

Implemented in neogfx::list_view, and neogfx::table_view.

◆ item_model_changed()

virtual void neogfx::item_view::item_model_changed ( const i_item_model &  aItemModel)
protectedvirtual

◆ item_removed() [1/2]

virtual void neogfx::item_view::item_removed ( const item_model_index aItemIndex)
protectedvirtual

◆ item_removed() [2/2]

virtual void neogfx::item_view::item_removed ( item_presentation_model_index const &  aItemIndex)
protectedvirtual

◆ items_filtered()

virtual void neogfx::item_view::items_filtered ( )
protectedvirtual

Reimplemented in neogfx::drop_list_view.

◆ items_filtering()

virtual void neogfx::item_view::items_filtering ( )
protectedvirtual

◆ items_sorted()

virtual void neogfx::item_view::items_sorted ( )
protectedvirtual

◆ items_sorting()

virtual void neogfx::item_view::items_sorting ( )
protectedvirtual

◆ items_updated()

virtual void neogfx::item_view::items_updated ( )
protectedvirtual

◆ key_pressed()

bool neogfx::item_view::key_pressed ( scan_code_e  aScanCode,
key_code_e  aKeyCode,
key_modifiers_e  aKeyModifiers 
)
overrideprotected

◆ last_visible_item()

std::pair< item_model_index::value_type, coordinate > neogfx::item_view::last_visible_item ( i_graphics_context aGc) const
protected

◆ layout_items_completed()

void neogfx::item_view::layout_items_completed ( )
overrideprotected

◆ make_visible()

bool neogfx::item_view::make_visible ( item_presentation_model_index const &  aItemIndex)

◆ mode_changed()

virtual void neogfx::item_view::mode_changed ( item_selection_mode  aNewMode)
protectedvirtual

◆ model() [1/2]

i_item_model & neogfx::item_view::model ( )

◆ model() [2/2]

const i_item_model & neogfx::item_view::model ( ) const

◆ model_changed()

virtual void neogfx::item_view::model_changed ( )
protectedpure virtual

Implemented in neogfx::list_view, and neogfx::table_view.

◆ mouse_button_double_clicked()

void neogfx::item_view::mouse_button_double_clicked ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
overrideprotected

◆ mouse_button_pressed()

void neogfx::item_view::mouse_button_pressed ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
overrideprotected

◆ mouse_button_released()

void neogfx::item_view::mouse_button_released ( mouse_button  aButton,
const point aPosition 
)
overrideprotected

◆ mouse_entered()

void neogfx::item_view::mouse_entered ( const point aPosition)
overrideprotected

◆ mouse_left()

void neogfx::item_view::mouse_left ( )
overrideprotected

◆ mouse_moved()

void neogfx::item_view::mouse_moved ( const point aPosition,
key_modifiers_e  aKeyModifiers 
)
overrideprotected

◆ paint()

void neogfx::item_view::paint ( i_graphics_context aGc) const
overrideprotected

◆ palette_color()

color neogfx::item_view::palette_color ( color_role  aColorRole) const
override

◆ presentation_model() [1/2]

i_item_presentation_model & neogfx::item_view::presentation_model ( )

◆ presentation_model() [2/2]

const i_item_presentation_model & neogfx::item_view::presentation_model ( ) const

◆ presentation_model_added()

virtual void neogfx::item_view::presentation_model_added ( i_item_presentation_model &  aNewModel)
protectedvirtual

◆ presentation_model_changed() [1/2]

virtual void neogfx::item_view::presentation_model_changed ( )
protectedpure virtual

Implemented in neogfx::list_view, and neogfx::table_view.

◆ presentation_model_changed() [2/2]

virtual void neogfx::item_view::presentation_model_changed ( i_item_presentation_model &  aNewModel,
i_item_presentation_model &  aOldModel 
)
protectedvirtual

◆ presentation_model_removed()

virtual void neogfx::item_view::presentation_model_removed ( i_item_presentation_model &  aOldModel)
protectedvirtual

◆ row_rect()

rect neogfx::item_view::row_rect ( item_presentation_model_index const &  aItemIndex) const

◆ scroll_area()

rect neogfx::item_view::scroll_area ( ) const
overrideprotectedvirtual

◆ scroll_page()

size neogfx::item_view::scroll_page ( ) const
overrideprotectedvirtual

◆ scroll_page_updated()

void neogfx::item_view::scroll_page_updated ( )
overrideprotectedvirtual

◆ selection_changed()

virtual void neogfx::item_view::selection_changed ( const item_selection aCurrentSelection,
const item_selection aPreviousSelection 
)
protectedvirtual

◆ selection_model() [1/2]

i_item_selection_model & neogfx::item_view::selection_model ( )

◆ selection_model() [2/2]

const i_item_selection_model & neogfx::item_view::selection_model ( ) const

◆ selection_model_changed()

virtual void neogfx::item_view::selection_model_changed ( )
protectedpure virtual

Implemented in neogfx::list_view, and neogfx::table_view.

◆ set_model() [1/2]

void neogfx::item_view::set_model ( i_item_model &  aModel)

◆ set_model() [2/2]

void neogfx::item_view::set_model ( i_ref_ptr< i_item_model > const &  aModel)

◆ set_presentation_model() [1/2]

void neogfx::item_view::set_presentation_model ( i_item_presentation_model &  aPresentationModel)

◆ set_presentation_model() [2/2]

void neogfx::item_view::set_presentation_model ( i_ref_ptr< i_item_presentation_model > const &  aPresentationModel)

◆ set_selection_model() [1/2]

void neogfx::item_view::set_selection_model ( i_item_selection_model aSelectionModel)

◆ set_selection_model() [2/2]

void neogfx::item_view::set_selection_model ( i_ref_ptr< i_item_selection_model > const &  aSelectionModel)

◆ size_policy()

neogfx::size_policy neogfx::item_view::size_policy ( ) const
overrideprotected

◆ text_input()

bool neogfx::item_view::text_input ( i_string const &  aText)
overrideprotected

◆ total_item_area()

virtual size neogfx::item_view::total_item_area ( i_units_context const &  aUnitsContext) const
protectedpure virtual

◆ tree_changed()

virtual void neogfx::item_view::tree_changed ( )
protectedpure virtual

Implemented in neogfx::list_view, and neogfx::table_view.

◆ update_scrollbar_visibility() [1/2]

void neogfx::item_view::update_scrollbar_visibility ( )
overrideprotectedvirtual

◆ update_scrollbar_visibility() [2/2]

bool neogfx::item_view::update_scrollbar_visibility ( usv_stage_e  aStage)
overrideprotectedvirtual

◆ updating_models()

bool neogfx::item_view::updating_models ( ) const
overrideprotectedvirtual

◆ use_scrollbar_container_updater()

bool neogfx::item_view::use_scrollbar_container_updater ( ) const
overrideprotectedvirtual

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