ScummVM API documentation
Ultima::Nuvie::MsgScroll Class Reference
Inheritance diagram for Ultima::Nuvie::MsgScroll:
Ultima::Nuvie::GUI_Widget Ultima::Nuvie::CallBack Ultima::Nuvie::GUI_DragArea Ultima::Nuvie::GUI_CallBack Ultima::Nuvie::ConverseGump Ultima::Nuvie::ConverseGumpWOU Ultima::Nuvie::MsgScrollNewUI Ultima::Nuvie::ScrollWidgetGump

Public Member Functions

 MsgScroll (const Configuration *cfg, Font *f)
 
void init (const Configuration *cfg, Font *f)
 
bool init (const char *player_name)
 
void page_up ()
 
void page_down ()
 
virtual void move_scroll_down ()
 
virtual void move_scroll_up ()
 
void set_using_target_cursor (bool val)
 
void process_holding_buffer ()
 
MsgTextholding_buffer_get_token ()
 
bool is_holding_buffer_empty () const
 
virtual bool can_display_prompt () const
 
virtual bool parse_token (MsgText *token)
 
void add_token (MsgText *token)
 
bool remove_char ()
 
virtual void set_font (uint8 font_type)
 
virtual bool is_garg_font ()
 
template<class... TParam>
int print (const Std::string &format, TParam... param)
 
virtual void display_string (const Std::string &s, Font *f, bool include_on_map_window)
 
void display_string (const Std::string &s, Font *f, uint8 color, bool include_on_map_window)
 
void display_string (const Std::string &s, uint16 length, uint8 lang_num)
 
void display_string (const Std::string &s, bool include_on_map_window=true)
 
void display_string (const Std::string &s, uint8 color, bool include_on_map_window)
 
void display_fmt_string (const char *format,...)
 
void message (const char *string)
 
bool set_prompt (const char *new_prompt, Font *f=nullptr)
 
virtual void display_prompt ()
 
virtual void display_converse_prompt ()
 
void set_keyword_highlight (bool state)
 
void set_input_mode (bool state, const char *allowed=nullptr, bool can_escape=true, bool use_target_cursor=false, bool set_numbers_only_to_true=false)
 
virtual void set_talking (bool state, Actor *actor=nullptr)
 
bool is_talking () const
 
void set_show_cursor (bool state)
 
void set_autobreak (bool state)
 
void set_discard_whitespace (bool discard)
 
bool get_page_break () const
 
GUI_status KeyDown (const Common::KeyState &key) override
 
GUI_status MouseUp (int x, int y, Shared::MouseButton button) override
 
GUI_status MouseWheel (sint32 x, sint32 y) override
 
virtual Std::string get_token_string_at_pos (uint16 x, uint16 y)
 
void Display (bool full_redraw) override
 
void clearCursor (uint16 x, uint16 y)
 
virtual void drawCursor (uint16 x, uint16 y)
 
void set_page_break ()
 
virtual bool input_buf_add_char (char c)
 
virtual bool input_buf_remove_char ()
 
virtual bool is_converse_finished ()
 
bool has_input ()
 
Std::string get_input ()
 
const char * peek_at_input ()
 
void request_input (CallBack *caller, void *user_data)
 
void cancel_input_request ()
 
void clear_scroll ()
 
- Public Member Functions inherited from Ultima::Nuvie::GUI_Widget
 GUI_Widget (void *data)
 
 GUI_Widget (void *data, int x, int y, int w, int h)
 
int AddWidget (GUI_Widget *widget)
 
virtual void Show (void)
 
virtual void Hide (void)
 
virtual void Delete (void)
 
virtual void MoveRelative (int dx, int dy)
 
virtual void Move (int32 new_x, int32 new_y)
 
void MoveRelativeToParent (int dx, int dy)
 
bool has_focus () const
 
void grab_focus ()
 
virtual void release_focus ()
 
void moveToFront ()
 
virtual void PlaceOnScreen (Screen *s, GUI_DragManager *dm, int x, int y)
 
virtual WIDGET_status Status (void) const
 
virtual void SetRect (int x, int y, int w, int h)
 
virtual void SetRect (Common::Rect **bounds)
 
virtual Common::Rect GetRect ()
 
virtual int X () const
 
virtual int Y () const
 
virtual int W () const
 
virtual int H () const
 
virtual int HitRect (int x, int y)
 
virtual int HitRect (int x, int y, const Common::Rect &rect)
 
virtual void SetDisplay (Screen *s)
 
void DisplayChildren (bool full_redraw=false)
 
virtual void Redraw (void)
 
bool needs_redraw () const
 
bool widget_has_focus ()
 
virtual GUI_status Idle (void)
 
virtual GUI_status KeyUp (Common::KeyState key)
 
virtual GUI_status MouseDown (int x, int y, Shared::MouseButton button)
 
virtual GUI_status MouseMotion (int x, int y, uint8 state)
 
