From 9c29143c4f2f4a6845b9d657185410620ef8fb72 Mon Sep 17 00:00:00 2001 From: "wenxuan.gu" Date: Mon, 19 Jun 2017 16:15:52 +0800 Subject: [PATCH] add API comments for Panes and Scroller Change-Id: I326bad4050a792c0a885b3a18a172c7564d5085b --- src/ElmSharp/ElmSharp/Panes.cs | 22 ++++++++++++++++++++++ src/ElmSharp/ElmSharp/Scroller.cs | 16 ++++++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/ElmSharp/ElmSharp/Scroller.cs diff --git a/src/ElmSharp/ElmSharp/Panes.cs b/src/ElmSharp/ElmSharp/Panes.cs index db8b850..ec6c861 100755 --- a/src/ElmSharp/ElmSharp/Panes.cs +++ b/src/ElmSharp/ElmSharp/Panes.cs @@ -109,6 +109,11 @@ namespace ElmSharp } } + /// + /// Sets or gets the absolute minimum size of panes widget's left side. + /// If displayed vertically, left content is displayed at top. + /// value representing minimum size of left side in pixels. + /// public int LeftMinimumSize { get @@ -121,6 +126,12 @@ namespace ElmSharp } } + /// + /// Sets or gets the relative minimum size of panes widget's left side. + /// proportion of minimum size of left side. + /// If displayed vertically, left content is displayed at top. + /// value between 0.0 and 1.0 representing size proportion of minimum size of left side. + /// public double LeftMinimumRelativeSize { get @@ -133,6 +144,11 @@ namespace ElmSharp } } + /// + /// Sets or gets the absolute minimum size of panes widget's right side. + /// If displayed vertically, right content is displayed at top. + /// value representing minimum size of right side in pixels. + /// public int RightMinimumSize { get @@ -145,6 +161,12 @@ namespace ElmSharp } } + /// + /// Sets or gets the relative minimum size of panes widget's right side. + /// proportion of minimum size of right side. + /// If displayed vertically, right content is displayed at top. + /// value between 0.0 and 1.0 representing size proportion of minimum size of right side. + /// public double RightMinimumRelativeSize { get diff --git a/src/ElmSharp/ElmSharp/Scroller.cs b/src/ElmSharp/ElmSharp/Scroller.cs old mode 100644 new mode 100755 index 6e5fd2c..2ceb38c --- a/src/ElmSharp/ElmSharp/Scroller.cs +++ b/src/ElmSharp/ElmSharp/Scroller.cs @@ -494,7 +494,7 @@ namespace ElmSharp } /// - /// Get a given scroller widget's scrolling page size, relative to its viewport size. + /// Gets or sets a given scroller widget's scrolling page size, relative to its viewport size. /// public double VerticalRelativePageSize { @@ -512,7 +512,7 @@ namespace ElmSharp } /// - /// Get a given scroller widget's scrolling page size, relative to its viewport size. + /// Gets or sets a given scroller widget's scrolling page size, relative to its viewport size. /// public double HorizontalRelativePageSize { @@ -532,6 +532,12 @@ namespace ElmSharp /// /// Gets or Sets the page snapping behavior of a scroller. /// + /// + /// When scrolling, if a scroller is paged (see VerticalRelativePageSize), + /// the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, + /// it will stop at the next page boundaries. This is disabled, by default, for both axis. + /// This function will set if it that is enabled or not, for each axis. + /// public bool VerticalSnap { get @@ -550,6 +556,12 @@ namespace ElmSharp /// /// Gets or Sets the page snapping behavior of a scroller. /// + /// + /// When scrolling, if a scroller is paged (see HorizontalRelativePageSize), + /// the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, + /// it will stop at the next page boundaries. This is disabled, by default, for both axis. + /// This function will set if it that is enabled or not, for each axis. + /// public bool HorizontalSnap { get -- 2.7.4