[monet/vala: 2/5] Add more widgets and the Orientation type
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [monet/vala: 2/5] Add more widgets and the Orientation type
- Date: Mon, 21 Dec 2009 23:07:06 +0000 (UTC)
commit 77378babb2cd95ff60e8b3b333562eac3efb28d0
Author: Thomas Wood <thos gnome org>
Date: Mon Dec 21 22:37:27 2009 +0000
Add more widgets and the Orientation type
monet/mn-types.vala | 9 +++++++++
monet/mn-widgets.vala | 38 ++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/monet/mn-types.vala b/monet/mn-types.vala
index b1532ee..c4d541a 100644
--- a/monet/mn-types.vala
+++ b/monet/mn-types.vala
@@ -23,6 +23,8 @@
namespace Monet
{
+
+ /**** enums ****/
public enum State
{
MN_STATE_NORMAL,
@@ -37,6 +39,13 @@ namespace Monet
MN_FLAGS_CHECKED = 1 << 1
}
+ public enum Orientation
+ {
+ HORIZONTAL,
+ VERTICAL
+ }
+
+ /**** structs ****/
public struct Rectangle
{
double x;
diff --git a/monet/mn-widgets.vala b/monet/mn-widgets.vala
index 429dba7..79b39aa 100644
--- a/monet/mn-widgets.vala
+++ b/monet/mn-widgets.vala
@@ -42,4 +42,42 @@ namespace Monet
public bool is_default { get; set; }
}
+ public class CheckBox : Widget
+ {
+ }
+
+ public class RadioButton : Widget
+ {
+ }
+
+ public class Entry : Widget
+ {
+ }
+
+ public class UrlEntry : Entry
+ {
+ }
+
+ public class TextBox : Widget
+ {
+ }
+
+ public class Expander : Widget
+ {
+ }
+
+ public class Tooltip : Widget
+ {
+ }
+
+ public class ResizeSeparator : Widget
+ {
+ public Orientation orientation { get; set; }
+ }
+
+ public class ProgressBar : Widget
+ {
+ public double progress { get; set; }
+ public Orientation orientation { get; set; }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]