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

#include <i_surface_window.hpp>

Inheritance diagram for neogfx::i_surface_window:
neogfx::i_surface neogfx::i_device_metrics neogfx::i_units_context neogfx::i_property_owner neolib::i_reference_counted neogfx::i_device_resolution neogfx::i_object neolib::i_object neolib::i_lifetime

Classes

struct  no_native_window
 
struct  widget_not_capturing
 
struct  widget_not_clicked
 

Public Types

typedef i_surface_window abstract_type
 

Public Member Functions

virtual bool has_native_window () const =0
 
virtual const i_native_windownative_window () const =0
 
virtual i_native_windownative_window ()=0
 
virtual void set_native_window (i_native_window &aNativeWindow)=0
 
virtual void handle_dpi_changed ()=0
 
virtual bool has_clicked_widget () const =0
 
virtual i_widgetclicked_widget () const =0
 
virtual bool has_capturing_widget () const =0
 
virtual i_widgetcapturing_widget () const =0
 
virtual void set_capture (i_widget &aWidget)=0
 
virtual void release_capture (i_widget &aWidget)=0
 
virtual void non_client_set_capture (i_widget &aWidget)=0
 
virtual void non_client_release_capture (i_widget &aWidget)=0
 
virtual mouse_event_location current_mouse_event_location () const =0
 
virtual bool is_closing () const =0
 
virtual bool native_window_can_close () const =0
 
virtual void native_window_closing ()=0
 
virtual void native_window_closed ()=0
 
virtual void native_window_focus_gained ()=0
 
virtual void native_window_focus_lost ()=0
 
virtual void native_window_resized ()=0
 
virtual void native_window_moved ()=0
 
virtual double native_window_rendering_priority () const =0
 
virtual bool native_window_ready_to_render () const =0
 
virtual void native_window_render (const rect &aInvalidatedRect) const =0
 
virtual void native_window_dismiss_children ()=0
 
