xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::form Class Referencefinal
Inheritance diagram for xtd::forms::native::form:
xtd::static_object

Definition

Contains form native API.

Namespace
xtd::forms::native
Library
xtd.forms.native native
Warning
Internal use only

Protected Static Methods

static void activate (intptr control)
 Activates the form and gives it focus.
 
static void close (intptr control)
 Closes the form.
 
static void end_dialog (intptr control, int32 result)
 Force end dialog with specified result.
 
static bool full_screen (intptr control)
 Gets a value indicates whether full screen window.
 
static void full_screen (intptr control, bool full_screen)
 Sets a value indicates whether full screen window.
 
static void icon (intptr control, const xtd::drawing::icon &icon)
 Sets the icon for the form.
 
static bool maximize (intptr control)
 Gets a value indicate whether maximized windows.
 
static void maximize (intptr control, bool maximize)
 Sets a value indicate whether maximized windows.
 
static bool minimize (intptr control)
 Gets a value indicate whether minimized windows.
 
static void minimize (intptr control, bool minimize)
 Sets a value indicate whether minimized windows.
 
static void menu (intptr control, intptr menu)
 Sets the main_menu that is displayed in the form.
 
static void opacity (intptr control, double opacity)
 Sets form opacity.
 
static void restore (intptr control)
 Restore form in normal state (not minimized, not maximized and not full screen).
 
static void set_region (intptr control, intptr region)
 Sets the shape of the window to that depicted by region.
 
static int32 show_dialog (intptr control)
 Show dialog.
 
static void show_sheet (intptr control)
 Show async dialog as sheet.
 
static int32 show_sheet_dialog (intptr control)
 Show dialog as sheet.
 
static void virtual_size (intptr control, const drawing::size &size)
 Sets virtual size.
 

Member Function Documentation

◆ activate()

static void xtd::forms::native::form::activate ( intptr  control)
staticprotected

Activates the form and gives it focus.

Parameters
controlControl window handle.
Warning
Internal use only

◆ close()

static void xtd::forms::native::form::close ( intptr  control)
staticprotected

Closes the form.

Parameters
controlControl window handle.
Warning
Internal use only

◆ end_dialog()

static void xtd::forms::native::form::end_dialog ( intptr  control,
int32  result 
)
staticprotected

Force end dialog with specified result.

Parameters
controlControl window handle.
resultA dialog box id.
Warning
Internal use only

◆ full_screen() [1/2]

static bool xtd::forms::native::form::full_screen ( intptr  control)
staticprotected

Gets a value indicates whether full screen window.

Parameters
controlControl window handle.
Returns
true if form is full screen; otherwise false.
Warning
Internal use only

◆ full_screen() [2/2]

static void xtd::forms::native::form::full_screen ( intptr  control,
bool  full_screen 
)
staticprotected

Sets a value indicates whether full screen window.

Parameters
controlControl window handle.
full_screentrue if form is full screen; otherwise false.
Warning
Internal use only

◆ icon()

static void xtd::forms::native::form::icon ( intptr  control,
const xtd::drawing::icon icon 
)
staticprotected

Sets the icon for the form.

Parameters
controlControl window handle.
iconAn icon that represents the icon for the form.
Warning
Internal use only

◆ maximize() [1/2]

static bool xtd::forms::native::form::maximize ( intptr  control)
staticprotected

Gets a value indicate whether maximized windows.

Parameters
controlControl window handle.
Returns
true if form is full screen; otherwise false.
Warning
Internal use only

◆ maximize() [2/2]

static void xtd::forms::native::form::maximize ( intptr  control,
bool  maximize 
)
staticprotected

Sets a value indicate whether maximized windows.

Parameters
controlControl window handle.
maximizetrue if form is maximized; otherwise false.
Warning
Internal use only

◆ minimize() [1/2]

static bool xtd::forms::native::form::minimize ( intptr  control)
staticprotected

Gets a value indicate whether minimized windows.

Parameters
controlControl window handle.
Returns
true if form is full screen; otherwise false.
Warning
Internal use only

◆ minimize() [2/2]

static void xtd::forms::native::form::minimize ( intptr  control,
bool  minimize 
)
staticprotected

Sets a value indicate whether minimized windows.

Parameters
controlControl window handle.
minimizetrue if form is full screen; otherwise false.
Warning
Internal use only

◆ menu()

static void xtd::forms::native::form::menu ( intptr  control,
intptr  menu 
)
staticprotected

Sets the main_menu that is displayed in the form.

Parameters
controlControl window handle.
menuA menu handle that represents the menu to display in the form.
Warning
Internal use only

◆ opacity()

static void xtd::forms::native::form::opacity ( intptr  control,
double  opacity 
)
staticprotected

Sets form opacity.

Parameters
controlControl window handle.
opacityA double-precision value between 0.0 and 1.0 that represent the form opacity.
Warning
Internal use only

◆ restore()

static void xtd::forms::native::form::restore ( intptr  control)
staticprotected

Restore form in normal state (not minimized, not maximized and not full screen).

Parameters
controlControl window handle.
Warning
Internal use only

◆ set_region()

static void xtd::forms::native::form::set_region ( intptr  control,
intptr  region 
)
staticprotected

Sets the shape of the window to that depicted by region.

Parameters
controlControl window handle.
regionThe region to set shape;
Warning
Internal use only

◆ show_dialog()

static int32 xtd::forms::native::form::show_dialog ( intptr  control)
staticprotected

Show dialog.

Parameters
controlControl window handle.
Warning
Internal use only

◆ show_sheet()

static void xtd::forms::native::form::show_sheet ( intptr  control)
staticprotected

Show async dialog as sheet.

Parameters
controlControl window handle.
Warning
Internal use only

◆ show_sheet_dialog()

static int32 xtd::forms::native::form::show_sheet_dialog ( intptr  control)
staticprotected

Show dialog as sheet.

Parameters
controlControl window handle.
Warning
Internal use only

◆ virtual_size()

static void xtd::forms::native::form::virtual_size ( intptr  control,
const drawing::size size 
)
staticprotected

Sets virtual size.

Parameters
controlControl window handle.
sizeA virtual xtd::drawing::size.
Warning
Internal use only

The documentation for this class was generated from the following file: