class
UIng::Area
- UIng::Area
- UIng::Control
- Reference
- Object
Overview
This class provides read-only access to key event properties.
Included Modules
Defined in:
uing/area.cruing/area/attribute.cr
uing/area/attribute/type.cr
uing/area/attribute/underline.cr
uing/area/attribute/underline_color.cr
uing/area/attributed_string.cr
uing/area/draw/brush.cr
uing/area/draw/brush/gradient_stop.cr
uing/area/draw/brush/type.cr
uing/area/draw/context.cr
uing/area/draw/fill_mode.cr
uing/area/draw/image_buffer_params.cr
uing/area/draw/line_cap.cr
uing/area/draw/line_join.cr
uing/area/draw/matrix.cr
uing/area/draw/params.cr
uing/area/draw/path.cr
uing/area/draw/stroke_params.cr
uing/area/draw/text_align.cr
uing/area/draw/text_layout.cr
uing/area/draw/text_layout/params.cr
uing/area/ext_key.cr
uing/area/handler.cr
uing/area/key_event.cr
uing/area/modifiers.cr
uing/area/mouse_event.cr
uing/area/scroll_event.cr
uing/area/window_resize_edge.cr
uing/crimage.cr
Constructors
- .new(*args, &)
- .new(*args, **kwargs, &)
- .new(area_handler : Handler, width : Int32, height : Int32)
-
.new(width : Int32, height : Int32)
Creates a scrolling Area with its own handler.
EXPERIMENTAL
- .new(area_handler : Handler)
-
.new
Creates an Area with its own handler for per-Area event callbacks.
EXPERIMENTAL
Instance Method Summary
- #begin_user_window_move : Nil
- #begin_user_window_resize(edge : WindowResizeEdge) : Nil
-
#clear_on_drag_broken : Nil
EXPERIMENTAL
-
#clear_on_draw : Nil
EXPERIMENTAL
-
#clear_on_key_event : Nil
EXPERIMENTAL
-
#clear_on_mouse_crossed : Nil
EXPERIMENTAL
-
#clear_on_mouse_event : Nil
EXPERIMENTAL
-
#clear_on_scroll_event : Nil
EXPERIMENTAL
- #destroy : Nil
-
#on_drag_broken(&block : -> Nil) : Nil
EXPERIMENTAL
-
#on_drag_broken(callback : Nil) : Nil
EXPERIMENTAL
-
#on_draw(&block : Draw::Params -> Nil) : Nil
Registers a draw callback for an Area created without an explicit handler.
EXPERIMENTAL
-
#on_draw(callback : Nil) : Nil
EXPERIMENTAL
-
#on_key_event(&block : KeyEvent -> Bool) : Nil
EXPERIMENTAL
-
#on_key_event(callback : Nil) : Nil
EXPERIMENTAL
-
#on_mouse_crossed(&block : Bool -> Nil) : Nil
EXPERIMENTAL
-
#on_mouse_crossed(callback : Nil) : Nil
EXPERIMENTAL
-
#on_mouse_event(&block : MouseEvent -> Nil) : Nil
EXPERIMENTAL
-
#on_mouse_event(callback : Nil) : Nil
EXPERIMENTAL
-
#on_scroll_event(&block : ScrollEvent -> Bool) : Nil
EXPERIMENTAL
-
#on_scroll_event(callback : Nil) : Nil
EXPERIMENTAL
- #queue_redraw_all : Nil
-
#scroll_to(x : Number, y : Number, width : Number, height : Number) : Nil
Scrolls a scrolling Area to make the given rectangle visible.
-
#set_size(width : Int32, height : Int32) : Nil
Changes the content size of a scrolling Area.
- #to_unsafe
Instance methods inherited from module UIng::Drop::Target
clear_drop_handler : Nil
clear_drop_handler,
clear_on_drop : Nil
clear_on_drop,
drop_handler : Handler | Nil
drop_handler,
drop_handler=(handler : Handler) : Nildrop_handler=(handler : Nil) : Nil drop_handler=, on_drop(accepts : Format = Format::All, &block : Event -> Bool) : Nil
on_drop(callback : Nil) : Nil on_drop
Instance methods inherited from class UIng::Control
delete(child : Control)
delete,
destroy : Nil
destroy,
detach : self
detach,
disable : Nil
disable,
enable : Nil
enable,
enabled? : Bool
enabled?,
enabled_to_user? : Bool
enabled_to_user?,
focus : Nil
focus,
focused? : Bool
focused?,
handle : Pointer(Void)
handle,
hide : Nil
hide,
parent : Control | Nil
parent,
released? : Bool
released?,
set_minimum_size(width : Int32, height : Int32) : Nil
set_minimum_size,
show : Nil
show,
to_unsafe
to_unsafe,
tooltip=(tooltip : String) : Niltooltip=(tooltip : Nil) : Nil tooltip=, toplevel? : Bool toplevel?, visible? : Bool visible?
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Constructor Detail
Creates a scrolling Area with its own handler.
EXPERIMENTAL
Instance Method Detail
Registers a draw callback for an Area created without an explicit handler.
EXPERIMENTAL
Scrolls a scrolling Area to make the given rectangle visible.