virtual void native_window_mouse_wheel_scrolled (mouse_wheel aWheel, const point &aPosition, delta aDelta, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_mouse_button_pressed (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_mouse_button_double_clicked (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_mouse_button_released (mouse_button aButton, const point &aPosition)=0
 
virtual void native_window_mouse_moved (const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_non_client_mouse_wheel_scrolled (mouse_wheel aWheel, const point &aPosition, delta aDelta, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_non_client_mouse_button_pressed (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_non_client_mouse_button_double_clicked (mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_non_client_mouse_button_released (mouse_button aButton, const point &aPosition)=0
 
virtual void native_window_non_client_mouse_moved (const point &aPosition, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_mouse_entered (const point &aPosition)=0
 
virtual void native_window_mouse_left ()=0
 
virtual widget_part native_window_hit_test (const point &aPosition) const =0
 
virtual rect native_window_widget_part_rect (widget_part_e aWidgetPart) const =0
 
virtual void native_window_key_pressed (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_key_released (scan_code_e aScanCode, key_code_e aKeyCode, key_modifiers_e aKeyModifiers)=0
 
virtual void native_window_text_input (i_string const &aText)=0
 
virtual void native_window_sys_text_input (i_string const &aText)=0
 
virtual neogfx::mouse_cursor native_window_mouse_cursor () const =0
 
virtual void native_window_title_text_changed (i_string const &aTitleText)=0
 
virtual window_style style () const =0
 
virtual void set_style (window_style aStyle)=0
 
virtual const i_windowas_window () const =0
 
virtual i_windowas_window ()=0
 
virtual const i_widgetas_widget () const =0
 
virtual i_widgetas_widget ()=0
 
- Public Member Functions inherited from neogfx::i_surface
virtual ~i_surface ()=default
 
virtual i_rendering_enginerendering_engine () const =0
 
virtual bool has_parent_surface () const =0
 
virtual const i_surfaceparent_surface () const =0
 
virtual i_surfaceparent_surface ()=0
 
virtual bool is_owner_of (const i_surface &aChildSurface) const =0
 
virtual bool is_strong () const =0
 
virtual bool is_weak () const =0
 
virtual bool can_close () const =0
 
virtual bool is_closed () const =0
 
virtual void close ()=0
 
virtual bool is_window () const =0
 
virtual bool is_nested_window () const =0
 
virtual const i_surface_windowas_surface_window () const =0
 
virtual i_surface_windowas_surface_window ()=0
 
virtual neogfx::surface_type surface_type () const =0
 
virtual neogfx::logical_coordinate_system logical_coordinate_system () const =0
 
virtual void set_logical_coordinate_system (neogfx::logical_coordinate_system aSystem)=0
 
virtual neogfx::logical_coordinates logical_coordinates () const =0
 
virtual void set_logical_coordinates (const neogfx::logical_coordinates &aCoordinates)=0
 
virtual double z_order () const =0
 
virtual void layout_surface ()=0
 
virtual void invalidate_surface (const rect &aInvalidatedRect, bool aInternal=true)=0
 
virtual bool has_invalidated_area () const =0
 
virtual const rectinvalidated_area () const =0
 
virtual rect validate ()=0
 
virtual double rendering_priority () const =0
 
virtual void render_surface ()=0
 
virtual void pause_rendering ()=0
 
virtual void resume_rendering ()=0
 
virtual bool has_native_surface () const =0
 
virtual const i_native_surfacenative_surface () const =0
 
virtual i_native_surfacenative_surface ()=0
 
virtual point surface_position () const =0
 
virtual void move_surface (const point &aPosition)=0
 
virtual size surface_extents () const =0
 
virtual void resize_surface (const size &aExtents)=0
 
virtual double surface_opacity () const =0
 
virtual void set_surface_opacity (double aOpacity)=0
 
virtual double surface_transparency () const =0
 
virtual void set_surface_transparency (double aTransparency)=0
 
- Public Member Functions inherited from neogfx::i_device_metrics
virtual bool metrics_available () const =0
 
virtual size extents () const =0
 
virtual dimension em_size () const =0
 
- Public Member Functions inherited from neogfx::i_device_resolution
virtual dimension horizontal_dpi () const =0
 
virtual dimension vertical_dpi () const =0
 
virtual dimension ppi () const =0
 
- Public Member Functions inherited from neogfx::i_units_context
virtual ~i_units_context ()
 
virtual bool device_metrics_available () const =0
 
virtual const i_device_metricsdevice_metrics () const =0
 
dimension x2_dpi_scale_factor () const
 
dimension xn_dpi_scale_factor () const
 
dimension dpi_scale_factor () const
 
template<typename T >
std::enable_if_t< std::is_scalar_v< T >, T > dpi_scale (T aValue) const
 
dimension dpi_scale (dimension aValue) const
 
vector2 dpi_scale (const vector2 &aVector) const
 
size dpi_scale (const size &aSize) const
 
delta dpi_scale (const delta &aDelta) const
 
point dpi_scale (const point &aPoint) const
 
padding dpi_scale (const padding &aPadding) const
 
template<typename T >
T && dpi_select (T &&aLowDpiValue, T &&aHighDpiValue) const
 
- 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 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
 

Detailed Description

Definition at line 34 of file i_surface_window.hpp.

Member Typedef Documentation

◆ abstract_type

Member Function Documentation

◆ as_widget() [1/2]

virtual const i_widget & neogfx::i_surface_window::as_widget ( ) const
pure virtual

◆ as_widget() [2/2]

virtual i_widget & neogfx::i_surface_window::as_widget ( )
pure virtual

◆ as_window() [1/2]

virtual const i_window & neogfx::i_surface_window::as_window ( ) const
pure virtual

◆ as_window() [2/2]

virtual i_window & neogfx::i_surface_window::as_window ( )
pure virtual

◆ capturing_widget()

virtual i_widget & neogfx::i_surface_window::capturing_widget ( ) const
pure virtual

◆ clicked_widget()

virtual i_widget & neogfx::i_surface_window::clicked_widget ( ) const
pure virtual

◆ current_mouse_event_location()

virtual mouse_event_location neogfx::i_surface_window::current_mouse_event_location ( ) const
pure virtual

◆ handle_dpi_changed()

virtual void neogfx::i_surface_window::handle_dpi_changed ( )
pure virtual

◆ has_capturing_widget()

virtual bool neogfx::i_surface_window::has_capturing_widget ( ) const
pure virtual

◆ has_clicked_widget()

virtual bool neogfx::i_surface_window::has_clicked_widget ( ) const
pure virtual

◆ has_native_window()

virtual bool neogfx::i_surface_window::has_native_window ( ) const
pure virtual

◆ is_closing()

virtual bool neogfx::i_surface_window::is_closing ( ) const
pure virtual

◆ native_window() [1/2]

virtual const i_native_window & neogfx::i_surface_window::native_window ( ) const
pure virtual

◆ native_window() [2/2]

virtual i_native_window & neogfx::i_surface_window::native_window ( )
pure virtual

◆ native_window_can_close()

virtual bool neogfx::i_surface_window::native_window_can_close ( ) const
pure virtual

◆ native_window_closed()

virtual void neogfx::i_surface_window::native_window_closed ( )
pure virtual

◆ native_window_closing()

virtual void neogfx::i_surface_window::native_window_closing ( )
pure virtual

◆ native_window_dismiss_children()

virtual void neogfx::i_surface_window::native_window_dismiss_children ( )
pure virtual

◆ native_window_focus_gained()

virtual void neogfx::i_surface_window::native_window_focus_gained ( )
pure virtual

◆ native_window_focus_lost()

virtual void neogfx::i_surface_window::native_window_focus_lost ( )
pure virtual

◆ native_window_hit_test()

virtual widget_part neogfx::i_surface_window::native_window_hit_test ( const point aPosition) const
pure virtual

◆ native_window_key_pressed()

virtual void neogfx::i_surface_window::native_window_key_pressed ( scan_code_e  aScanCode,
key_code_e  aKeyCode,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_key_released()

virtual void neogfx::i_surface_window::native_window_key_released ( scan_code_e  aScanCode,
key_code_e  aKeyCode,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_mouse_button_double_clicked()

virtual void neogfx::i_surface_window::native_window_mouse_button_double_clicked ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_mouse_button_pressed()

virtual void neogfx::i_surface_window::native_window_mouse_button_pressed ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_mouse_button_released()

virtual void neogfx::i_surface_window::native_window_mouse_button_released ( mouse_button  aButton,
const point aPosition 
)
pure virtual

◆ native_window_mouse_cursor()

virtual neogfx::mouse_cursor neogfx::i_surface_window::native_window_mouse_cursor ( ) const
pure virtual

◆ native_window_mouse_entered()

virtual void neogfx::i_surface_window::native_window_mouse_entered ( const point aPosition)
pure virtual

◆ native_window_mouse_left()

virtual void neogfx::i_surface_window::native_window_mouse_left ( )
pure virtual

◆ native_window_mouse_moved()

virtual void neogfx::i_surface_window::native_window_mouse_moved ( const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_mouse_wheel_scrolled()

virtual void neogfx::i_surface_window::native_window_mouse_wheel_scrolled ( mouse_wheel  aWheel,
const point aPosition,
delta  aDelta,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_moved()

virtual void neogfx::i_surface_window::native_window_moved ( )
pure virtual

◆ native_window_non_client_mouse_button_double_clicked()

virtual void neogfx::i_surface_window::native_window_non_client_mouse_button_double_clicked ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_non_client_mouse_button_pressed()

virtual void neogfx::i_surface_window::native_window_non_client_mouse_button_pressed ( mouse_button  aButton,
const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_non_client_mouse_button_released()

virtual void neogfx::i_surface_window::native_window_non_client_mouse_button_released ( mouse_button  aButton,
const point aPosition 
)
pure virtual

◆ native_window_non_client_mouse_moved()

virtual void neogfx::i_surface_window::native_window_non_client_mouse_moved ( const point aPosition,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_non_client_mouse_wheel_scrolled()

virtual void neogfx::i_surface_window::native_window_non_client_mouse_wheel_scrolled ( mouse_wheel  aWheel,
const point aPosition,
delta  aDelta,
key_modifiers_e  aKeyModifiers 
)
pure virtual

◆ native_window_ready_to_render()

virtual bool neogfx::i_surface_window::native_window_ready_to_render ( ) const
pure virtual

◆ native_window_render()

virtual void neogfx::i_surface_window::native_window_render ( const rect aInvalidatedRect) const
pure virtual

◆ native_window_rendering_priority()

virtual double neogfx::i_surface_window::native_window_rendering_priority ( ) const
pure virtual

◆ native_window_resized()

virtual void neogfx::i_surface_window::native_window_resized ( )
pure virtual

◆ native_window_sys_text_input()

virtual void neogfx::i_surface_window::native_window_sys_text_input ( i_string const &  aText)
pure virtual

◆ native_window_text_input()

virtual void neogfx::i_surface_window::native_window_text_input ( i_string const &  aText)
pure virtual

◆ native_window_title_text_changed()

virtual void neogfx::i_surface_window::native_window_title_text_changed ( i_string const &  aTitleText)
pure virtual

◆ native_window_widget_part_rect()

virtual rect neogfx::i_surface_window::native_window_widget_part_rect ( widget_part_e  aWidgetPart) const
pure virtual

◆ non_client_release_capture()

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

◆ non_client_set_capture()

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

◆ release_capture()

virtual void neogfx::i_surface_window::release_capture ( i_widget aWidget)
pure virtual

◆ set_capture()

virtual void neogfx::i_surface_window::set_capture ( i_widget aWidget)
pure virtual

◆ set_native_window()

virtual void neogfx::i_surface_window::set_native_window ( i_native_window aNativeWindow)
pure virtual

◆ set_style()

virtual void neogfx::i_surface_window::set_style ( window_style  aStyle)
pure virtual

Implements neogfx::i_surface.

◆ style()

virtual window_style neogfx::i_surface_window::style ( ) const
pure virtual

Implements neogfx::i_surface.


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