-
-
Notifications
You must be signed in to change notification settings - Fork 10
Crow.Scroller
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
Scroller
public class Scroller : Container
⬜ | prototype | description |
---|---|---|
Scroller (Interface iface, string style=null) |
__ |
⬜ | 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 |
⬜ | 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 |
⬜ | name | description |
---|