Class Sizer

Superclasses :
gui::Component
Package :
gui

This class provides a component which can be dragged across the window, allowing panes within the window to be resized. A SIZER_RELEASED_EVENT is generated when the Sizer has been dragged and released. The new position may then be obtained and the dialog adjusted accordingly.

Source

Class summary
Methods inherited from gui::Component
accepts_focus() add(c, i) all_valid() can_drag(ev) can_drop(d) child_validated(c) clear_accepts_focus() clear_allow_drag() clear_allow_drop() clear_draw_border() clear_is_shaded() compute_absolutes() create_event_and_fire(type, param) do_handle_event(e) do_shading(W) drag_event(d) drag_reset() end_drag(d, c) fatal(s) find_accel(e) find_focus() fire_icon_events_on_mouse(p, e) firstly() generate_components() get_accel() get_cbwin_reference() get_children() get_cwin_reference() get_h_reference() get_parent() get_parent_buffer_win() get_parent_dialog() get_parent_dialog_reference() get_parent_win() get_w_reference() get_x_reference() get_y_reference() got_focus(e) handle_accel(e) in_region() init() invalidate() invoke_can_drag(ev) invoke_can_drop(d) invoke_drag_event(d) invoke_drag_reset() invoke_end_drag(d, c) is_attrib(s) is_dialog_open() is_hidden() is_shaded() is_ticking() is_unhidden() is_unshaded() keeps(e) lost_focus(e) parse_pos(total, s) remove(c) retime_ticker(n) set_abs_coords(x, y) set_abs_size(w, h) set_accel(k) set_accepts_focus() set_align(x_align, y_align) set_allow_drag() set_allow_drop() set_attribs(x[]) set_attribs_list(l) set_draw_border() set_is_shaded() set_parent(c) set_parent_dialog(c) set_pos(x_spec, y_spec) set_size(w_spec, h_spec) set_ticker(n, d) set_tooltip(x) stop_ticker() tick() toggle_draw_border() toggle_is_shaded() unique_end(x) unique_start() validate()
Variables inherited from gui::Component
accel accepts_focus_flag allow_drag_flag allow_drop_flag attribs cbwin children cwin draw_border_flag h h_spec has_focus is_shaded_flag parent parent_dialog ticker tooltip valid w w_spec x x_align x_spec y y_align y_spec
Methods inherited from lang::Object
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name) to_string(depth, seen)
Methods inherited from util::SetFields
as_attrib(attr, val) attrib(a[]) cset_val(attr, val) field_error(s) int_val(attr, val) int_vals(attr, val, n) numeric_val(attr, val) numeric_vals(attr, val, n) set_fields(l) string_val(attr, val) string_vals(attr, val, n) test_flag(attr, val)
Methods inherited from util::Connectable
connect(obj, meth, type) disconnect(l) fire(type, param) fire_event(e)
Variables inherited from util::Connectable
listeners
Methods defined in this class
clear_is_horizontal() display(buffer_flag) finally() get_curr_pos() get_delta() handle_event(e) initially() pointer_off() pointer_on() resize() set_curr_pos() set_is_horizontal() set_one(attr, val) set_range(lo, hi)
Variables defined in this class
curr_pos drag_offset end_pos hi is_held is_horizontal_flag lo pointer_flag start_pos temp_h temp_w temp_win

Method detail

clear_is_horizontal()

Configure the Sizer to be vertical; the default.
Source

display(buffer_flag)

Overrides display(buffer_flag) in gui::Component
Source

finally()

Overrides finally() in gui::Component
Source

get_curr_pos()

Return the current position of the Sizer. This may be invoked to determine where the Sizer has been dragged to after it has generated an event.
Source

get_delta()

Get the size of the move during the last drag of the Sizer.
Source

handle_event(e)

Overrides handle_event(e) in gui::Component
Source

initially()

Overrides initially() in util::Connectable

pointer_off()

Reset the pointer if needed.
Source

pointer_on()

Private method, not intended for client invocation

resize()

Overrides resize() in gui::Component
Source

set_curr_pos()

Source

set_is_horizontal()

Configure the Sizer to be horizontal; the default is vertical.
Source

set_one(attr, val)

Overrides set_one(attr, val) in util::SetFields
Source

set_range(lo, hi)

Set the minimum and maximum values for the Sizer. Whether these are x or y values depends on the orientation of the Sizer.
Source

Variable detail

curr_pos


drag_offset


end_pos


hi


is_held


is_horizontal_flag


lo


pointer_flag


start_pos


temp_h


temp_w


temp_win