/* Simple BBC News ticker client
 * (c) Darren Salt
 * GPL applies
 * $Id: wimpticker.h,v 1.1 2003/05/28 16:04:50 ds Exp $
 */

#ifndef _Ticker_WIMPTICKER_H
#define _Ticker_WIMPTICKER_H

struct ticker_t
{
  enum ticker_state state;
  char pinned;
  char paused;
  char has_pointer;
  char done_first_fetch;
  int max_x;
  int highlighted;
};
extern struct ticker_t ticker;

extern long next_scroll_time;


const struct story *which_story (const struct wimp_getpointerinfo_block *);

void go_fetch_ticker (int force);

void set_highlight (int icon);
void clear_highlight (void);
void check_highlight (void);

void set_ticker_state (enum ticker_state state);

void reposition_ticker_window (struct wimp_openwindow_block *block);
void open_ticker_window_current (struct wimp_getwindowstate_block *tbar,
				 int under, int reset);
void open_ticker_window_minimised (struct wimp_getwindowstate_block *tbar,
				   int under);
void open_ticker_window (struct wimp_getwindowstate_block *tbar, int under,
			 int reset);
void reopen_ticker_window (int restart, int minimise);
void set_ticker_top (void);
void toggle_ticker_minimise (void);
void scroll_ticker (int step);

void open_ticker_menu (void);

void click_ticker (void);

#endif
