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

#include <cursor.hpp>

Classes

struct  no_document
 

Public Member Functions

 define_event (PositionChanged, position_changed) define_event(AnchorChanged
 
 cursor ()
 
 cursor (i_document &aDocument)
 
bool has_document () const
 
i_documentdocument () const
 
void move (move_operation_e aMoveOperation)
 
position_type position () const
 
void set_position (position_type aPosition, bool aMoveAnchor=true)
 
position_type anchor () const
 
void set_anchor (position_type aAnchor)
 
bool anchored_over_entire_document () const
 
const color_or_gradientcolor () const
 
void set_color (const color_or_gradient &aColor)
 
cursor_style style () const
 
void set_style (cursor_style aStyle)
 
dimension width () const
 
void set_width (dimension aWidth)
 
std::chrono::milliseconds flash_interval () const
 
void set_flash_interval (std::chrono::milliseconds aInterval)
 
bool visible () const
 
bool hidden () const
 
void show ()
 
void hide ()
 

Public Attributes

anchor_changed define_event(AppearanceChanged, appearance_changed) public typedef std::size_t position_type
 

Detailed Description

Definition at line 38 of file cursor.hpp.

Constructor & Destructor Documentation

◆ cursor() [1/2]

neogfx::cursor::cursor ( )

◆ cursor() [2/2]

neogfx::cursor::cursor ( i_document aDocument)

Member Function Documentation

◆ anchor()

position_type neogfx::cursor::anchor ( ) const

◆ anchored_over_entire_document()

bool neogfx::cursor::anchored_over_entire_document ( ) const

◆ color()

const color_or_gradient & neogfx::cursor::color ( ) const

◆ define_event()

neogfx::cursor::define_event ( PositionChanged  ,
position_changed   
)

◆ document()

i_document & neogfx::cursor::document ( ) const

◆ flash_interval()

std::chrono::milliseconds neogfx::cursor::flash_interval ( ) const

◆ has_document()

bool neogfx::cursor::has_document ( ) const

◆ hidden()

bool neogfx::cursor::hidden ( ) const

◆ hide()

void neogfx::cursor::hide ( )

◆ move()

void neogfx::cursor::move ( move_operation_e  aMoveOperation)

◆ position()

position_type neogfx::cursor::position ( ) const

◆ set_anchor()

void neogfx::cursor::set_anchor ( position_type  aAnchor)

◆ set_color()

void neogfx::cursor::set_color ( const color_or_gradient aColor)

◆ set_flash_interval()

void neogfx::cursor::set_flash_interval ( std::chrono::milliseconds  aInterval)

◆ set_position()

void neogfx::cursor::set_position ( position_type  aPosition,
bool  aMoveAnchor = true 
)

◆ set_style()

void neogfx::cursor::set_style ( cursor_style  aStyle)

◆ set_width()

void neogfx::cursor::set_width ( dimension  aWidth)

◆ show()

void neogfx::cursor::show ( )

◆ style()

cursor_style neogfx::cursor::style ( ) const

◆ visible()

bool neogfx::cursor::visible ( ) const

◆ width()

dimension neogfx::cursor::width ( ) const

Member Data Documentation

◆ position_type

anchor_changed define_event (AppearanceChanged, appearance_changed) public typedef std::size_t neogfx::cursor::position_type

Definition at line 69 of file cursor.hpp.


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