1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
This file documents/summarizes the classes, methods, and functions in various enable
base files.
Public attributes and methods are indicated (with return values).
Significant protected attributes and methods are prefaced with "_".
Note: There are some attributes and methods on components that are part of new-style
layout. These are not documented here yet.
Interactor
event_state
pointer
tooltip
cursor_style
cursor_color
accepts_focus
auto_handle_event
dispatch(event, suffix)
_dispatch_stateful_event(event, suffix)
CoordinateBox
position
bounds
x, y, x2, y2
width, height
Component(CoordinateBox, Interactor)
container
window
viewports
outer_{position, bounds, x, y, x2, y2, width, height}
padding, hpadding, vpadding
padding_{left, right, top, bottom}
padding_accepts_focus
border_width
border_visible
border_dash
border_color
bgcolor
request_redraw()
draw(gc)
is_in(x, y) -> bool
get_absolute_coords(*coords) -> (x, y)
set_outer_position(ndx, val)
set_outer_bounds(ndx, val)
cleanup(window)
_request_redraw()
_draw(gc)
Container(Component)
components
auto_size
fit_window
add(component)
remove(component)
insert(index, component)
components_at(x, y, add_containers=False) -> [components]
cleanup()
compact()
_draw_container(gc, mode)
_component_bounds_changed(component)
_component_position_changed(component)
Viewport(Component)
component
view_position
view_bounds
stay_inside
bgcolor
components_at(x, y, add_containers=False) -> [components]
# ----- Event handling stuff ------------------------------------------------
BasicEvent
x
y
handled
window
push_xy(x, y)
pop()
offset_xy(x, y)
MouseEvent(BasicEvent)
alt_down
control_down
shift_down
left_down
middle_down
right_down
mouse_wheel
DragEvent(BasicEvent)
x0
y0
copy
obj
start_event
KeyEvent(BasicEvent)
character
alt_down
control_down
shift_down
|