Created
November 18, 2010 05:26
-
-
Save noqisofon/704655 to your computer and use it in GitHub Desktop.
スティック((フローティングウィンドウ))の情報クラス。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace groan.util { | |
/// <summary> | |
///スティック((フローティングウィンドウ))の Model 役クラス。 | |
/// </summary> | |
public class StickInfo { | |
/// <summary> | |
/// | |
/// </summary> | |
public StickInfo() { | |
this.object_id_ = OBJECT_ID++; | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public StickInfo(Size widget_size) { | |
this.object_id_ = OBJECT_ID++; | |
this.width_ = widget_size.Width; | |
this.height_ = widget_size.Height; | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public int objectId { | |
get { | |
return object_id_; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public int x { | |
get { | |
return x_; | |
} | |
set { | |
x_ = value; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public int y { | |
get { | |
return y_; | |
} | |
set { | |
y_ = value; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public int width { | |
get { | |
return width_; | |
} | |
set { | |
width_ = value; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public int height { | |
get { | |
return height_; | |
} | |
set { | |
height_ = value; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public string title { | |
get { | |
return title_; | |
} | |
set { | |
title_ = value; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public string fulltext { | |
get { | |
return fulltext_; | |
} | |
set { | |
fulltext_ = value; | |
} | |
} | |
/// <summary> | |
/// オブジェクト番号。 | |
/// </summary> | |
private int object_id_; | |
/// <summary> | |
/// x 座標。 | |
/// </summary> | |
private int x_; | |
/// <summary> | |
/// y 座標。 | |
/// </summary> | |
private int y_; | |
/// <summary> | |
/// 幅。 | |
/// </summary> | |
private int width_; | |
/// <summary> | |
/// 高さ。 | |
/// </summary> | |
private int height_; | |
/// <summary> | |
/// | |
/// </summary> | |
private string title_; | |
/// <summary> | |
/// | |
/// </summary> | |
private string fulltext_; | |
/// <summary> | |
/// | |
/// </summary> | |
private static int OBJECT_ID = 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment