Beispiel #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))
 {
 }
Beispiel #2
0
        //-----------------------------------------------------------------------------

        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));
        }
Beispiel #3
0
 public static bool ShowTip(Window parent, IntPtr tipProvider, bool showAtStartup)
 {
     return(wxShowTip_func(Object.SafePtr(parent), tipProvider, showAtStartup));
 }
Beispiel #4
0
        //---------------------------------------------------------------------

        public bool GetPixel(int x, int y, Colour col)
        {
            return(wxDC_GetPixel(wxObject, x, y, Object.SafePtr(col)));
        }
Beispiel #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);
        }
Beispiel #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));
 }
Beispiel #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));
        }
Beispiel #8
0
        //---------------------------------------------------------------------

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

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

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

        public bool Draw(DC dc)
        {
            return(wxDocument_Draw(wxObject, Object.SafePtr(dc)));
        }
Beispiel #14
0
 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))
 {
 }
Beispiel #15
0
 public PaintDC(Window window)
     : this(wxPaintDC_ctor2(Object.SafePtr(window)), true)
 {
 }
Beispiel #16
0
        //---------------------------------------------------------------------

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

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

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

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

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

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

        public void SetTextBackground(Colour colour)
        {
            wxWindowDC_SetTextBackground(wxObject, Object.SafePtr(colour));
        }
Beispiel #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));
        }
Beispiel #26
0
        //---------------------------------------------------------------------

        public void SetPalette(Palette palette)
        {
            wxWindowDC_SetPalette(wxObject, Object.SafePtr(palette));
        }
Beispiel #27
0
 public static bool ShowTip(Window parent, IntPtr tipProvider)
 {
     return(wxShowTip_func(Object.SafePtr(parent), tipProvider, true));
 }
Beispiel #28
0
 public ClientDC(Window window)
     : this(wxClientDC_ctor2(Object.SafePtr(window)), true)
 {
 }
Beispiel #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));
        }
Beispiel #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);
 }