UpdateUIEvent.cs :  » GUI » wx-NET » wx » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » GUI » wx NET 
wx NET » wx » UpdateUIEvent.cs
//-----------------------------------------------------------------------------
// wx.NET - UpdateUIEvent.cs
//
// The wxUpdateUIEvent wrapper class.
//
// Written by Jason Perkins (jason@379.com)
// (C) 2003 by 379, Inc.
// Licensed under the wxWidgets license, see LICENSE.txt for details.
//
// $Id: UpdateUIEvent.cs,v 1.8 2007/12/08 23:21:15 harald_meyer Exp $
//-----------------------------------------------------------------------------

using System;
using System.Runtime.InteropServices;

namespace wx{
  public class UpdateUIEvent : CommandEvent
  {
    [DllImport("wx-c")] static extern IntPtr wxUpdateUIEvent_ctor(int commandId);
    [DllImport("wx-c")] static extern void   wxUpdUIEvt_Enable(IntPtr self, bool enable);
    [DllImport("wx-c")] static extern void   wxUpdUIEvt_Check(IntPtr self, bool check);
    [DllImport("wx-c")] static extern bool   wxUpdateUIEvent_CanUpdate(IntPtr window);
    [DllImport("wx-c")] static extern bool   wxUpdateUIEvent_GetChecked(IntPtr self);
    [DllImport("wx-c")] static extern bool   wxUpdateUIEvent_GetEnabled(IntPtr self);
    [DllImport("wx-c")] static extern bool   wxUpdateUIEvent_GetSetChecked(IntPtr self);
    [DllImport("wx-c")] static extern bool   wxUpdateUIEvent_GetSetEnabled(IntPtr self);
    [DllImport("wx-c")] static extern bool   wxUpdateUIEvent_GetSetText(IntPtr self);
    [DllImport("wx-c")] static extern IntPtr wxUpdateUIEvent_GetText(IntPtr self);
    [DllImport("wx-c")] static extern int    wxUpdateUIEvent_GetMode();
    [DllImport("wx-c")] static extern int    wxUpdateUIEvent_GetUpdateInterval();
    [DllImport("wx-c")] static extern void   wxUpdateUIEvent_ResetUpdateTime();
    [DllImport("wx-c")] static extern void   wxUpdateUIEvent_SetMode(int mode);
    [DllImport("wx-c")] static extern void   wxUpdateUIEvent_SetText(IntPtr self, IntPtr text);
    [DllImport("wx-c")] static extern void   wxUpdateUIEvent_SetUpdateInterval(int updateInterval);

    //-----------------------------------------------------------------------------

    public UpdateUIEvent(IntPtr wxObject) 
      : base(wxObject) { }
      
    public UpdateUIEvent() 
      : this(0) { }
      
    public UpdateUIEvent(int commandId) 
      : this(wxUpdateUIEvent_ctor(commandId)) { }

    //-----------------------------------------------------------------------------

    public bool Enabled
    {
      set { wxUpdUIEvt_Enable(wxObject, value); }
    }

    //-----------------------------------------------------------------------------
    
    public bool Check
    {
      set { wxUpdUIEvt_Check(wxObject, value); }
    }
    
    //-----------------------------------------------------------------------------
    
    public static bool CanUpdate(Window window)
    {
      return wxUpdateUIEvent_CanUpdate(Object.SafePtr(window));
    }
    
    //-----------------------------------------------------------------------------
    
    public bool Checked
    {
      get { return wxUpdateUIEvent_GetChecked(wxObject); }
    }
    
    //-----------------------------------------------------------------------------
    
    public bool GetEnabled()
    {
      return wxUpdateUIEvent_GetEnabled(wxObject);
    }
    
    //-----------------------------------------------------------------------------
    
    public bool SetChecked
    {
      get { return wxUpdateUIEvent_GetSetChecked(wxObject); }
    }
    
    //-----------------------------------------------------------------------------
    
    public bool SetEnabled
    {
      get { return wxUpdateUIEvent_GetSetEnabled(wxObject); }
    }
    
    //-----------------------------------------------------------------------------
    
    public bool SetText
    {
      get { return wxUpdateUIEvent_GetSetText(wxObject); }
    }
    
    //-----------------------------------------------------------------------------
    
    public string Text
    {
      get { return new wxString(wxUpdateUIEvent_GetText(wxObject), true); }
      set
            {
                wxString wxvalue = wxString.SafeNew(value);
                wxUpdateUIEvent_SetText(wxObject, Object.SafePtr(wxvalue));
            }
    }
    
    //-----------------------------------------------------------------------------
    
    public static UpdateUIMode Mode
    {
      get { return (UpdateUIMode)wxUpdateUIEvent_GetMode(); }
      set { wxUpdateUIEvent_SetMode((int)value); }
    }
    
    //-----------------------------------------------------------------------------
    
    public static int UpdateInterval
    {
      get { return wxUpdateUIEvent_GetUpdateInterval(); }
      set { wxUpdateUIEvent_SetUpdateInterval(value); }
    }
    
    //-----------------------------------------------------------------------------
    
    public static void ResetUpdateTime()
    {
      wxUpdateUIEvent_ResetUpdateTime();
    }
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.