Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BC_WindowBase Class Reference

#include <bcwindowbase.h>

Inheritance diagram for BC_WindowBase:

BC_RelocatableWidget BC_FullScreen BC_Popup BC_SubWindow BC_Window BC_DragWindow BC_Bar BC_Button BC_ListBox BC_MenuBar BC_Meter BC_Pan BC_PixmapSW BC_PopupMenu BC_Pot BC_ProgressBar BC_ScrollBar BC_Slider BC_TextBox BC_Title BC_Toggle BC_Tumbler BC_DeleteFile BC_FileBox BC_NewFolder BC_ProgressWindow ErrorBox MWindow TestWindow TestWindow TestWindow List of all members.

Public Member Functions

 BC_WindowBase ()
virtual ~BC_WindowBase ()
int run_window ()
virtual int close_event ()
virtual int resize_event (int w, int h)
virtual int repeat_event (int64_t duration)
virtual int focus_in_event ()
virtual int focus_out_event ()
virtual int button_press_event ()
virtual int button_release_event ()
virtual int cursor_motion_event ()
virtual int cursor_leave_event ()
virtual int cursor_enter_event ()
virtual int keypress_event ()
virtual int translation_event ()
virtual int drag_start_event ()
virtual int drag_motion_event ()
virtual int drag_stop_event ()
virtual int uses_text ()
virtual int expose_event ()
int accel_available (int color_model, int lock_it)
int get_color_model ()
int get_color (int64_t color)
int64_t get_color ()
int show_window (int flush=1)
int hide_window (int flush=1)
int get_hidden ()
int get_video_on ()
int get_deleting ()
void enable_opengl ()
void disable_opengl ()
void lock_opengl ()
void unlock_opengl ()
void flip_opengl ()
int flash (int x, int y, int w, int h, int flush=1)
int flash (int flush=1)
void flush ()
void sync_display ()
int lock_window (char *location=0)
int unlock_window ()
int get_window_lock ()
BC_MenuBaradd_menubar (BC_MenuBar *menu_bar)
BC_WindowBaseadd_subwindow (BC_WindowBase *subwindow)
BC_WindowBaseadd_tool (BC_WindowBase *subwindow)
virtual int get_w ()
virtual int get_h ()
virtual int get_x ()
virtual int get_y ()
int get_root_w (int ignore_dualhead=0, int lock_display=0)
int get_root_h (int lock_display)
int get_abs_cursor_x (int lock_window)
int get_abs_cursor_y (int lock_window)
int get_relative_cursor_x ()
int get_relative_cursor_y ()
int get_cursor_over_window ()
int match_window (Window win)
int get_button_down ()
int get_buttonpress ()
int get_has_focus ()
int get_dragging ()
int get_keypress ()
int get_cursor_x ()
int get_cursor_y ()
int get_drag_x ()
int get_drag_y ()
int relative_cursor_x (BC_WindowBase *pov)
int relative_cursor_y (BC_WindowBase *pov)
int alt_down ()
int shift_down ()
int ctrl_down ()
int get_double_click ()
int get_x2 ()
int get_y2 ()
int get_bg_color ()
BC_Pixmapget_bg_pixmap ()
int get_text_ascent (int font)
int get_text_descent (int font)
int get_text_height (int font, char *text=0)
int get_text_width (int font, char *text, int length=-1)
BC_Clipboardget_clipboard ()
void set_dragging (int value)
int set_w (int w)
int set_h (int h)
BC_WindowBaseget_top_level ()
BC_WindowBaseget_parent ()
int is_event_win ()
int cursor_inside ()
virtual int activate ()
virtual int deactivate ()
void set_active_subwindow (BC_WindowBase *subwindow)
int get_toggle_value ()
int get_toggle_drag ()
void set_color (int64_t color)
int get_bgcolor ()
void set_font (int font)
void set_cursor (int cursor, int is_hourglass=0)
void set_x_cursor (int cursor)
int get_cursor ()
void start_hourglass ()
void stop_hourglass ()
void start_hourglass_recursive ()
void stop_hourglass_recursive ()
void copy_area (int x1, int y1, int x2, int y2, int w, int h, BC_Pixmap *pixmap=0)
void clear_box (int x, int y, int w, int h, BC_Pixmap *pixmap=0)
void draw_box (int x, int y, int w, int h, BC_Pixmap *pixmap=0)
void draw_circle (int x, int y, int w, int h, BC_Pixmap *pixmap=0)
void draw_disc (int x, int y, int w, int h, BC_Pixmap *pixmap=0)
void draw_text (int x, int y, char *text, int length=-1, BC_Pixmap *pixmap=0)
void draw_center_text (int x, int y, char *text, int length=-1)
void draw_line (int x1, int y1, int x2, int y2, BC_Pixmap *pixmap=0)
void draw_polygon (ArrayList< int > *x, ArrayList< int > *y, BC_Pixmap *pixmap=0)
void draw_rectangle (int x, int y, int w, int h)
void draw_3segment (int x, int y, int w, int h, BC_Pixmap *left_image, BC_Pixmap *mid_image, BC_Pixmap *right_image, BC_Pixmap *pixmap=0)
void draw_3segment (int x, int y, int w, int h, VFrame *left_image, VFrame *mid_image, VFrame *right_image, BC_Pixmap *pixmap=0)
void draw_3segmenth (int x, int y, int w, int total_x, int total_w, VFrame *image, BC_Pixmap *pixmap)
void draw_3segmenth (int x, int y, int w, int total_x, int total_w, BC_Pixmap *src, BC_Pixmap *dst=0)
void draw_3segmentv (int x, int y, int h, int total_y, int total_h, BC_Pixmap *src, BC_Pixmap *dst=0)
void draw_3segmentv (int x, int y, int h, int total_y, int total_h, VFrame *src, BC_Pixmap *dst=0)
void draw_3segmenth (int x, int y, int w, VFrame *image, BC_Pixmap *pixmap=0)
void draw_3segmenth (int x, int y, int w, BC_Pixmap *src, BC_Pixmap *dst=0)
void draw_3segmentv (int x, int y, int h, BC_Pixmap *src, BC_Pixmap *dst=0)
void draw_3segmentv (int x, int y, int h, VFrame *src, BC_Pixmap *dst=0)
void draw_9segment (int x, int y, int w, int h, VFrame *src, BC_Pixmap *dst=0)
void draw_9segment (int x, int y, int w, int h, BC_Pixmap *src, BC_Pixmap *dst=0)
void draw_3d_box (int x, int y, int w, int h, int light1, int light2, int middle, int shadow1, int shadow2, BC_Pixmap *pixmap=0)
void draw_3d_border (int x, int y, int w, int h, int light1, int light2, int shadow1, int shadow2)
void draw_colored_box (int x, int y, int w, int h, int down, int highlighted)
void draw_check (int x, int y)
void draw_triangle_down_flat (int x, int y, int w, int h)
void draw_triangle_up (int x, int y, int w, int h, int light1, int light2, int middle, int shadow1, int shadow2)
void draw_triangle_down (int x, int y, int w, int h, int light1, int light2, int middle, int shadow1, int shadow2)
void draw_triangle_left (int x, int y, int w, int h, int light1, int light2, int middle, int shadow1, int shadow2)
void draw_triangle_right (int x, int y, int w, int h, int light1, int light2, int middle, int shadow1, int shadow2)
void set_opaque ()
void set_inverse ()
void set_background (VFrame *bitmap)
void set_title (char *text)
char * get_title ()
void start_video ()
void stop_video ()
int video_is_on ()
void set_done (int return_value)
BC_Bitmapnew_bitmap (int w, int h, int color_model=-1)
void draw_bitmap (BC_Bitmap *bitmap, int dont_wait, int dest_x=0, int dest_y=0, int dest_w=0, int dest_h=0, int src_x=0, int src_y=0, int src_w=0, int src_h=0, BC_Pixmap *pixmap=0)
void draw_pixel (int x, int y, BC_Pixmap *pixmap=0)
void draw_pixmap (BC_Pixmap *pixmap, int dest_x=0, int dest_y=0, int dest_w=-1, int dest_h=-1, int src_x=0, int src_y=0, BC_Pixmap *dst=0)
void draw_vframe (VFrame *frame, int dest_x=0, int dest_y=0, int dest_w=-1, int dest_h=-1, int src_x=0, int src_y=0, int src_w=0, int src_h=0, BC_Pixmap *pixmap=0)
void draw_border (char *text, int x, int y, int w, int h)
void draw_top_background (BC_WindowBase *parent_window, int x, int y, int w, int h, BC_Pixmap *pixmap=0)
void draw_top_tiles (BC_WindowBase *parent_window, int x, int y, int w, int h)
void draw_background (int x, int y, int w, int h)
void draw_tiles (BC_Pixmap *tile, int origin_x, int origin_y, int x, int y, int w, int h)
void slide_left (int distance)
void slide_right (int distance)
void slide_up (int distance)
void slide_down (int distance)
int cycle_textboxes (int amount)
int raise_window (int do_flush=1)
int set_tooltips (int tooltips_enabled)
int resize_window (int w, int h)
int reposition_widget (int x, int y, int w=-1, int h=-1)
int reposition_window (int x, int y, int w=-1, int h=-1)
int set_repeat (int64_t duration)
int unset_repeat (int64_t duration)
int set_tooltip (char *text)
int show_tooltip (int w=-1, int h=-1)
int hide_tooltip ()
int set_icon (VFrame *data)
int load_defaults (Defaults *defaults)
int save_defaults (Defaults *defaults)

