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

#include <surface_window.hpp>

Inheritance diagram for neogfx::surface_window:
neolib::reference_counted< Base, DeallocateOnRelease >

Public Member Functions

 define_declared_event (DpiChanged, dpi_changed) define_declared_event(Rendering
 
rendering define_declared_event (RenderingFinished, rendering_finished) define_declared_event(Closing
 
 surface_window (i_window &aWindow, std::function< void(i_surface_window &)> aNativeWindowCreator)
 
 ~surface_window ()
 
dimension horizontal_dpi () const final
 
dimension vertical_dpi () const final
 
dimension ppi () const final
 
bool metrics_available () const final
 
size extents () const final
 
dimension em_size () const final
 
bool device_metrics_available () const final
 
const i_device_metricsdevice_metrics () const final
 
i_rendering_enginerendering_engine () const final
 
bool is_strong () const final
 
bool is_weak () const final
 
bool can_close () const final
 
bool is_closed () const final
 
void close () final
 
bool has_parent_surface () const final
 
const i_surfaceparent_surface () const final
 
i_surfaceparent_surface () final
 
bool is_owner_of (const i_surface &aChildSurface) const final
 
bool is_window () const final
 
bool is_nested_window () const final
 
const i_surface_windowas_surface_window () const final
 
i_surface_windowas_surface_window () final
 
neogfx::surface_type surface_type () const final
 
neogfx::logical_coordinate_system logical_coordinate_system () const final
 
void set_logical_coordinate_system (neogfx::logical_coordinate_system aSystem) final
 
neogfx::logical_coordinates logical_coordinates () const final
 
void set_logical_coordinates (const neogfx::logical_coordinates &aCoordinates) final
 
double z_order () const final
 
void layout_surface () final
 
void invalidate_surface (const rect &aInvalidatedRect, bool aInternal=true) final
 
bool has_invalidated_area () const final
 
const rectinvalidated_area () const final
 
rect validate () final
 
double rendering_priority () const final
 
void render_surface () final
 
void pause_rendering () final
 
void resume_rendering () final
 
bool has_native_window () const final
 
const i_native_windownative_window () const final
 
i_native_windownative_window () final
 
void set_native_window (i_native_window &aNativeWindow) final
 
bool has_native_surface () const final
 
const i_native_surfacenative_surface () const final
 
i_native_surfacenative_surface () final
 
void handle_dpi_changed () final
 
point surface_position () const final
 
void move_surface (const point &aPosition) final
 
size surface_extents () const final
 
void resize_surface (const size &aExtents) final
 
double surface_opacity () const final
 
void set_surface_opacity (double aOpacity) final
 
double surface_transparency () const final
 
void set_surface_transparency (double aTransparency) final
 
bool has_clicked_widget () const final
 
i_widgetclicked_widget () const final
 
bool has_capturing_widget () const final
 
i_widgetcapturing_widget () const final
 
void set_capture (i_widget &aWidget) final
 
void release_capture (i_widget &aWidget) final
 
void non_client_set_capture (i_widget &aWidget) final
 
void non_client_release_capture (i_widget &aWidget) final
 
window_style style () const final
 
void set_style (window_style aStyle) final
 
const i_windowas_window () const final
 
i_windowas_window () final
 
const i_widgetas_widget () const final
 
i_widgetas_widget () final
 
const i_windowwindow_at_position (const point &aPosition, bool aForMouseEvent=false) const
 
i_windowwindow_at_position (const point &aPosition, bool aForMouseEvent=false)
 
const i_widgetwidget_for_mouse_event (const point &aPosition, bool aForHitTest=false) const
 
i_widgetwidget_for_mouse_event (const point &aPosition, bool aForHitTest=false)
 
- 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
 

Detailed Description

Definition at line 30 of file surface_window.hpp.

Constructor & Destructor Documentation

◆ surface_window()

neogfx::surface_window::surface_window ( i_window aWindow,
std::function< void(i_surface_window &)>  aNativeWindowCreator 
)

◆ ~surface_window()

neogfx::surface_window::~surface_window ( )

Member Function Documentation

◆ as_surface_window() [1/2]

const i_surface_window & neogfx::surface_window::as_surface_window ( ) const
final

◆ as_surface_window() [2/2]

i_surface_window & neogfx::surface_window::as_surface_window ( )
final

◆ as_widget() [1/2]

const i_widget & neogfx::surface_window::as_widget ( ) const
final

◆ as_widget() [2/2]

i_widget & neogfx::surface_window::as_widget ( )
final

◆ as_window() [1/2]

const i_window & neogfx::surface_window::as_window ( ) const
final

◆ as_window() [2/2]

i_window & neogfx::surface_window::as_window ( )
final

◆ can_close()

bool neogfx::surface_window::can_close ( ) const
final

◆ capturing_widget()

i_widget & neogfx::surface_window::capturing_widget ( ) const
final

◆ clicked_widget()

i_widget & neogfx::surface_window::clicked_widget ( ) const
final

◆ close()

void neogfx::surface_window::close ( )
final

◆ define_declared_event() [1/2]

neogfx::surface_window::define_declared_event ( DpiChanged  ,
dpi_changed   
)

◆ define_declared_event() [2/2]

rendering neogfx::surface_window::define_declared_event ( RenderingFinished  ,
rendering_finished   
)

◆ device_metrics()

const i_device_metrics & neogfx::surface_window::device_metrics ( ) const
final

◆ device_metrics_available()

bool neogfx::surface_window::device_metrics_available ( ) const
final

◆ em_size()

dimension neogfx::surface_window::em_size ( ) const
final

◆ extents()

size neogfx::surface_window::extents ( ) const
final

◆ handle_dpi_changed()

void neogfx::surface_window::handle_dpi_changed ( )
final

◆ has_capturing_widget()

bool neogfx::surface_window::has_capturing_widget ( ) const
final

◆ has_clicked_widget()

bool neogfx::surface_window::has_clicked_widget ( ) const
final

◆ has_invalidated_area()

bool neogfx::surface_window::has_invalidated_area ( ) const
final

◆ has_native_surface()

bool neogfx::surface_window::has_native_surface ( ) const
final

◆ has_native_window()

bool neogfx::surface_window::has_native_window ( ) const
final

◆ has_parent_surface()

bool neogfx::surface_window::has_parent_surface ( ) const
final

◆ horizontal_dpi()

dimension neogfx::surface_window::horizontal_dpi ( ) const
final

◆ invalidate_surface()

void neogfx::surface_window::invalidate_surface ( const rect aInvalidatedRect,
bool  aInternal = true 
)
final

◆ invalidated_area()

const rect & neogfx::surface_window::invalidated_area ( ) const
final

◆ is_closed()

bool neogfx::surface_window::is_closed ( ) const
final

◆ is_nested_window()

bool neogfx::surface_window::is_nested_window ( ) const
final

◆ is_owner_of()

bool neogfx::surface_window::is_owner_of ( const i_surface aChildSurface) const
final

◆ is_strong()

bool neogfx::surface_window::is_strong ( ) const
final

◆ is_weak()

bool neogfx::surface_window::is_weak ( ) const
final

◆ is_window()

bool neogfx::surface_window::is_window ( ) const
final

◆ layout_surface()

void neogfx::surface_window::layout_surface ( )
final

◆ logical_coordinate_system()

neogfx::logical_coordinate_system neogfx::surface_window::logical_coordinate_system ( ) const
final

◆ logical_coordinates()

neogfx::logical_coordinates neogfx::surface_window::logical_coordinates ( ) const
final

◆ metrics_available()

bool neogfx::surface_window::metrics_available ( ) const
final

◆ move_surface()

void neogfx::surface_window::move_surface ( const point aPosition)
final

◆ native_surface() [1/2]

const i_native_surface & neogfx::surface_window::native_surface ( ) const
final

◆ native_surface() [2/2]

i_native_surface & neogfx::surface_window::native_surface ( )
final

◆ native_window() [1/2]

const i_native_window & neogfx::surface_window::native_window ( ) const
final

◆ native_window() [2/2]

i_native_window & neogfx::surface_window::native_window ( )
final

◆ non_client_release_capture()

void neogfx::surface_window::non_client_release_capture ( i_widget aWidget)
final

◆ non_client_set_capture()

void neogfx::surface_window::non_client_set_capture ( i_widget aWidget)
final

◆ parent_surface() [1/2]

const i_surface & neogfx::surface_window::parent_surface ( ) const
final

◆ parent_surface() [2/2]

i_surface & neogfx::surface_window::parent_surface ( )
final

◆ pause_rendering()

void neogfx::surface_window::pause_rendering ( )
final

◆ ppi()

dimension neogfx::surface_window::ppi ( ) const
final

◆ release_capture()

void neogfx::surface_window::release_capture ( i_widget aWidget)
final

◆ render_surface()

void neogfx::surface_window::render_surface ( )
final

◆ rendering_engine()

i_rendering_engine & neogfx::surface_window::rendering_engine ( ) const
final

◆ rendering_priority()

double neogfx::surface_window::rendering_priority ( ) const
final

◆ resize_surface()

void neogfx::surface_window::resize_surface ( const size aExtents)
final

◆ resume_rendering()

void neogfx::surface_window::resume_rendering ( )
final

◆ set_capture()

void neogfx::surface_window::set_capture ( i_widget aWidget)
final

◆ set_logical_coordinate_system()

void neogfx::surface_window::set_logical_coordinate_system ( neogfx::logical_coordinate_system  aSystem)
final

◆ set_logical_coordinates()

void neogfx::surface_window::set_logical_coordinates ( const neogfx::logical_coordinates aCoordinates)
final

◆ set_native_window()

void neogfx::surface_window::set_native_window ( i_native_window aNativeWindow)
final

◆ set_style()

void neogfx::surface_window::set_style ( window_style  aStyle)
final

◆ set_surface_opacity()

void neogfx::surface_window::set_surface_opacity ( double  aOpacity)
final

◆ set_surface_transparency()

void neogfx::surface_window::set_surface_transparency ( double  aTransparency)
final

◆ style()

window_style neogfx::surface_window::style ( ) const
final

◆ surface_extents()

size neogfx::surface_window::surface_extents ( ) const
final

◆ surface_opacity()

double neogfx::surface_window::surface_opacity ( ) const
final

◆ surface_position()

point neogfx::surface_window::surface_position ( ) const
final

◆ surface_transparency()

double neogfx::surface_window::surface_transparency ( ) const
final

◆ surface_type()

neogfx::surface_type neogfx::surface_window::surface_type ( ) const
final

◆ validate()

rect neogfx::surface_window::validate ( )
final

◆ vertical_dpi()

dimension neogfx::surface_window::vertical_dpi ( ) const
final

◆ widget_for_mouse_event() [1/2]

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

◆ widget_for_mouse_event() [2/2]

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

◆ window_at_position() [1/2]

i_window & neogfx::surface_window::window_at_position ( const point aPosition,
bool  aForMouseEvent = false 
)

◆ window_at_position() [2/2]

const i_window & neogfx::surface_window::window_at_position ( const point aPosition,
bool  aForMouseEvent = false 
) const

◆ z_order()

double neogfx::surface_window::z_order ( ) const
final

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