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

#include <i_surface.hpp>

Inheritance diagram for 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 neogfx::i_surface_window

Classes

struct  no_native_surface
 
struct  not_a_window
 

Public Member Functions

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 surface_style style () const =0
 
virtual void set_style (surface_style aStyle)=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 49 of file i_surface.hpp.

Constructor & Destructor Documentation

◆ ~i_surface()

virtual neogfx::i_surface::~i_surface ( )
virtualdefault

Member Function Documentation

◆ as_surface_window() [1/2]

virtual const i_surface_window & neogfx::i_surface::as_surface_window ( ) const
pure virtual

◆ as_surface_window() [2/2]

virtual i_surface_window & neogfx::i_surface::as_surface_window ( )
pure virtual

◆ can_close()

virtual bool neogfx::i_surface::can_close ( ) const
pure virtual

◆ close()

virtual void neogfx::i_surface::close ( )
pure virtual

◆ has_invalidated_area()

virtual bool neogfx::i_surface::has_invalidated_area ( ) const
pure virtual

◆ has_native_surface()

virtual bool neogfx::i_surface::has_native_surface ( ) const
pure virtual

◆ has_parent_surface()

virtual bool neogfx::i_surface::has_parent_surface ( ) const
pure virtual

◆ invalidate_surface()

virtual void neogfx::i_surface::invalidate_surface ( const rect aInvalidatedRect,
bool  aInternal = true 
)
pure virtual

◆ invalidated_area()

virtual const rect & neogfx::i_surface::invalidated_area ( ) const
pure virtual

◆ is_closed()

virtual bool neogfx::i_surface::is_closed ( ) const
pure virtual

◆ is_nested_window()

virtual bool neogfx::i_surface::is_nested_window ( ) const
pure virtual

◆ is_owner_of()

virtual bool neogfx::i_surface::is_owner_of ( const i_surface aChildSurface) const
pure virtual

◆ is_strong()

virtual bool neogfx::i_surface::is_strong ( ) const
pure virtual

◆ is_weak()

virtual bool neogfx::i_surface::is_weak ( ) const
pure virtual

◆ is_window()

virtual bool neogfx::i_surface::is_window ( ) const
pure virtual

◆ layout_surface()

virtual void neogfx::i_surface::layout_surface ( )
pure virtual

◆ logical_coordinate_system()

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

◆ logical_coordinates()

virtual neogfx::logical_coordinates neogfx::i_surface::logical_coordinates ( ) const
pure virtual

◆ move_surface()

virtual void neogfx::i_surface::move_surface ( const point aPosition)
pure virtual

◆ native_surface() [1/2]

virtual const i_native_surface & neogfx::i_surface::native_surface ( ) const
pure virtual

◆ native_surface() [2/2]

virtual i_native_surface & neogfx::i_surface::native_surface ( )
pure virtual

◆ parent_surface() [1/2]

virtual const i_surface & neogfx::i_surface::parent_surface ( ) const
pure virtual

◆ parent_surface() [2/2]

virtual i_surface & neogfx::i_surface::parent_surface ( )
pure virtual

◆ pause_rendering()

virtual void neogfx::i_surface::pause_rendering ( )
pure virtual

◆ render_surface()

virtual void neogfx::i_surface::render_surface ( )
pure virtual

◆ rendering_engine()

virtual i_rendering_engine & neogfx::i_surface::rendering_engine ( ) const
pure virtual

◆ rendering_priority()

virtual double neogfx::i_surface::rendering_priority ( ) const
pure virtual

◆ resize_surface()

virtual void neogfx::i_surface::resize_surface ( const size aExtents)
pure virtual

◆ resume_rendering()

virtual void neogfx::i_surface::resume_rendering ( )
pure virtual

◆ set_logical_coordinate_system()

virtual void neogfx::i_surface::set_logical_coordinate_system ( neogfx::logical_coordinate_system  aSystem)
pure virtual

◆ set_logical_coordinates()

virtual void neogfx::i_surface::set_logical_coordinates ( const neogfx::logical_coordinates aCoordinates)
pure virtual

◆ set_style()

virtual void neogfx::i_surface::set_style ( surface_style  aStyle)
pure virtual

Implemented in neogfx::i_surface_window.

◆ set_surface_opacity()

virtual void neogfx::i_surface::set_surface_opacity ( double  aOpacity)
pure virtual

◆ set_surface_transparency()

virtual void neogfx::i_surface::set_surface_transparency ( double  aTransparency)
pure virtual

◆ style()

virtual surface_style neogfx::i_surface::style ( ) const
pure virtual

Implemented in neogfx::i_surface_window.

◆ surface_extents()

virtual size neogfx::i_surface::surface_extents ( ) const
pure virtual

◆ surface_opacity()

virtual double neogfx::i_surface::surface_opacity ( ) const
pure virtual

◆ surface_position()

virtual point neogfx::i_surface::surface_position ( ) const
pure virtual

◆ surface_transparency()

virtual double neogfx::i_surface::surface_transparency ( ) const
pure virtual

◆ surface_type()

virtual neogfx::surface_type neogfx::i_surface::surface_type ( ) const
pure virtual

◆ validate()

virtual rect neogfx::i_surface::validate ( )
pure virtual

◆ z_order()

virtual double neogfx::i_surface::z_order ( ) const
pure virtual

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