Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::widgets::skeletons::content_view Class Reference

Classes

struct  events_type
 
struct  implementation
 

Public Types

enum  scrolls { scrolls::none, scrolls::horz, scrolls::vert, scrolls::both }
 
using graph_reference = paint::graphics &
 

Public Member Functions

 content_view (window handle)
 
 ~content_view ()
 
events_typeevents ()
 
bool enable_scrolls (scrolls which)
 
std::shared_ptr
< scroll_operation_interface
scroll_operation () const
 
void step (unsigned step_value, bool horz)
 
bool scroll (bool forwards, bool horz)
 
bool turn_page (bool forwards, bool horz)
 
void disp_area (const rectangle &da, const point &skew_horz_bar, const point &skew_vert_bar, const size &extra_px, bool try_update=true)
 
void content_size (const size &sz, bool try_update=true)
 
const sizecontent_size () const
 
const pointorigin () const
 
rectangle corner () const
 
void draw_corner (graph_reference)
 
rectangle view_area () const
 
rectangle view_area (const size &alt_content_size) const
 
unsigned extra_space (bool horz) const
 
void change_position (int pos, bool aligned, bool horz)
 
bool move_origin (const point &skew)
 Returns true if the origin is moved. More...
 
void sync (bool passive)
 
void pursue (const point &cursor)
 
void set_wheel_speed (std::function< unsigned()> fn)
 

Static Public Member Functions

static constexpr unsigned space ()
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
none 
horz 
vert 
both 

Constructor & Destructor Documentation

nana::widgets::skeletons::content_view::content_view ( window  handle)
nana::widgets::skeletons::content_view::~content_view ( )

Member Function Documentation

void nana::widgets::skeletons::content_view::change_position ( int  pos,
bool  aligned,
bool  horz 
)
void nana::widgets::skeletons::content_view::content_size ( const size sz,
bool  try_update = true 
)
const size & nana::widgets::skeletons::content_view::content_size ( ) const
rectangle nana::widgets::skeletons::content_view::corner ( ) const
void nana::widgets::skeletons::content_view::disp_area ( const rectangle da,
const point skew_horz_bar,
const point skew_vert_bar,
const size extra_px,
bool  try_update = true 
)
void nana::widgets::skeletons::content_view::draw_corner ( graph_reference  graph)
bool nana::widgets::skeletons::content_view::enable_scrolls ( scrolls  which)
content_view::events_type & nana::widgets::skeletons::content_view::events ( )
unsigned nana::widgets::skeletons::content_view::extra_space ( bool  horz) const
bool nana::widgets::skeletons::content_view::move_origin ( const point skew)

Returns true if the origin is moved.

const point & nana::widgets::skeletons::content_view::origin ( ) const
void nana::widgets::skeletons::content_view::pursue ( const point cursor)
bool nana::widgets::skeletons::content_view::scroll ( bool  forwards,
bool  horz 
)
std::shared_ptr< scroll_operation_interface > nana::widgets::skeletons::content_view::scroll_operation ( ) const
void nana::widgets::skeletons::content_view::set_wheel_speed ( std::function< unsigned()>  fn)
static constexpr unsigned nana::widgets::skeletons::content_view::space ( )
inlinestatic
void nana::widgets::skeletons::content_view::step ( unsigned  step_value,
bool  horz 
)
void nana::widgets::skeletons::content_view::sync ( bool  passive)
bool nana::widgets::skeletons::content_view::turn_page ( bool  forwards,
bool  horz 
)
rectangle nana::widgets::skeletons::content_view::view_area ( ) const
rectangle nana::widgets::skeletons::content_view::view_area ( const size alt_content_size) const