#include <bcwindowbase.h>
Inherits BC_RelocatableWidget.
Inherited by BC_FullScreen, BC_Popup, BC_SubWindow, and BC_Window.

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 | flip_opengl () |
| unsigned int | get_shader (char *title, int *got_it) |
| void | put_shader (unsigned int handle, char *title) |
| 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_MenuBar * | add_menubar (BC_MenuBar *menu_bar) |
| BC_WindowBase * | add_subwindow (BC_WindowBase *subwindow) |
| BC_WindowBase * | add_tool (BC_WindowBase *subwindow) |
| BC_WidgetGrid * | add_widgetgrid (BC_WidgetGrid *widgetgrid) |
| virtual int | get_w () |
| virtual int | get_h () |
| virtual int | get_x () |
| virtual int | get_y () |
| virtual int | reposition_widgets () |
| 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_Pixmap * | get_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_Clipboard * | get_clipboard () |
| void | set_dragging (int value) |
| int | set_w (int w) |
| int | set_h (int h) |
| BC_WindowBase * | get_top_level () |
| BC_WindowBase * | get_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 override=0) |
| void | set_x_cursor (int cursor) |
| int | get_cursor () |
| void | unhide_cursor () |
| void | update_video_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_xft_text (int x, int y, char *text, int length, BC_Pixmap *pixmap, int x2, int k, int y2, int j, int i) |
| 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 | get_id () |
| void | set_done (int return_value) |
| BC_Bitmap * | new_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 (BC_Hash *defaults) |
| int | save_defaults (BC_Hash *defaults) |
Static Public Member Functions | |
| static BC_Resources * | get_resources () |
| static BC_Synchronous * | get_synchronous () |
Data Fields | |
| int | test_keypress |
Protected Member Functions | |
| Atom | create_xatom (char *atom_name) |
| int | send_custom_xatom (xatom_event *event) |
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) |
| Display * | get_display () |
| int | get_screen () |
| virtual int | initialize () |
| int | get_atoms () |
| virtual int | recieve_custom_xatoms (xatom_event *event) |
| 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 () |
| void | init_xft () |
| 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_WindowBase * | top_level |
| BC_WindowBase * | parent_window |
| BC_SubWindowList * | subwindows |
| BC_WidgetGridList * | widgetgrids |
| 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_MenuBar * | active_menubar |
| BC_PopupMenu * | active_popup_menu |
| BC_WindowBase * | active_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_Popup * | tooltip_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 * | 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 |
| int | window_lock |
| GC | gc |
| int | default_depth |
| Atom | DelWinXAtom |
| Atom | ProtoXAtom |
| Atom | RepeaterXAtom |
| Atom | SetDoneXAtom |
| int | hourglass_total |
| int | current_cursor |
| int | is_hourglass |
| int | is_transparent |
| 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 |
| Cursor | transparent_cursor |
| int | xvideo_port_id |
| ArrayList< BC_ResizeCall * > | resize_history |
| BC_Pixmap * | pixmap |
| BC_Pixmap * | bg_pixmap |
| BC_Popup * | icon_window |
| BC_Pixmap * | icon_pixmap |
| BC_Bitmap * | temp_bitmap |
| BC_Clipboard * | clipboard |
| ArrayList< XEvent * > | common_events |
| Mutex * | event_lock |
| Condition * | event_condition |
| BC_WindowEvents * | event_thread |
| int | is_deleting |
| Timer * | cursor_timer |
| int | id |
Static Private Attributes | |
| static BC_Resources | resources |
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_PBuffer |
| 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_Synchronous |
| class | BC_TextBox |
| class | BC_Title |
| class | BC_Toggle |
| class | BC_Tumbler |
| class | BC_Window |
| class | BC_WindowEvents |
Definition at line 113 of file bcwindowbase.h.
| BC_WindowBase::BC_WindowBase | ( | ) |