Static Public Member Functions

static BC_Resourcesget_resources ()

Public Attributes

int test_keypress

Private Member Functions

virtual int create_window (BC_WindowBase *parent_window, char *title, int x, int y, int w, int h, int minw, int minh, int allow_resize, int private_color, int hide, int bg_color, char *display_name, int window_type, BC_Pixmap *bg_pixmap, int group_it)
virtual int initialize ()
int get_atoms ()
void init_cursors ()
int init_colors ()
int init_window_shape ()
int create_private_colors ()
int create_color (int color)
int create_shared_colors ()
int get_single_text_width (int font, char *text, int length)
int allocate_color_table ()
int init_gc ()
int init_fonts ()
int get_color_rgb8 (int color)
int64_t get_color_rgb16 (int color)
int64_t get_color_bgr16 (int color)
int64_t get_color_bgr24 (int color)
XFontStruct * get_font_struct (int font)
Cursor get_cursor_struct (int cursor)
XFontSet get_fontset (int font)
XFontSet get_curr_fontset (void)
void set_fontset (int font)
int dispatch_event ()
int get_key_masks (XEvent *event)
int trigger_tooltip ()
int untrigger_tooltip ()
void draw_tooltip ()
int arm_repeat (int64_t duration)
int unset_all_repeaters ()
XEvent * get_event ()
int get_event_count ()
void put_event (XEvent *event)
int dispatch_resize_event (int w, int h)
int dispatch_focus_in ()
int dispatch_focus_out ()
int dispatch_motion_event ()
int dispatch_keypress_event ()
int dispatch_repeat_event (int64_t duration)
int dispatch_repeat_event_master (int64_t duration)
int dispatch_button_press ()
int dispatch_button_release ()
int dispatch_cursor_leave ()
int dispatch_cursor_enter ()
int dispatch_translation_event ()
int dispatch_drag_start ()
int dispatch_drag_motion ()
int dispatch_drag_stop ()
int dispatch_expose_event ()
int grab_port_id (BC_WindowBase *window, int color_model)
int find_next_textbox (BC_WindowBase **first_textbox, BC_WindowBase **next_textbox, int &result)
int find_prev_textbox (BC_WindowBase **last_textbox, BC_WindowBase **prev_textbox, int &result)
void translate_coordinates (Window src_w, Window dest_w, int src_x, int src_y, int *dest_x_return, int *dest_y_return)

