nomlib
Loading...
Searching...
No Matches
nom::UIDataViewList Class Reference

#include <UIDataViewList.hpp>

Inheritance diagram for nom::UIDataViewList:
[legend]

Public Member Functions

 UIDataViewList ()
 Default constructor; initialize default selection.
virtual ~UIDataViewList ()
 Destructor.
std::string column_title (int col) const
bool set_column_title (int col, const std::string &name)
Public Member Functions inherited from nom::UIWidget
 UIWidget ()
 Default constructor; initialize default title element ID.
virtual ~UIWidget ()
 Destructor.
virtual Point2i position () const
 Get the position of the widget.
virtual Size2i size () const
 Get the size of the widget.
virtual void set_position (const Point2i &pos)
 Set the position of the widget.
virtual void set_size (const Size2i &dims)
 Set the size of the widget.
UIContextcontext () const
rocket::ElementDocument * document () const
bool valid () const
bool valid (rocket::Element *target) const
bool visible () const
const std::string & title_id () const
std::string title () const
uint32 text_alignment (rocket::Element *target) const
 Get an element's text alignment.
bool set_context (UIContext *ctx)
bool load_document_file (const std::string &filename)
void show ()
void hide ()
void close ()
void set_focus (uint32 focus=FocusPolicy::FOCUS)
 Set the focus policy.
bool hit_test (rocket::Element *target, const Point2i &pt)
 Perform a bounds coordinates collision test.
void set_title (const std::string &text)
void set_title_id (const std::string &id)
void set_font (rocket::Element *target, const std::string &font)
void set_font_size (rocket::Element *target, int point_size)
bool set_alignment (uint32 alignment)
void set_text_alignment (rocket::Element *element, uint32 alignment)
void register_event_listener (rocket::Element *element, const std::string &ev, UIEventListener *observer, bool interruptible=false)
 Register an event listener for an element.

Additional Inherited Members

Public Types inherited from nom::UIWidget
enum  FocusPolicy { NONE = rocket::ElementDocument::FocusFlags::NONE , FOCUS = rocket::ElementDocument::FocusFlags::FOCUS , MODAL = rocket::ElementDocument::FocusFlags::MODAL }
typedef UIWidget self_type
typedef self_type * raw_ptr

Detailed Description

Constructor & Destructor Documentation

◆ UIDataViewList()

nom::UIDataViewList::UIDataViewList ( )

Default constructor; initialize default selection.

See also
UIWidget::set_desktop, UIWidget::load_document_file, UIWidget::show.

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