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

#include <i_widget.hpp>

Inheritance diagram for neogfx::i_widget:
neogfx::i_layout_item neogfx::i_keyboard_handler neogfx::i_mouse_handler neogfx::i_skinnable_item neolib::i_reference_counted neogfx::i_property_owner neogfx::i_anchorable neogfx::i_object neolib::i_object neolib::i_lifetime neogfx::DesignStudio::i_element_caddy neogfx::i_image_widget neogfx::i_status_bar neogfx::i_terminal neogfx::i_text_widget neogfx::i_title_bar neogfx::i_window neolib::lifetime< neogfx::i_window >

Classes

struct  layout_already_set
 
struct  no_children
 
struct  no_layout
 
struct  no_parent
 
struct  no_root
 
struct  no_surface
 
struct  no_update_rect
 
struct  not_child
 
struct  widget_cannot_capture
 
struct  widget_cannot_defer_layout
 
struct  widget_not_entered
 
struct  widget_not_focused
 

Public Member Functions

 declare_event (device_metrics_updated, const i_widget &) declare_event(child_added
 
i_widgetdeclare_event (child_removed, i_widget &) declare_event(visibility_changed) declare_event(position_changed) declare_event(parent_position_changed) declare_event(size_changed) declare_event(layout_completed) declare_event(painting
 
i_widget i_graphics_contextdeclare_event (painting_children, i_graphics_context &) declare_event(painted
 
i_widget i_graphics_context i_graphics_contextdeclare_event (mouse_event, const neogfx::mouse_event &) declare_event(non_client_mouse_event
 
i_widget i_graphics_context i_graphics_context const neogfx::non_client_mouse_eventdeclare_event (query_mouse_cursor, neogfx::mouse_cursor &) declare_event(keyboard_event
 
virtual ~i_widget ()=default
 
virtual bool is_singular () const =0
 
virtual void set_singular (bool aSingular)=0
 
virtual bool is_root () const =0
 
virtual bool has_root () const =0
 
virtual const i_windowroot () const =0
 
virtual i_windowroot ()=0
 
virtual void set_root (i_window &aRoot)=0
 
virtual bool has_surface () const =0
 
virtual bool is_surface () const =0
 
virtual const i_surfacesurface () const =0
 
virtual i_surfacesurface ()=0
 
virtual const i_surfacereal_surface () const =0
 
virtual i_surfacereal_surface ()=0
 
virtual bool has_parent () const =0
 
virtual const i_widgetparent () const =0
 
virtual i_widgetparent ()=0
 
virtual void set_parent (i_widget &aParent)=0
 
virtual void parent_changed ()=0
 
virtual bool adding_child () const =0
 
virtual i_widgetadd (i_widget &aChild)=0
 
virtual i_widgetadd (const i_ref_ptr< i_widget > &aChild)=0
 
virtual void remove (i_widget &aChild, bool aSingular, i_ref_ptr< i_widget > &aChildRef)=0
 
virtual void remove_all ()=0
 
virtual bool has_children () const =0
 
virtual const widget_listchildren () const =0
 
virtual widget_list::const_iterator last () const =0
 
virtual widget_list::iterator last ()=0
 
virtual widget_list::const_iterator find (const i_widget &aChild, bool aThrowIfNotFound=true) const =0
 
virtual widget_list::iterator find (const i_widget &aChild, bool aThrowIfNotFound=true)=0
 
virtual void bring_child_to_front (const i_widget &aChild)=0
 
virtual void send_child_to_back (const i_widget &aChild)=0
 
virtual layer_t layer () const =0
 
virtual void set_layer (layer_t aLayer)=0
 
virtual const i_widgetbefore () const =0
 
virtual i_widgetbefore ()=0
 
virtual const i_widgetafter () const =0
 
virtual i_widgetafter ()=0
 
virtual void link_before (i_widget *aPreviousWidget)=0
 
virtual void link_after (i_widget *aNextWidget)=0
 
virtual void unlink ()=0
 
virtual bool has_layout () const =0
 
virtual void set_layout (i_layout &aLayout, bool aMoveExistingItems=true)=0
 
virtual void set_layout (const i_ref_ptr< i_layout > &aLayout, bool aMoveExistingItems=true)=0
 
virtual const i_layoutlayout () const =0
 
virtual i_layoutlayout ()=0
 
virtual bool can_defer_layout () const =0
 
virtual bool has_layout_manager () const =0
 
virtual const i_widgetlayout_manager () const =0
 
virtual i_widgetlayout_manager ()=0
 
virtual bool is_managing_layout () const =0
 
virtual bool has_parent_layout () const =0
 
virtual const i_layoutparent_layout () const =0
 
virtual i_layoutparent_layout ()=0
 
virtual i_optional< neogfx::layout_reason > & layout_reason ()=0
 
virtual void layout_items (bool aDefer=false)=0
 
virtual void layout_items_started ()=0
 
virtual bool layout_items_in_progress () const =0
 
virtual void layout_items_completed ()=0
 
virtual bool has_logical_coordinate_system () const =0
 
virtual neogfx::logical_coordinate_system logical_coordinate_system () const =0
 
virtual void set_logical_coordinate_system (const optional_logical_coordinate_system &aLogicalCoordinateSystem)=0
 
virtual rect non_client_rect () const =0
 
virtual rect client_rect (bool aExtendIntoPadding=true) const =0
 
virtual void move (const point &aPosition)=0
 
virtual void moved ()=0
 
virtual void parent_moved ()=0
 
virtual size extents () const =0
 
virtual bool resizing () const =0
 
virtual void resize (const size &aSize)=0
 
virtual void resized ()=0
 
virtual const i_widgetget_widget_at (const point &aPosition) const =0
 
virtual i_widgetget_widget_at (const point &aPosition)=0
 
virtual neogfx::widget_type widget_type () const =0
 
virtual bool part_active (widget_part aPart) const =0
 
virtual widget_part part (const point &aPosition) const =0
 
virtual widget_part hit_test (const point &aPosition) const =0
 
virtual neogfx::view const & view () const =0
 
virtual neogfx::viewview ()=0
 
virtual layer_t render_layer () const =0
 
virtual void set_render_layer (const std::optional< layer_t > &aLayer)=0
 
virtual bool can_update () const =0
 
virtual bool update (bool aIncludeNonClient=false)=0
 
virtual bool update (const rect &aUpdateRect)=0
 
virtual bool requires_update () const =0
 
virtual rect update_rect () const =0
 
virtual rect default_clip_rect (bool aIncludeNonClient=false) const =0
 
virtual bool ready_to_render () const =0
 
virtual void render (i_graphics_context &aGc) const =0
 
virtual void paint_non_client (i_graphics_context &aGc) const =0
 
virtual void paint_non_client_after (i_graphics_context &aGc) const =0
 
virtual void paint (i_graphics_context &aGc) const =0
 
virtual double opacity () const =0
 
virtual void set_opacity (double aOpacity)=0
 
virtual bool has_background_opacity () const =0
 
virtual double background_opacity () const =0
 
virtual void set_background_opacity (double aOpacity)=0
 
virtual bool has_palette () const =0
 
virtual const i_palettepalette () const =0
 
virtual void set_palette (const i_palette &aPalette)=0
 
virtual bool has_palette_color (color_role aColorRole) const =0
 
virtual color palette_color (color_role aColorRole) const =0
 
virtual void set_palette_color (color_role aColorRole, const optional_color &aColor)=0
 
virtual neogfx::color container_background_color () const =0
 
virtual bool has_font_role () const =0
 
virtual neogfx::font_role font_role () const =0
 
virtual void set_font_role (const optional_font_role &aFontRole)=0
 
virtual bool has_font () const =0
 
virtual const neogfx::font & font () const =0
 
virtual void set_font (optional_font const &aFont)=0
 
virtual bool visible () const =0
 
virtual bool effectively_visible () const =0
 
virtual bool hidden () const =0
 
virtual bool effectively_hidden () const =0
 
virtual bool show (bool aVisible)=0
 
virtual bool enabled () const =0
 
virtual bool effectively_enabled () const =0
 
virtual bool disabled () const =0
 
virtual bool effectively_disabled () const =0
 
virtual bool enable (bool aEnable)=0
 
virtual bool entered (bool aChildEntered=false) const =0
 
virtual bool can_capture () const =0
 
virtual bool capturing () const =0
 
virtual const optional_pointcapture_position () const =0
 
virtual void set_capture (capture_reason aReason=capture_reason::Other, const optional_point &aPosition={})=0
 
virtual void release_capture (capture_reason aReason=capture_reason::Other)=0
 
virtual void non_client_set_capture ()=0
 
virtual void non_client_release_capture ()=0
 
virtual void captured ()=0
 
virtual void capture_released ()=0
 
virtual bool has_focus_policy () const =0
 
virtual neogfx::focus_policy focus_policy () const =0
 
virtual void set_focus_policy (const optional_focus_policy &aFocusPolicy)=0
 
virtual bool can_set_focus (focus_reason aFocusReason) const =0
 
virtual bool has_focus () const =0
 
virtual bool child_has_focus () const =0
 
virtual bool set_focus (focus_reason aFocusReason=focus_reason::Other)=0
 
virtual bool release_focus ()=0
 
virtual void focus_gained (focus_reason aFocusReason)=0
 
virtual void focus_lost (focus_reason aFocusReason)=0
 
virtual bool consider_ancestors_for_mouse_events () const =0
 
virtual void set_consider_ancestors_for_mouse_events (bool aConsiderAncestors=true)=0
 
virtual bool ignore_mouse_events (bool aConsiderAncestors=true) const =0
 
virtual void set_ignore_mouse_events (bool aIgnoreMouseEvents)=0
 
virtual bool ignore_non_client_mouse_events (bool aConsiderAncestors=true) const =0
 
virtual void set_ignore_non_client_mouse_events (bool aIgnoreNonClientMouseEvents)=0
 
virtual neogfx::mouse_event_location mouse_event_location () const =0
 
virtual bool mouse_wheel_scrolled (mouse_wheel aWheel, const point &aPosition, delta aDelta, key_modifiers_e aKeyModifiers)=0
 
virtual void mouse_button_pressed (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void mouse_button_double_clicked (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void mouse_button_released (mouse_button aButton, const point &aPosition)=0
 
virtual void mouse_moved (const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void mouse_entered (const point &aPosition)=0
 
virtual void mouse_left ()=0
 
virtual point mouse_position () const =0
 
virtual neogfx::mouse_cursor mouse_cursor () const =0
 
virtual const i_widgetwidget_for_mouse_event (const point &aPosition, bool aForHitTest=false) const =0
 
virtual i_widgetwidget_for_mouse_event (const point &aPosition, bool aForHitTest=false)=0
 
template<typename WidgetType , typename... Args>
WidgetType & emplace (Args &&... args)
 
bool same_surface (const i_widget &aWidget) const
 
bool same_real_surface (const i_widget &aWidget) const
 
bool is_parent_of (const i_widget &aWidget) const
 
bool is_ancestor_of (const i_widget &aWidget) const
 
bool is_descendent_of (const i_widget &aWidget) const
 
bool is_sibling_of (const i_widget &aWidget) const
 
ref_ptr< i_widgetremove (i_widget &aChild, bool aSingular=true)
 
void bring_to_front ()
 
void send_to_back ()
 
point to_window_coordinates (const point &aClientCoordinates) const
 
rect to_window_coordinates (const rect &aClientCoordinates) const
 
point to_client_coordinates (const point &aWindowCoordinates) const
 
rect to_client_coordinates (const rect &aWindowCoordinates) const
 
bool show ()
 
bool hide ()
 
bool enable ()
 
bool disable ()
 
double transparency () const
 
void set_transparency (double aTransparency)
 
double background_transparency () const
 
void set_background_transparency (double aTransparency)
 
bool background_is_transparent () const
 
color effective_background_color () const
 
bool has_background_color () const
 
color background_color () const
 
void set_background_color (const optional_color &aBackgroundColor=optional_color{})
 
bool has_foreground_color () const
 
color foreground_color () const
 
void set_foreground_color (const optional_color &aForegroundColor=optional_color{})
 
bool has_base_color () const
 
color base_color () const
 
void set_base_color (const optional_color &aBaseColor=optional_color{})
 
bool has_alternate_base_color () const
 
color alternate_base_color () const
 
void set_alternate_base_color (const optional_color &aAlternateBaseColor=optional_color{})
 
bool handling_mouse_event () const
 
bool mouse_event_is_client () const
 
bool mouse_event_is_non_client () const
 
virtual const i_widgetas_widget () const=0
 
virtual i_widgetas_widget ()=0
 
- Public Member Functions inherited from neogfx::i_layout_item
virtual ~i_layout_item ()=default
 
virtual const i_stringid () const =0
 
virtual void set_id (const i_string &aId)=0
 
virtual bool is_cache () const =0
 
virtual bool is_layout () const =0
 
virtual const i_layoutas_layout () const =0
 
virtual i_layoutas_layout ()=0
 
virtual bool is_spacer () const =0
 
virtual const i_spacer & as_spacer () const =0
 
virtual i_spacer & as_spacer ()=0
 
virtual bool is_widget () const =0
 
virtual bool has_parent_layout_item () const =0
 
virtual const i_layout_itemparent_layout_item () const =0
 
virtual i_layout_itemparent_layout_item ()=0
 
virtual void set_parent_layout (i_layout *aParentLayout)=0
 
virtual bool has_parent_widget () const =0
 
virtual const i_widgetparent_widget () const =0
 
virtual i_widgetparent_widget ()=0
 
virtual void set_parent_widget (i_widget *aParentWidget)=0
 
virtual void update_layout (bool aDeferLayout=true, bool aAncestors=false)=0
 
virtual void layout_as (const point &aPosition, const size &aSize)=0
 
virtual void invalidate_combined_transformation ()=0
 
virtual void fix_weightings (bool aRecalculate=true)=0
 
virtual void layout_item_enabled (i_layout_item &aItem)=0
 
virtual void layout_item_disabled (i_layout_item &aItem)=0
 
template<typename LayoutType >
bool has_ancestor_layout () const
 
template<typename LayoutType >
LayoutType * find_ancestor_layout ()
 
template<typename LayoutType >
LayoutType & ancestor_layout ()
 
bool same_parent_widget_as (i_layout_item const &aOther) 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
 
- Public Member Functions inherited from neogfx::i_anchorable
virtual i_objectas_object ()=0
 
virtual i_anchor & anchor_to (i_anchorable &aRhs, const i_string &aLhsAnchor, anchor_constraint_function aLhsFunction, const i_string &aRhsAnchor, anchor_constraint_function aRhsFunction)=0
 
virtual const anchor_map_typeanchors () const =0
 
virtual anchor_map_typeanchors ()=0
 
i_anchor & anchor_to (i_anchorable &aRhs, std::string const &aLhsAnchor, anchor_constraint_function aLhsFunction, std::string const &aRhsAnchor, anchor_constraint_function aRhsFunction)
 
- Public Member Functions inherited from neogfx::i_keyboard_handler
virtual bool key_pressed (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers)=0
 
virtual bool key_released (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers)=0
 
virtual bool text_input (i_string const &aText)=0
 
virtual bool sys_text_input (i_string const &aText)=0
 
- Public Member Functions inherited from neogfx::i_skinnable_item
virtual ~i_skinnable_item ()=default
 
virtual bool is_widget () const =0
 
virtual rect element_rect (skin_element aElement) const =0
 

Public Attributes

i_widget i_graphics_context i_graphics_context const neogfx::non_client_mouse_event const neogfx::keyboard_event &declare_event(focus_event, neogfx::focus_event, focus_reason) public typedef neolib::i_vector< i_ref_ptr< i_widget > > widget_list
 

Additional Inherited Members

- Public Types inherited from neogfx::i_layout_item
typedef i_layout_item abstract_type
 
- Public Types inherited from neogfx::i_anchorable
typedef i_anchorable abstract_type
 
typedef neolib::i_map< i_string, i_anchor * > anchor_map_type
 

Detailed Description

Definition at line 49 of file i_widget.hpp.

Constructor & Destructor Documentation

◆ ~i_widget()

virtual neogfx::i_widget::~i_widget ( )
virtualdefault

Member Function Documentation

◆ add() [1/2]

virtual i_widget & neogfx::i_widget::add ( const i_ref_ptr< i_widget > &  aChild)
pure virtual

◆ add() [2/2]

virtual i_widget & neogfx::i_widget::add ( i_widget aChild)
pure virtual

◆ adding_child()

virtual bool neogfx::i_widget::adding_child ( ) const
pure virtual

◆ after() [1/2]

virtual const i_widget & neogfx::i_widget::after ( ) const
pure virtual

◆ after() [2/2]

virtual i_widget & neogfx::i_widget::after ( )
pure virtual

◆ alternate_base_color()

color neogfx::i_widget::alternate_base_color ( ) const
inline

Definition at line 418 of file i_widget.hpp.

◆ as_widget() [1/2]

virtual const i_widget & neogfx::i_layout_item::as_widget ( ) const
virtual

Implements neogfx::i_layout_item.

Reimplemented in neogfx::i_window.

◆ as_widget() [2/2]

virtual i_widget & neogfx::i_layout_item::as_widget ( )
virtual

Implements neogfx::i_layout_item.

Reimplemented in neogfx::i_window.

◆ background_color()

color neogfx::i_widget::background_color ( ) const
inline

Definition at line 382 of file i_widget.hpp.

◆ background_is_transparent()

bool neogfx::i_widget::background_is_transparent ( ) const
inline

Definition at line 367 of file i_widget.hpp.

◆ background_opacity()

virtual double neogfx::i_widget::background_opacity ( ) const
pure virtual

◆ background_transparency()

double neogfx::i_widget::background_transparency ( ) const
inline

Definition at line 359 of file i_widget.hpp.

◆ base_color()

color neogfx::i_widget::base_color ( ) const
inline

Definition at line 406 of file i_widget.hpp.

◆ before() [1/2]

virtual const i_widget & neogfx::i_widget::before ( ) const
pure virtual

◆ before() [2/2]

virtual i_widget & neogfx::i_widget::before ( )
pure virtual

◆ bring_child_to_front()

virtual void neogfx::i_widget::bring_child_to_front ( const i_widget aChild)
pure virtual

◆ bring_to_front()

void neogfx::i_widget::bring_to_front ( )
inline

Definition at line 306 of file i_widget.hpp.

◆ can_capture()

virtual bool neogfx::i_widget::can_capture ( ) const
pure virtual

◆ can_defer_layout()

virtual bool neogfx::i_widget::can_defer_layout ( ) const
pure virtual

◆ can_set_focus()

virtual bool neogfx::i_widget::can_set_focus ( focus_reason  aFocusReason) const
pure virtual

◆ can_update()

virtual bool neogfx::i_widget::can_update ( ) const
pure virtual

◆ capture_position()

virtual const optional_point & neogfx::i_widget::capture_position ( ) const
pure virtual

◆ capture_released()

virtual void neogfx::i_widget::capture_released ( )
pure virtual

◆ captured()

virtual void neogfx::i_widget::captured ( )
pure virtual

◆ capturing()

virtual bool neogfx::i_widget::capturing ( ) const
pure virtual

◆ child_has_focus()

virtual bool neogfx::i_widget::child_has_focus ( ) const
pure virtual

◆ children()

virtual const widget_list & neogfx::i_widget::children ( ) const
pure virtual

◆ client_rect()

virtual rect neogfx::i_widget::client_rect ( bool  aExtendIntoPadding = true) const
pure virtual

◆ consider_ancestors_for_mouse_events()

virtual bool neogfx::i_widget::consider_ancestors_for_mouse_events ( ) const
pure virtual

◆ container_background_color()

virtual neogfx::color neogfx::i_widget::container_background_color ( ) const
pure virtual

◆ declare_event() [1/5]

i_widget & neogfx::i_widget::declare_event ( child_removed  ,
i_widget  
)

◆ declare_event() [2/5]

neogfx::i_widget::declare_event ( device_metrics_updated  ,
const i_widget  
)

◆ declare_event() [3/5]

i_widget i_graphics_context i_graphics_context & neogfx::i_widget::declare_event ( mouse_event  ,
const neogfx::mouse_event  
)

◆ declare_event() [4/5]

i_widget i_graphics_context & neogfx::i_widget::declare_event ( painting_children  ,
i_graphics_context  
)

◆ declare_event() [5/5]

i_widget i_graphics_context i_graphics_context const neogfx::non_client_mouse_event & neogfx::i_widget::declare_event ( query_mouse_cursor  ,
neogfx::mouse_cursor  
)

◆ default_clip_rect()

virtual rect neogfx::i_widget::default_clip_rect ( bool  aIncludeNonClient = false) const
pure virtual

◆ disable()

bool neogfx::i_widget::disable ( )
inline

Definition at line 346 of file i_widget.hpp.

◆ disabled()

virtual bool neogfx::i_widget::disabled ( ) const
pure virtual

◆ effective_background_color()

color neogfx::i_widget::effective_background_color ( ) const
inline

Definition at line 371 of file i_widget.hpp.

◆ effectively_disabled()

virtual bool neogfx::i_widget::effectively_disabled ( ) const
pure virtual

◆ effectively_enabled()

virtual bool neogfx::i_widget::effectively_enabled ( ) const
pure virtual

◆ effectively_hidden()

virtual bool neogfx::i_widget::effectively_hidden ( ) const
pure virtual

◆ effectively_visible()

virtual bool neogfx::i_widget::effectively_visible ( ) const
pure virtual

◆ emplace()

template<typename WidgetType , typename... Args>
WidgetType & neogfx::i_widget::emplace ( Args &&...  args)
inline

Definition at line 258 of file i_widget.hpp.

◆ enable() [1/2]

bool neogfx::i_widget::enable ( )
inline

Definition at line 342 of file i_widget.hpp.

◆ enable() [2/2]

virtual bool neogfx::i_widget::enable ( bool  aEnable)
pure virtual

◆ enabled()

virtual bool neogfx::i_widget::enabled ( ) const
pure virtual

◆ entered()

virtual bool neogfx::i_widget::entered ( bool  aChildEntered = false) const
pure virtual

◆ extents()

virtual size neogfx::i_widget::extents ( ) const
pure virtual

◆ find() [1/2]

virtual widget_list::const_iterator neogfx::i_widget::find ( const i_widget aChild,
bool  aThrowIfNotFound = true 
) const
pure virtual

◆ find() [2/2]

virtual widget_list::iterator neogfx::i_widget::find ( const i_widget aChild,
bool  aThrowIfNotFound = true 
)
pure virtual

◆ focus_gained()

virtual void neogfx::i_widget::focus_gained ( focus_reason  aFocusReason)
pure virtual

◆ focus_lost()

virtual void neogfx::i_widget::focus_lost ( focus_reason  aFocusReason)
pure virtual

◆ focus_policy()

virtual neogfx::focus_policy neogfx::i_widget::focus_policy ( ) const
pure virtual

◆ font()

virtual const neogfx::font & neogfx::i_widget::font ( ) const
pure virtual

◆ font_role()

virtual neogfx::font_role neogfx::i_widget::font_role ( ) const
pure virtual

◆ foreground_color()

color neogfx::i_widget::foreground_color ( ) const
inline

Definition at line 394 of file i_widget.hpp.

◆ get_widget_at() [1/2]

virtual const i_widget & neogfx::i_widget::get_widget_at ( const point aPosition) const
pure virtual

◆ get_widget_at() [2/2]

virtual i_widget & neogfx::i_widget::get_widget_at ( const point aPosition)
pure virtual

◆ handling_mouse_event()

bool neogfx::i_widget::handling_mouse_event ( ) const
inline

Definition at line 427 of file i_widget.hpp.

◆ has_alternate_base_color()

bool neogfx::i_widget::has_alternate_base_color ( ) const
inline

Definition at line 414 of file i_widget.hpp.

◆ has_background_color()

bool neogfx::i_widget::has_background_color ( ) const
inline

Definition at line 378 of file i_widget.hpp.

◆ has_background_opacity()

virtual bool neogfx::i_widget::has_background_opacity ( ) const
pure virtual

◆ has_base_color()

bool neogfx::i_widget::has_base_color ( ) const
inline

Definition at line 402 of file i_widget.hpp.

◆ has_children()

virtual bool neogfx::i_widget::has_children ( ) const
pure virtual

◆ has_focus()

virtual bool neogfx::i_widget::has_focus ( ) const
pure virtual

◆ has_focus_policy()

virtual bool neogfx::i_widget::has_focus_policy ( ) const
pure virtual

◆ has_font()

virtual bool neogfx::i_widget::has_font ( ) const
pure virtual

◆ has_font_role()

virtual bool neogfx::i_widget::has_font_role ( ) const
pure virtual

◆ has_foreground_color()

bool neogfx::i_widget::has_foreground_color ( ) const
inline

Definition at line 390 of file i_widget.hpp.

◆ has_layout()

virtual bool neogfx::i_widget::has_layout ( ) const
pure virtual

◆ has_layout_manager()

virtual bool neogfx::i_widget::has_layout_manager ( ) const
pure virtual

Implements neogfx::i_layout_item.

◆ has_logical_coordinate_system()

virtual bool neogfx::i_widget::has_logical_coordinate_system ( ) const
pure virtual

◆ has_palette()

virtual bool neogfx::i_widget::has_palette ( ) const
pure virtual

◆ has_palette_color()

virtual bool neogfx::i_widget::has_palette_color ( color_role  aColorRole) const
pure virtual

◆ has_parent()

virtual bool neogfx::i_widget::has_parent ( ) const
pure virtual

◆ has_parent_layout()

virtual bool neogfx::i_widget::has_parent_layout ( ) const
pure virtual

Implements neogfx::i_layout_item.

◆ has_root()

virtual bool neogfx::i_widget::has_root ( ) const
pure virtual

◆ has_surface()

virtual bool neogfx::i_widget::has_surface ( ) const
pure virtual

Implemented in neogfx::i_window.

◆ hidden()

virtual bool neogfx::i_widget::hidden ( ) const
pure virtual

◆ hide()

bool neogfx::i_widget::hide ( )
inline

Definition at line 338 of file i_widget.hpp.

◆ hit_test()

virtual widget_part neogfx::i_widget::hit_test ( const point aPosition) const
pure virtual

◆ ignore_mouse_events()

virtual bool neogfx::i_widget::ignore_mouse_events ( bool  aConsiderAncestors = true) const
pure virtual

◆ ignore_non_client_mouse_events()

virtual bool neogfx::i_widget::ignore_non_client_mouse_events ( bool  aConsiderAncestors = true) const
pure virtual

◆ is_ancestor_of()

bool neogfx::i_widget::is_ancestor_of ( const i_widget aWidget) const
inline

Definition at line 280 of file i_widget.hpp.

◆ is_descendent_of()

bool neogfx::i_widget::is_descendent_of ( const i_widget aWidget) const
inline

Definition at line 291 of file i_widget.hpp.

◆ is_managing_layout()

virtual bool neogfx::i_widget::is_managing_layout ( ) const
pure virtual

◆ is_parent_of()

bool neogfx::i_widget::is_parent_of ( const i_widget aWidget) const
inline

Definition at line 276 of file i_widget.hpp.

◆ is_root()

virtual bool neogfx::i_widget::is_root ( ) const
pure virtual

◆ is_sibling_of()

bool neogfx::i_widget::is_sibling_of ( const i_widget aWidget) const
inline

Definition at line 295 of file i_widget.hpp.

◆ is_singular()

virtual bool neogfx::i_widget::is_singular ( ) const
pure virtual

◆ is_surface()

virtual bool neogfx::i_widget::is_surface ( ) const
pure virtual

Implemented in neogfx::i_window.

◆ last() [1/2]

virtual widget_list::const_iterator neogfx::i_widget::last ( ) const
pure virtual

◆ last() [2/2]

virtual widget_list::iterator neogfx::i_widget::last ( )
pure virtual

◆ layer()

virtual layer_t neogfx::i_widget::layer ( ) const
pure virtual

◆ layout() [1/2]

virtual const i_layout & neogfx::i_widget::layout ( ) const
pure virtual

◆ layout() [2/2]

virtual i_layout & neogfx::i_widget::layout ( )
pure virtual

◆ layout_items()

virtual void neogfx::i_widget::layout_items ( bool  aDefer = false)
pure virtual

◆ layout_items_completed()

virtual void neogfx::i_widget::layout_items_completed ( )
pure virtual

◆ layout_items_in_progress()

virtual bool neogfx::i_widget::layout_items_in_progress ( ) const
pure virtual

◆ layout_items_started()

virtual void neogfx::i_widget::layout_items_started ( )
pure virtual

◆ layout_manager() [1/2]

virtual const i_widget & neogfx::i_widget::layout_manager ( ) const
pure virtual

Implements neogfx::i_layout_item.

◆ layout_manager() [2/2]

virtual i_widget & neogfx::i_widget::layout_manager ( )
pure virtual

Implements neogfx::i_layout_item.

◆ layout_reason()

virtual i_optional< neogfx::layout_reason > & neogfx::i_widget::layout_reason ( )
pure virtual

◆ link_after()

virtual void neogfx::i_widget::link_after ( i_widget aNextWidget)
pure virtual

◆ link_before()

virtual void neogfx::i_widget::link_before ( i_widget aPreviousWidget)
pure virtual

◆ logical_coordinate_system()

virtual neogfx::logical_coordinate_system neogfx::i_widget::logical_coordinate_system ( ) const
pure virtual

◆ mouse_button_double_clicked()

virtual void neogfx::i_widget::mouse_button_double_clicked ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ mouse_button_pressed()

virtual void neogfx::i_widget::mouse_button_pressed ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ mouse_button_released()

virtual void neogfx::i_widget::mouse_button_released ( mouse_button  aButton,
const point aPosition 
)
pure virtual

◆ mouse_cursor()

virtual neogfx::mouse_cursor neogfx::i_widget::mouse_cursor ( ) const
pure virtual

◆ mouse_entered()

virtual void neogfx::i_widget::mouse_entered ( const point aPosition)
pure virtual

◆ mouse_event_is_client()

bool neogfx::i_widget::mouse_event_is_client ( ) const
inline

Definition at line 431 of file i_widget.hpp.

◆ mouse_event_is_non_client()

bool neogfx::i_widget::mouse_event_is_non_client ( ) const
inline

Definition at line 435 of file i_widget.hpp.

◆ mouse_event_location()

virtual neogfx::mouse_event_location neogfx::i_widget::mouse_event_location ( ) const
pure virtual

◆ mouse_left()

virtual void neogfx::i_widget::mouse_left ( )
pure virtual

◆ mouse_moved()

virtual void neogfx::i_widget::mouse_moved ( const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ mouse_position()

virtual point neogfx::i_widget::mouse_position ( ) const
pure virtual

Implemented in neogfx::i_window.

◆ mouse_wheel_scrolled()

virtual bool neogfx::i_widget::mouse_wheel_scrolled ( mouse_wheel  aWheel,
const point aPosition,
delta  aDelta,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ move()

virtual void neogfx::i_widget::move ( const point aPosition)
pure virtual

◆ moved()

virtual void neogfx::i_widget::moved ( )
pure virtual

◆ non_client_rect()

virtual rect neogfx::i_widget::non_client_rect ( ) const
pure virtual

◆ non_client_release_capture()

virtual void neogfx::i_widget::non_client_release_capture ( )
pure virtual

◆ non_client_set_capture()

virtual void neogfx::i_widget::non_client_set_capture ( )
pure virtual

◆ opacity()

virtual double neogfx::i_widget::opacity ( ) const
pure virtual

◆ paint()

virtual void neogfx::i_widget::paint ( i_graphics_context aGc) const
pure virtual

◆ paint_non_client()

virtual void neogfx::i_widget::paint_non_client ( i_graphics_context aGc) const
pure virtual

◆ paint_non_client_after()

virtual void neogfx::i_widget::paint_non_client_after ( i_graphics_context aGc) const
pure virtual

◆ palette()

virtual const i_palette & neogfx::i_widget::palette ( ) const
pure virtual

◆ palette_color()

virtual color neogfx::i_widget::palette_color ( color_role  aColorRole) const
pure virtual

◆ parent() [1/2]

virtual const i_widget & neogfx::i_widget::parent ( ) const
pure virtual

◆ parent() [2/2]

virtual i_widget & neogfx::i_widget::parent ( )
pure virtual

◆ parent_changed()

virtual void neogfx::i_widget::parent_changed ( )
pure virtual

◆ parent_layout() [1/2]

virtual const i_layout & neogfx::i_widget::parent_layout ( ) const
pure virtual

Implements neogfx::i_layout_item.

◆ parent_layout() [2/2]

virtual i_layout & neogfx::i_widget::parent_layout ( )
pure virtual

Implements neogfx::i_layout_item.

◆ parent_moved()

virtual void neogfx::i_widget::parent_moved ( )
pure virtual

◆ part()

virtual widget_part neogfx::i_widget::part ( const point aPosition) const
pure virtual

◆ part_active()

virtual bool neogfx::i_widget::part_active ( widget_part  aPart) const
pure virtual

◆ ready_to_render()

virtual bool neogfx::i_widget::ready_to_render ( ) const
pure virtual

Implemented in neogfx::i_window.

◆ real_surface() [1/2]

virtual const i_surface & neogfx::i_widget::real_surface ( ) const
pure virtual

◆ real_surface() [2/2]

virtual i_surface & neogfx::i_widget::real_surface ( )
pure virtual

◆ release_capture()

virtual void neogfx::i_widget::release_capture ( capture_reason  aReason = capture_reason::Other)
pure virtual

◆ release_focus()

virtual bool neogfx::i_widget::release_focus ( )
pure virtual

◆ remove() [1/2]

virtual void neogfx::i_widget::remove ( i_widget aChild,
bool  aSingular,
i_ref_ptr< i_widget > &  aChildRef 
)
pure virtual

◆ remove() [2/2]

ref_ptr< i_widget > neogfx::i_widget::remove ( i_widget aChild,
bool  aSingular = true 
)
inline

Definition at line 299 of file i_widget.hpp.

◆ remove_all()

virtual void neogfx::i_widget::remove_all ( )
pure virtual

◆ render()

virtual void neogfx::i_widget::render ( i_graphics_context aGc) const
pure virtual

◆ render_layer()

virtual layer_t neogfx::i_widget::render_layer ( ) const
pure virtual

◆ requires_update()

virtual bool neogfx::i_widget::requires_update ( ) const
pure virtual

◆ resize()

virtual void neogfx::i_widget::resize ( const size aSize)
pure virtual

◆ resized()

virtual void neogfx::i_widget::resized ( )
pure virtual

◆ resizing()

virtual bool neogfx::i_widget::resizing ( ) const
pure virtual

◆ root() [1/2]

virtual const i_window & neogfx::i_widget::root ( ) const
pure virtual

◆ root() [2/2]

virtual i_window & neogfx::i_widget::root ( )
pure virtual

◆ same_real_surface()

bool neogfx::i_widget::same_real_surface ( const i_widget aWidget) const
inline

Definition at line 270 of file i_widget.hpp.

◆ same_surface()

bool neogfx::i_widget::same_surface ( const i_widget aWidget) const
inline

Definition at line 265 of file i_widget.hpp.

◆ send_child_to_back()

virtual void neogfx::i_widget::send_child_to_back ( const i_widget aChild)
pure virtual

◆ send_to_back()

void neogfx::i_widget::send_to_back ( )
inline

Definition at line 311 of file i_widget.hpp.

◆ set_alternate_base_color()

void neogfx::i_widget::set_alternate_base_color ( const optional_color aAlternateBaseColor = optional_color{})
inline

Definition at line 422 of file i_widget.hpp.

◆ set_background_color()

void neogfx::i_widget::set_background_color ( const optional_color aBackgroundColor = optional_color{})
inline

Definition at line 386 of file i_widget.hpp.

◆ set_background_opacity()

virtual void neogfx::i_widget::set_background_opacity ( double  aOpacity)
pure virtual

◆ set_background_transparency()

void neogfx::i_widget::set_background_transparency ( double  aTransparency)
inline

Definition at line 363 of file i_widget.hpp.

◆ set_base_color()

void neogfx::i_widget::set_base_color ( const optional_color aBaseColor = optional_color{})
inline

Definition at line 410 of file i_widget.hpp.

◆ set_capture()

virtual void neogfx::i_widget::set_capture ( capture_reason  aReason = capture_reason::Other,
const optional_point aPosition = {} 
)
pure virtual

◆ set_consider_ancestors_for_mouse_events()

virtual void neogfx::i_widget::set_consider_ancestors_for_mouse_events ( bool  aConsiderAncestors = true)
pure virtual

◆ set_focus()

virtual bool neogfx::i_widget::set_focus ( focus_reason  aFocusReason = focus_reason::Other)
pure virtual

◆ set_focus_policy()

virtual void neogfx::i_widget::set_focus_policy ( const optional_focus_policy aFocusPolicy)
pure virtual

◆ set_font()

virtual void neogfx::i_widget::set_font ( optional_font const &  aFont)
pure virtual

◆ set_font_role()

virtual void neogfx::i_widget::set_font_role ( const optional_font_role aFontRole)
pure virtual

◆ set_foreground_color()

void neogfx::i_widget::set_foreground_color ( const optional_color aForegroundColor = optional_color{})
inline

Definition at line 398 of file i_widget.hpp.

◆ set_ignore_mouse_events()

virtual void neogfx::i_widget::set_ignore_mouse_events ( bool  aIgnoreMouseEvents)
pure virtual

◆ set_ignore_non_client_mouse_events()

virtual void neogfx::i_widget::set_ignore_non_client_mouse_events ( bool  aIgnoreNonClientMouseEvents)
pure virtual

◆ set_layer()

virtual void neogfx::i_widget::set_layer ( layer_t  aLayer)
pure virtual

◆ set_layout() [1/2]

virtual void neogfx::i_widget::set_layout ( const i_ref_ptr< i_layout > &  aLayout,
bool  aMoveExistingItems = true 
)
pure virtual

◆ set_layout() [2/2]

virtual void neogfx::i_widget::set_layout ( i_layout aLayout,
bool  aMoveExistingItems = true 
)
pure virtual

◆ set_logical_coordinate_system()

virtual void neogfx::i_widget::set_logical_coordinate_system ( const optional_logical_coordinate_system aLogicalCoordinateSystem)
pure virtual

◆ set_opacity()

virtual void neogfx::i_widget::set_opacity ( double  aOpacity)
pure virtual

◆ set_palette()

virtual void neogfx::i_widget::set_palette ( const i_palette aPalette)
pure virtual

◆ set_palette_color()

virtual void neogfx::i_widget::set_palette_color ( color_role  aColorRole,
const optional_color aColor 
)
pure virtual

◆ set_parent()

virtual void neogfx::i_widget::set_parent ( i_widget aParent)
pure virtual

◆ set_render_layer()

virtual void neogfx::i_widget::set_render_layer ( const std::optional< layer_t > &  aLayer)
pure virtual

◆ set_root()

virtual void neogfx::i_widget::set_root ( i_window aRoot)
pure virtual

◆ set_singular()

virtual void neogfx::i_widget::set_singular ( bool  aSingular)
pure virtual

◆ set_transparency()

void neogfx::i_widget::set_transparency ( double  aTransparency)
inline

Definition at line 355 of file i_widget.hpp.

◆ show() [1/2]

bool neogfx::i_widget::show ( )
inline

Definition at line 334 of file i_widget.hpp.

◆ show() [2/2]

virtual bool neogfx::i_widget::show ( bool  aVisible)
pure virtual

◆ surface() [1/2]

virtual const i_surface & neogfx::i_widget::surface ( ) const
pure virtual

Implemented in neogfx::i_window.

◆ surface() [2/2]

virtual i_surface & neogfx::i_widget::surface ( )
pure virtual

Implemented in neogfx::i_window.

◆ to_client_coordinates() [1/2]

point neogfx::i_widget::to_client_coordinates ( const point aWindowCoordinates) const
inline

Definition at line 325 of file i_widget.hpp.

◆ to_client_coordinates() [2/2]

rect neogfx::i_widget::to_client_coordinates ( const rect aWindowCoordinates) const
inline

Definition at line 329 of file i_widget.hpp.

◆ to_window_coordinates() [1/2]

point neogfx::i_widget::to_window_coordinates ( const point aClientCoordinates) const
inline

Definition at line 317 of file i_widget.hpp.

◆ to_window_coordinates() [2/2]

rect neogfx::i_widget::to_window_coordinates ( const rect aClientCoordinates) const
inline

Definition at line 321 of file i_widget.hpp.

◆ transparency()

double neogfx::i_widget::transparency ( ) const
inline

Definition at line 351 of file i_widget.hpp.

◆ unlink()

virtual void neogfx::i_widget::unlink ( )
pure virtual

◆ update() [1/2]

virtual bool neogfx::i_widget::update ( bool  aIncludeNonClient = false)
pure virtual

◆ update() [2/2]

virtual bool neogfx::i_widget::update ( const rect aUpdateRect)
pure virtual

◆ update_rect()

virtual rect neogfx::i_widget::update_rect ( ) const
pure virtual

◆ view() [1/2]

virtual neogfx::view const & neogfx::i_widget::view ( ) const
pure virtual

◆ view() [2/2]

virtual neogfx::view & neogfx::i_widget::view ( )
pure virtual

◆ visible()

virtual bool neogfx::i_widget::visible ( ) const
pure virtual

Implements neogfx::i_layout_item.

◆ widget_for_mouse_event() [1/2]

virtual const i_widget & neogfx::i_widget::widget_for_mouse_event ( const point aPosition,
bool  aForHitTest = false 
) const
pure virtual

◆ widget_for_mouse_event() [2/2]

virtual i_widget & neogfx::i_widget::widget_for_mouse_event ( const point aPosition,
bool  aForHitTest = false 
)
pure virtual

◆ widget_type()

virtual neogfx::widget_type neogfx::i_widget::widget_type ( ) const
pure virtual

Member Data Documentation

◆ widget_list

i_widget i_graphics_context i_graphics_context const neogfx::non_client_mouse_event const neogfx::keyboard_event& declare_event (focus_event, neogfx::focus_event, focus_reason) public typedef neolib::i_vector<i_ref_ptr<i_widget> > neogfx::i_widget::widget_list

Definition at line 70 of file i_widget.hpp.


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