Static Private Member Functions

static Display * init_display (char *display_name)
static int evaluate_color_model (int client_byte_order, int server_byte_order, int depth)

Private Attributes

BC_WindowBasetop_level
BC_WindowBaseparent_window
BC_SubWindowListsubwindows
int x
int y
int w
int h
int light1
int light2
int medium
int dark1
int dark2
int bg_color
int window_type
BC_MenuBaractive_menubar
BC_PopupMenuactive_popup_menu
BC_WindowBaseactive_subwindow
int allow_resize
int hidden
int private_color
int bits_per_pixel
int color_model
int server_byte_order
int client_byte_order
int total_colors
int current_color_value
int current_color_pixel
int color_table [256][2]
int video_on
int done
int return_value
int motion_events
int last_motion_x
int last_motion_y
Window last_motion_win
int resize_events
int last_resize_w
int last_resize_h
int translation_events
int last_translate_x
int last_translate_y
int prev_x
int prev_y
int translation_count
int x_correction
int y_correction
int ctrl_mask
int shift_mask
int alt_mask
int cursor_x
int cursor_y
int button_down
int button_number
uint64_t button_time1
uint64_t button_time2
int double_click
int button_pressed
int key_pressed
int toggle_value
int toggle_drag
int has_focus
ArrayList< BC_Repeater * > repeaters
char tooltip_text [BCTEXTLEN]
int tooltip_on
BC_Popuptooltip_popup
int tooltip_done
int persistant_tooltip
XFontSet largefontset
XFontSet mediumfontset
XFontSet smallfontset
XFontSet curr_fontset
int current_font
XFontStruct * largefont
XFontStruct * mediumfont
XFontStruct * smallfont
void * xft_drawable
void * largefont_xft
void * mediumfont_xft
void * smallfont_xft
int64_t current_color
int drag_x
int drag_y
int drag_x1
int drag_x2
int drag_y1
int drag_y2
int is_dragging
int shared_bg_pixmap
char title [BCTEXTLEN]
int screen
Window rootwin
Window event_win
Window drag_win
Visual * vis
Colormap cmap
Display * display
Display * event_display
Window win
Pixmap pixmap
int window_lock
GC gc
int default_depth
Atom DelWinXAtom
Atom ProtoXAtom
Atom RepeaterXAtom
Atom SetDoneXAtom
int prev_cursor
int hourglass_total
int current_cursor
Cursor arrow_cursor
Cursor cross_cursor
Cursor ibeam_cursor
Cursor vseparate_cursor
Cursor hseparate_cursor
Cursor move_cursor
Cursor temp_cursor
Cursor left_cursor
Cursor right_cursor
Cursor upright_arrow_cursor
Cursor upleft_resize_cursor
Cursor upright_resize_cursor
Cursor downleft_resize_cursor
Cursor downright_resize_cursor
Cursor hourglass_cursor
int xvideo_port_id
ArrayList< BC_ResizeCall * > resize_history
BC_Pixmapbg_pixmap
BC_Popupicon_window
BC_Pixmapicon_pixmap
BC_Bitmaptemp_bitmap
BC_Clipboardclipboard
ArrayList< XEvent * > common_events
Mutexevent_lock
Conditionevent_condition
BC_WindowEventsevent_thread
int is_deleting

