19#ifndef NSATARI_TREEVIEW_H
20#define NSATARI_TREEVIEW_H
23#include "atari/gemtk/gemtk.h"
32#define ATARI_TREEVIEW_WIDGETS (CLOSER | MOVER | SIZER| NAME | FULLER | \
33 SMALLER | VSLIDE | HSLIDE | UPARROW | DNARROW | \
static os_mode mode
The current sprite mode.
nserror
Enumeration of error codes.
void atari_treeview_flush_redraws(void)
Process all redraw request of all open Treeview windows.
void * atari_treeview_get_user_data(struct core_window *cw)
Return the arbitary user data set by atari_treeview_set_user_data()
void atari_treeview_delete(struct core_window *cw)
Free the Treeview, but not the gemtk window used for the treeview.
void atari_treeview_get_grect(struct core_window *cw, enum treeview_area_e mode, GRECT *dest)
Get an specific area inside the window.
void(* atari_treeview_keypress_callback)(struct core_window *cw, uint32_t ucs4)
void(* atari_treeview_finish_callback)(struct core_window *cw)
bool atari_treeview_is_open(struct core_window *cw)
Returns the window "open" state.
void atari_treeview_redraw(struct core_window *cw)
Process all pending redraw requests for a single treeview.
void atari_treeview_close(struct core_window *cw)
Closes (hides) the treeview window.
void atari_treeview_set_user_data(struct core_window *cw, void *user_data_ptr)
Attach arbitary user data to the treeview.
GUIWIN * atari_treeview_get_gemtk_window(struct core_window *cw)
Get the window manager window handle.
struct core_window * atari_treeview_create(GUIWIN *win, struct atari_treeview_callbacks *callbacks, void *user_data, uint32_t flags)
Initalize an window to be an treeview window.
void atari_treeview_open(struct core_window *cw, GRECT *pos)
Open the treeview window.
nserror(* atari_treeview_init2_callback)(struct core_window *cw)
The atari treeview implementation wraps the core_window callbacks So that it can process parameters a...
struct core_window_table * atari_core_window_table
void(* atari_treeview_draw_callback)(struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
void(* atari_treeview_mouse_action_callback)(struct core_window *cw, browser_mouse_state mouse, int x, int y)
browser_mouse_state
Mouse state: 1 is primary mouse button.
static BList * callbacks
List of all callbacks.
atari_treeview_mouse_action_callback mouse_action
gemtk_wm_event_handler_f gemtk_user_func
atari_treeview_init2_callback init_phase2
atari_treeview_keypress_callback keypress
atari_treeview_finish_callback finish
atari_treeview_draw_callback draw
Core user interface window function table.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.