Skip to content
Jean-Philippe Bruyère edited this page Oct 26, 2021 · 3 revisions

scrolling surface, to be contained in a smaller container in which it will be scrolled

namespace: Crow

Inheritance Hierarchy

  • Scroller

Syntax

public class Scroller : Container

Constructors

prototype description
Scroller (Interface iface, string style=null) __

Properties

name description
KeyEventsOverrides __
MaxScrollX Horizontal Scrolling maximum value
MaxScrollY Vertical Scrolling maximum value
ScrollSpeed Mouse Wheel Scrolling multiplier
ScrollX Horizontal Scrolling Position
ScrollY Vertical Scrolling Position

Methods

prototype description
void OnChildLayoutChanges(object sender, LayoutingEventArgs arg) __
void onKeyDown(object sender, KeyEventArgs e) Process scrolling with arrow keys, home and end keys.
void OnLayoutChanges(LayoutingType layoutType) trigger dependant sizing component update
void onMouseWheel(object sender, MouseWheelEventArgs e) Process scrolling vertically, or if shift is down, vertically
bool PointIsIn(ref Point m) Recursive local coordinate point test. After test on parent, point m is in local coord system.
void RegisterClip(Rectangle clip) Add clip rectangle to this.clipping and propagate up to root
Rectangle ScreenCoordinates(Rectangle r) Widget coordintate relative to the main drawing surface, normally a GLFW window.
void SetChild(Widget _child) override this to handle specific steps in child addition in derived class, and don't forget to call the base.SetChild

Events

name description
Clone this wiki locally