Static Private Attributes

static BC_Resources resources
static Mutex opengl_lock

Friends

class BC_Bar
class BC_Bitmap
class BC_Button
class BC_GenericButton
class BC_Capture
class BC_Clipboard
class BC_DragWindow
class BC_FileBox
class BC_FullScreen
class BC_ListBox
class BC_Menu
class BC_MenuBar
class BC_MenuItem
class BC_MenuPopup
class BC_Meter
class BC_Pan
class BC_Pixmap
class BC_PixmapSW
class BC_Popup
class BC_PopupMenu
class BC_Pot
class BC_ProgressBar
class BC_Repeater
class BC_Resources
class BC_ScrollBar
class BC_Slider
class BC_SubWindow
class BC_TextBox
class BC_Title
class BC_Toggle
class BC_Tumbler
class BC_Window
class BC_WindowEvents

Detailed Description

Definition at line 88 of file bcwindowbase.h.


Constructor & Destructor Documentation

BC_WindowBase::BC_WindowBase  ) 
 

Definition at line 56 of file bcwindowbase.C.

BC_WindowBase::~BC_WindowBase  )  [virtual]
 

Definition at line 62 of file bcwindowbase.C.


Member Function Documentation

int BC_WindowBase::accel_available int  color_model,
int  lock_it
 

