Class Sizer

Summary

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


Superclasses:
Component

Package:
(main)
File:
sizer.icn
Methods:
display, finally, get_curr_pos, get_delta, handle_event, set_curr_pos, set_is_horizontal, set_min_max

Methods inherited from Component:
accepts_tab_focus, attrib, clear_accepts_tab_focus, clear_draw_border, clear_is_shaded, clear_no_updates, do_shading, error, final_setup, firstly, generate_all_components, generate_components, get_cbwin_reference, get_cwin_reference, get_h_reference, get_parent_Dialog, get_parent_buffer_win, get_parent_win, get_visible_reference, get_w_reference, get_x_reference, get_y_reference, got_focus, handle_notify, in_region, is_hidden, is_shaded, is_unhidden, is_unshaded, lost_focus, parse_pos, redisplay, resize, set_abs_coords, set_abs_size, set_accepts_tab_focus, set_align, set_attribs, set_attribs_list, set_draw_border, set_is_shaded, set_no_updates, set_parent_Dialog, set_pos, set_size, set_tooltip, toggle_draw_border, toggle_is_shaded, unique_end, unique_start

Methods inherited from MetaComponent:
set_fields

Methods inherited from Ticker:
is_ticking, retime_ticker, set_ticker, stop_ticker, tick

Fields:
curr_pos, drag_offset, end_pos, is_held, is_horizontal_flag, max, min, start_pos, temp_h, temp_pointer, temp_w, temp_win

Source code.

Details
Constructor

Sizer(is_held, is_horizontal_flag, temp_pointer, temp_win, temp_w, temp_h, min, max, drag_offset, curr_pos, start_pos, end_pos)

Parameters:
is_held
is_horizontal_flag
temp_pointer
temp_win
temp_w
temp_h
min
max
drag_offset
curr_pos
start_pos
end_pos

Methods:

display(buffer_flag)

This method overrides display in class Component

finally()

This method overrides finally in class Component

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.


get_delta()

#
  Get the size of the move during the last drag of the {Sizer}.


handle_event(e)

This method overrides handle_event in class Component

set_curr_pos()


set_is_horizontal()

#
  Configure the {Sizer} to be horizontal; the default is vertical.


set_min_max(min, max)

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


Fields:
curr_pos

drag_offset

end_pos

is_held

is_horizontal_flag

max

min

start_pos

temp_h

temp_pointer

temp_w

temp_win --


This page produced by UniDoc on 2021/04/15 @ 23:59:54.