mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2024-12-17 16:22:03 -08:00
159 lines
4.1 KiB
C#
159 lines
4.1 KiB
C#
|
#if JAVA
|
|||
|
//INCLUDE ..\BuildJavaUI\src\org\kbinani\windows\forms\BSlider.java
|
|||
|
#else
|
|||
|
namespace bocoree.windows.forms {
|
|||
|
|
|||
|
public class BSlider : System.Windows.Forms.TrackBar {
|
|||
|
public int getValue() {
|
|||
|
return base.Value;
|
|||
|
}
|
|||
|
|
|||
|
public void setValue( int value ) {
|
|||
|
base.Value = value;
|
|||
|
}
|
|||
|
|
|||
|
public int getMinimum() {
|
|||
|
return base.Minimum;
|
|||
|
}
|
|||
|
|
|||
|
public void setMinimum( int value ) {
|
|||
|
base.Minimum = value;
|
|||
|
}
|
|||
|
|
|||
|
public int getMaximum() {
|
|||
|
return base.Maximum;
|
|||
|
}
|
|||
|
|
|||
|
public void setMaximum( int value ) {
|
|||
|
base.Maximum = value;
|
|||
|
}
|
|||
|
|
|||
|
#region java.awt.Component
|
|||
|
// root implementation of java.awt.Component is in BForm.cs
|
|||
|
public bool isVisible() {
|
|||
|
return base.Visible;
|
|||
|
}
|
|||
|
|
|||
|
public void setVisible( bool value ) {
|
|||
|
base.Visible = value;
|
|||
|
}
|
|||
|
|
|||
|
#if COMPONENT_ENABLE_TOOL_TIP_TEXT
|
|||
|
public void setToolTipText( string value )
|
|||
|
{
|
|||
|
base.ToolTipText = value;
|
|||
|
}
|
|||
|
|
|||
|
public String getToolTipText()
|
|||
|
{
|
|||
|
return base.ToolTipText;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#if COMPONENT_PARENT_AS_OWNERITEM
|
|||
|
public Object getParent() {
|
|||
|
return base.OwnerItem;
|
|||
|
}
|
|||
|
#else
|
|||
|
public object getParent() {
|
|||
|
return base.Parent;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
public string getName() {
|
|||
|
return base.Name;
|
|||
|
}
|
|||
|
|
|||
|
public void setName( string value ) {
|
|||
|
base.Name = value;
|
|||
|
}
|
|||
|
|
|||
|
#if COMPONENT_ENABLE_LOCATION
|
|||
|
public bocoree.java.awt.Point getLocation() {
|
|||
|
System.Drawing.Point loc = this.Location;
|
|||
|
return new bocoree.java.awt.Point( loc.X, loc.Y );
|
|||
|
}
|
|||
|
|
|||
|
public void setLocation( int x, int y ) {
|
|||
|
base.Location = new System.Drawing.Point( x, y );
|
|||
|
}
|
|||
|
|
|||
|
public void setLocation( bocoree.java.awt.Point p ) {
|
|||
|
base.Location = new System.Drawing.Point( p.x, p.y );
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
public bocoree.java.awt.Rectangle getBounds() {
|
|||
|
System.Drawing.Rectangle r = base.Bounds;
|
|||
|
return new bocoree.java.awt.Rectangle( r.X, r.Y, r.Width, r.Height );
|
|||
|
}
|
|||
|
|
|||
|
#if COMPONENT_ENABLE_X
|
|||
|
public int getX() {
|
|||
|
return base.Left;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#if COMPONENT_ENABLE_Y
|
|||
|
public int getY() {
|
|||
|
return base.Top;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
public int getWidth() {
|
|||
|
return base.Width;
|
|||
|
}
|
|||
|
|
|||
|
public int getHeight() {
|
|||
|
return base.Height;
|
|||
|
}
|
|||
|
|
|||
|
public bocoree.java.awt.Dimension getSize() {
|
|||
|
return new bocoree.java.awt.Dimension( base.Size.Width, base.Size.Height );
|
|||
|
}
|
|||
|
|
|||
|
public void setSize( int width, int height ) {
|
|||
|
base.Size = new System.Drawing.Size( width, height );
|
|||
|
}
|
|||
|
|
|||
|
public void setSize( bocoree.java.awt.Dimension d ) {
|
|||
|
setSize( d.width, d.height );
|
|||
|
}
|
|||
|
|
|||
|
public void setBackground( bocoree.java.awt.Color color ) {
|
|||
|
base.BackColor = System.Drawing.Color.FromArgb( color.getRed(), color.getGreen(), color.getBlue() );
|
|||
|
}
|
|||
|
|
|||
|
public bocoree.java.awt.Color getBackground() {
|
|||
|
return new bocoree.java.awt.Color( base.BackColor.R, base.BackColor.G, base.BackColor.B );
|
|||
|
}
|
|||
|
|
|||
|
public void setForeground( bocoree.java.awt.Color color ) {
|
|||
|
base.ForeColor = color.color;
|
|||
|
}
|
|||
|
|
|||
|
public bocoree.java.awt.Color getForeground() {
|
|||
|
return new bocoree.java.awt.Color( base.ForeColor.R, base.ForeColor.G, base.ForeColor.B );
|
|||
|
}
|
|||
|
|
|||
|
public void setFont( bocoree.java.awt.Font font ) {
|
|||
|
base.Font = font.font;
|
|||
|
}
|
|||
|
|
|||
|
public bool isEnabled() {
|
|||
|
return base.Enabled;
|
|||
|
}
|
|||
|
|
|||
|
public void setEnabled( bool value ) {
|
|||
|
base.Enabled = value;
|
|||
|
}
|
|||
|
|
|||
|
public void requestFocus() {
|
|||
|
base.Focus();
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
#endif
|