示例#1
0
 public TextEntryDialog(Window parent, string message, string caption, string value, int style, Point pos)
     : this(wxTextEntryDialog_ctor(Object.SafePtr(parent), message, caption, value, (uint)style, ref pos))
 {
 }
示例#2
0
文件: VScroll.cs 项目: wshcdr/wxnet
        //-----------------------------------------------------------------------------

        public bool Create(Window parent, int id, Point pos, Size size, int style, string name)
        {
            return(wxVScrolledWindow_Create(wxObject, Object.SafePtr(parent), id, ref pos, ref size, style, name));
        }
示例#3
0
 public static bool ShowTip(Window parent, IntPtr tipProvider, bool showAtStartup)
 {
     return(wxShowTip_func(Object.SafePtr(parent), tipProvider, showAtStartup));
 }
示例#4
0
        //---------------------------------------------------------------------

        public bool GetPixel(int x, int y, Colour col)
        {
            return(wxDC_GetPixel(wxObject, x, y, Object.SafePtr(col)));
        }
示例#5
0
        //---------------------------------------------------------------------

        public virtual void DrawLabel(string text, Bitmap image, Rectangle rect, int alignment, int indexAccel, ref Rectangle rectBounding)
        {
            wxDC_DrawLabel(wxObject, text, Object.SafePtr(image), ref rect, alignment, indexAccel, ref rectBounding);
        }
示例#6
0
 public void GetTextExtent(string str, out int x, out int y, out int descent, out int externalLeading, Font theFont)
 {
     wxDC_GetTextExtent(wxObject, str, out x, out y, out descent, out externalLeading, Object.SafePtr(theFont));
 }
示例#7
0
        //---------------------------------------------------------------------

        public bool Blit(int xdest, int ydest, int width, int height, DC source, int xsrc, int ysrc, int rop, bool useMask, int xsrcMask, int ysrcMask)
        {
            return(wxDC_Blit(wxObject, xdest, ydest, width, height, Object.SafePtr(source), xsrc, ysrc, rop, useMask, xsrcMask, ysrcMask));
        }
示例#8
0
        //---------------------------------------------------------------------

        public void AddPendingEvent(Event evt)
        {
            wxEvtHandler_AddPendingEvent(wxObject, Object.SafePtr(evt));
        }
示例#9
0
 public WindowDC(Window win)
     : this(wxWindowDC_ctor2(Object.SafePtr(win)), true)
 {
 }
示例#10
0
 public static Config Set(Config config)
 {
     return((Config)FindObject(wxConfigBase_Set(Object.SafePtr(config)), typeof(Config)));
 }
示例#11
0
        //---------------------------------------------------------------------

        public bool ProcessEvent(Event evt)
        {
            return(wxEvtHandler_ProcessEvent(wxObject, Object.SafePtr(evt)));
        }
示例#12
0
        //-----------------------------------------------------------------------------

        public Document(Document parent)
            : base(wxDocument_ctor(Object.SafePtr(parent)))
        {
        }
示例#13
0
        //-----------------------------------------------------------------------------

        public bool Draw(DC dc)
        {
            return(wxDocument_Draw(wxObject, Object.SafePtr(dc)));
        }
示例#14
0
文件: DirDialog.cs 项目: wshcdr/wxnet
 public DirDialog(Window parent, string message, string defaultPath, int style, Point pos, Size size, string name)
     : this(wxDirDialog_ctor(Object.SafePtr(parent), message, defaultPath, (uint)style, ref pos, ref size, name))
 {
 }
示例#15
0
 public PaintDC(Window window)
     : this(wxPaintDC_ctor2(Object.SafePtr(window)), true)
 {
 }
示例#16
0
        //---------------------------------------------------------------------

        public void SetFont(Font font)
        {
            wxWindowDC_SetFont(wxObject, Object.SafePtr(font));
        }
示例#17
0
        //---------------------------------------------------------------------

        public void DrawBitmap(Bitmap bmp, int x, int y, bool useMask)
        {
            wxDC_DrawBitmap(wxObject, Object.SafePtr(bmp), x, y, useMask);
        }
示例#18
0
        //---------------------------------------------------------------------

        public void SetPen(Pen pen)
        {
            wxWindowDC_SetPen(wxObject, Object.SafePtr(pen));
        }
示例#19
0
 public void SetClippingRegion(Region reg)
 {
     wxDC_SetClippingRegionReg(wxObject, Object.SafePtr(reg));
 }
示例#20
0
        //---------------------------------------------------------------------

        public void SetBrush(Brush brush)
        {
            wxWindowDC_SetBrush(wxObject, Object.SafePtr(brush));
        }
示例#21
0
 public bool FloodFill(int x, int y, Colour col, int style)
 {
     return(wxDC_FloodFill(wxObject, x, y, Object.SafePtr(col), style));
 }
示例#22
0
        //---------------------------------------------------------------------

        public void SetBackground(Brush brush)
        {
            wxWindowDC_SetBackground(wxObject, Object.SafePtr(brush));
        }
示例#23
0
        //---------------------------------------------------------------------

        public void DrawIcon(Icon icon, int x, int y)
        {
            wxDC_DrawIcon(wxObject, Object.SafePtr(icon), x, y);
        }
示例#24
0
        //---------------------------------------------------------------------

        public void SetTextBackground(Colour colour)
        {
            wxWindowDC_SetTextBackground(wxObject, Object.SafePtr(colour));
        }
示例#25
0
        //---------------------------------------------------------------------

        public virtual void GetMultiLineTextExtent(string text, out int width, out int height, out int heightline, Font font)
        {
            wxDC_GetMultiLineTextExtent(wxObject, text, out width, out height, out heightline, Object.SafePtr(font));
        }
示例#26
0
        //---------------------------------------------------------------------

        public void SetPalette(Palette palette)
        {
            wxWindowDC_SetPalette(wxObject, Object.SafePtr(palette));
        }
示例#27
0
 public static bool ShowTip(Window parent, IntPtr tipProvider)
 {
     return(wxShowTip_func(Object.SafePtr(parent), tipProvider, true));
 }
示例#28
0
 public ClientDC(Window window)
     : this(wxClientDC_ctor2(Object.SafePtr(window)), true)
 {
 }
示例#29
0
        //---------------------------------------------------------------------

        public bool Create(Window parent, int id, string label, Point pos, Size size,
                           long style, Validator val, string name)
        {
            return(wxCheckBox_Create(wxObject, Object.SafePtr(parent), id,
                                     label, ref pos, ref size, (uint)style, Object.SafePtr(val), name));
        }
示例#30
0
 public GetTextFromUser(string message, string caption, string defaultValue, Window parent, int x, int y, bool centre)
 {
     value = new wxString(wxGetTextFromUser_func(message, caption, defaultValue, Object.SafePtr(parent), x, y, centre), true);
 }