virtual GUI_status MouseEnter (uint8 state)
 
virtual GUI_status MouseLeave (uint8 state)
 
virtual GUI_status MouseClick (int x, int y, Shared::MouseButton button)
 
virtual GUI_status MouseDouble (int x, int y, Shared::MouseButton button)
 
virtual GUI_status MouseDelayed (int x, int y, Shared::MouseButton button)
 
virtual GUI_status MouseHeld (int x, int y, Shared::MouseButton button)
 
bool drag_accept_drop (int x, int y, int message, void *data) override
 
void drag_perform_drop (int x, int y, int message, void *data) override
 
virtual GUI_status HandleEvent (const Common::Event *event)
 
char * Error (void)
 
virtual int ClickState (int button)
 
virtual void SetClickState (int button, int value)
 
- Public Member Functions inherited from Ultima::Nuvie::GUI_DragArea
bool is_drop_target ()
 
virtual void drag_drop_failed (int x, int y, int message, void *data)
 
virtual void drag_drop_success (int x, int y, int message, void *data)
 
virtual void drag_draw (int x, int y, int message, void *data)
 
- Public Member Functions inherited from Ultima::Nuvie::GUI_CallBack
virtual GUI_status callback (uint16 msg, GUI_CallBack *caller, void *data)
 
- Public Member Functions inherited from Ultima::Nuvie::CallBack
virtual uint16 callback (uint16 msg, CallBack *caller, void *data=nullptr)
 
uint16 message (uint16 msg, void *msg_data=nullptr, void *my_data=nullptr)
 
void set_user_data (void *user_data)
 
void set_target (CallBack *t)
 

Protected Member Functions

virtual void process_page_break ()
 
void set_scroll_dimensions (uint16 w, uint16 h)
 
void delete_front_line ()
 
virtual MsgLineadd_new_line ()
 
void drawLine (Screen *screen, MsgLine *msg_line, uint16 line_y)
 
void clear_page_break ()
 
virtual void set_permitted_input (const char *allowed)
 
virtual void clear_permitted_input ()
 
virtual bool can_fit_token_on_msgline (MsgLine *msg_line, MsgText *token)
 
void increase_input_char ()
 
void decrease_input_char ()
 
uint8 get_char_from_input_char ()
 
virtual uint8 get_input_font_color () const
 
- Protected Member Functions inherited from Ultima::Nuvie::GUI_Widget
void Init (void *data, int x, int y, int w, int h)
 
void setParent (GUI_Widget *widget)
 
void SetError (char *fmt,...)
 
void set_accept_mouseclick (bool set, int button=0)
 
void set_mouseup (int set, int button=0)
 
void set_mousedown (int set, int button=0)
 
int get_mouseup (int button) const
 
int get_mousedown (int button) const
 
void wait_for_mouseclick (int button)
 
void wait_for_mousedown (int button)
 
virtual GUI_status try_mouse_delayed ()
 

Protected Attributes

const Configurationconfig
 
int game_type
 
Fontfont
 
uint8 font_color
 
uint8 font_highlight_color
 
uint16 scroll_height
 
uint16 scroll_width
 
uint8 left_margin
 
CallBackcallback_target
 
char * callback_user_data
 
uint8 input_char
 
bool input_mode
 
const char * permit_input
 
bool yes_no_only
 
bool aye_nay_only
 
bool numbers_only
 
bool page_break
 
bool just_finished_page_break
 
bool just_displayed_prompt
 
Std::list< MsgLine * > msg_buf
 
Std::string input_buf
 
bool permit_inputescape
 
uint16 cursor_wait
 
uint16 scrollback_height
 
bool discard_whitespace
 
bool using_target_cursor
 
uint8 bg_color
 
bool talking
 
- Protected Attributes inherited from Ultima::Nuvie::GUI_Widget
void * widget_data
 
Screenscreen
 
Graphics::ManagedSurfacesurface
 
int offset_x
 
int offset_y
 
WIDGET_status status
 
bool update_display
 
int pressed [3]
 
bool focused
 
Std::list< GUI_Widget * > children
 
GUI_Widgetparent
 
char * errorptr
 
char errbuf [BUFSIZ]
 
GUI_DragManagergui_drag_manager
 
unsigned int mouseup [3]
 
unsigned int mousedown [3]
 
bool accept_mouseclick [3]
 
Shared::MouseButton delayed_button
 
Shared::MouseButton held_button
 
bool mouse_moved
 
bool mouse_over
 
- Protected Attributes inherited from Ultima::Nuvie::GUI_DragArea
bool drop_target
 
bool dragging
 
- Protected Attributes inherited from Ultima::Nuvie::CallBack
char * callback_user_data
 
CallBackcallback_target
 

Additional Inherited Members

- Public Attributes inherited from Ultima::Nuvie::GUI_Widget
Common::Rect area
 

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