Definition at line 2287 of file bcwindowbase.C.

int BC_WindowBase::activate  )  [virtual]
 

Reimplemented in BC_ListBox, BC_MenuBar, BC_ScrollBar, BC_Slider, and BC_TextBox.

Definition at line 2680 of file bcwindowbase.C.

BC_MenuBar * BC_WindowBase::add_menubar BC_MenuBar menu_bar  ) 
 

Definition at line 2435 of file bcwindowbase.C.

BC_WindowBase * BC_WindowBase::add_subwindow BC_WindowBase subwindow  ) 
 

Definition at line 2445 of file bcwindowbase.C.

BC_WindowBase * BC_WindowBase::add_tool BC_WindowBase subwindow  ) 
 

Definition at line 2461 of file bcwindowbase.C.

int BC_WindowBase::allocate_color_table  )  [private]
 

Definition at line 1587 of file bcwindowbase.C.

int BC_WindowBase::alt_down  ) 
 

Definition at line 3004 of file bcwindowbase.C.

int BC_WindowBase::arm_repeat int64_t  duration  )  [private]
 

Definition at line 1389 of file bcwindowbase.C.

virtual int BC_WindowBase::button_press_event  )  [inline, virtual]
 

Reimplemented in BC_Button, BC_ListBox, BC_MenuBar, BC_Meter, BC_Pan, BC_PopupMenu, BC_Pot, BC_ScrollBar, BC_Slider, BC_TextBox, BC_TumbleTextBoxText, BC_Toggle, and BC_Tumbler.

Definition at line 136 of file bcwindowbase.h.

virtual int BC_WindowBase::button_release_event  )  [inline, virtual]
 

Reimplemented in BC_Button, BC_ListBox, BC_MenuBar, BC_Pan, BC_PopupMenu, BC_Pot, BC_ScrollBar, BC_Slider, BC_TextBox, BC_Toggle, and BC_Tumbler.

Definition at line 137 of file bcwindowbase.h.

void BC_WindowBase::clear_box int  x,
int  y,
int  w,
int  h,
BC_Pixmap pixmap = 0
 

Definition at line 66 of file bcwindowdraw.C.

int BC_WindowBase::close_event  )  [virtual]
 

Reimplemented in BC_FileBox, and TestWindow.

Definition at line 1197 of file bcwindowbase.C.

void BC_WindowBase::copy_area int  x1,
int  y1,
int  x2,
int  y2,
int  w,
int  h,
BC_Pixmap pixmap = 0
 

Definition at line 12 of file bcwindowdraw.C.

int BC_WindowBase::create_color int  color  )  [private]
 

Definition at line 1526 of file bcwindowbase.C.

int BC_WindowBase::create_private_colors  )  [private]
 

Definition at line 1509 of file bcwindowbase.C.

int BC_WindowBase::create_shared_colors  )  [private]
 

Definition at line 1542 of file bcwindowbase.C.

int BC_WindowBase::create_window BC_WindowBase parent_window,
char *  title,
int  x,
int  y,
int  w,
int  h,
int  minw,
int  minh,
int  allow_resize,
int  private_color,
int  hide,
int  bg_color,
char *  display_name,
int  window_type,
BC_Pixmap bg_pixmap,
int  group_it