Display
Object Hierarchy:
Description:
[ CCode ( type_id = "vnc_display_get_type ()" ) ]
public class Display : DrawingArea, Implementor, Buildable
public class Display : DrawingArea, Implementor, Buildable
Namespace: Vnc
Package: gtk-vnc-2.0
Content:
Properties:
- public bool allow_resize { get; set construct; }
- public Connection connection { get; }
- public DisplayDepthColor depth { get; set construct; }
- public bool force_size { get; set construct; }
- public bool grab_keyboard { get; set construct; }
- public GrabSequence grab_keys { get; set construct; }
- public bool grab_pointer { get; set construct; }
- public int height { get; }
- public bool keep_aspect_ratio { get; set construct; }
- public bool local_pointer { get; set construct; }
- public bool lossy_encoding { get; set construct; }
- public string name { get; }
- public bool read_only { get; set construct; }
- public uint rotation { get; set construct; }
- public bool scaling { get; set construct; }
- public bool shared_flag { get; set construct; }
- public bool smoothing { get; set construct; }
- public int width { get; }
- public uint zoom_level { get; set construct; }
Static methods:
- public static unowned OptionEntry[] get_option_entries ()
Get the array of command line option entries containing VNC specific otions
- public static OptionGroup get_option_group ()
Get a command line option group containing VNC specific options.
Creation methods:
- public Display ()
Create a new widget capable of connecting to a VNC server and displaying its contents
Methods:
- public void client_cut_text (string text)
- public void close ()
Request that the connection to the remote display is closed.
- public void force_grab (bool enable)
If
enable
is TRUE, immediately grab the pointer. - public bool get_allow_resize ()
Determine whether widget size is used to request rsize of the remote desktop
- public unowned Connection get_connection ()
Get the VNC connection object associated with the display
- public DisplayDepthColor get_depth ()
Get the desired colour depth
- public bool get_force_size ()
Determine whether the widget size is being forced to match the desktop size
- public unowned GrabSequence get_grab_keys ()
Get the current grab key sequence
- public int get_height ()
Get the height of the remote desktop.
- public bool get_keep_aspect_ratio ()
Determine whether the framebuffer aspect ratio is preserved when scaling.
- public bool get_keyboard_grab ()
Determine if the keyboard will be grabbed when the widget has input focus.
- public bool get_lossy_encoding ()
Determine whether lossy framebuffer update encodings are permitted
- public Pixbuf get_pixbuf ()
Take a screenshot of the display.
- public bool get_pointer_grab ()
Determine if the mouse pointer will be grabbed on first click
- public bool get_pointer_local ()
Determine if a local pointer will be shown
- public bool get_read_only ()
Determine if the widget will operate in read-only mode, denying keyboard/mouse inputs
- public uint get_rotation ()
Determine the current rotation angle of the remote desktop.
- public bool get_scaling ()
Determine whether the widget is permitted to scale the remote desktop to fit the current widget size.
- public bool get_shared_flag ()
Determine if other clients are permitted to share the VNC connection
- public bool get_smoothing ()
Determine whether pixels are smoothly interpolated when scaling.
- public int get_width ()
Get the width of the remote desktop.
- public uint get_zoom_level ()
Determine the current constant scaling factor.
- public bool is_open ()
Check if the connection for the display is currently open
- public bool is_pointer_absolute ()
Determine if the pointer is operating in absolute mode.
- public bool open_addr (SocketAddress addr, string? hostname)
Open a socket connection to server identified by
addr
. - public bool open_fd (int fd)
Open a connection using
fd
as the transport. - public bool open_fd_with_hostname (int fd, string? hostname)
Open a connection using
fd
as the transport. - public bool open_host (string host, string port)
Open a TCP connection to the remote desktop at
host
listening onport
. - public bool request_update ()
- public void send_keys (uint[] keyvals)
Send keyval click events to the display.
- public void send_keys_ex (uint[] keyvals, DisplayKeyEvent kind)
Sends key events to the remote server.
- public void send_pointer (int x, int y, int button_mask)
Move the remote pointer to position (
x
,y
) and set the button state tobutton_mask
. - public void set_allow_resize (bool enable)
Set whether changes in the widget size will be translated into requests to resize the remote desktop.
- public bool set_credential (int type, string data)
Sets the value of the authentication credential
type
to the stringdata
. - public void set_depth (DisplayDepthColor depth)
Set the desired colour depth.
- public void set_force_size (bool enable)
Set whether the widget size will be forced to match the remote desktop size.
- public void set_grab_keys (GrabSequence seq)
Set the sequence of keys that must be pressed to activate keyborad and pointer grab
- public void set_keep_aspect_ratio (bool enable)
Set whether the aspect ratio of the framebuffer is preserved when scaling.
- public void set_keyboard_grab (bool enable)
Set whether the widget will grab the keyboard when it has focus.
- public void set_lossy_encoding (bool enable)
Set whether the client is willing to accept lossy framebuffer update encodings.
- public void set_pointer_grab (bool enable)
Set whether the widget will automatically grab the mouse pointer upon a button click
- public void set_pointer_local (bool enable)
If
enable
is TRUE, then a local mouse cursor will be made visible. - public void set_read_only (bool enable)
Set whether the widget is running in read-only mode.
- public void set_rotation (uint rotation)
Set the rotation angle to view the display of the remote desktop, in clockwise direction.
- public bool set_scaling (bool enable)
Set whether the remote desktop contents is automatically scaled to fit the available widget size, or whether it will be rendered at 1:1 size
- public void set_shared_flag (bool shared)
Set the shared state for the connection.
- public void set_smoothing (bool enable)
Set whether pixels are smoothly interpolated when scaling, to avoid aliasing.
- public void set_zoom_level (uint zoom)
Requests a constant scaling factor to be applied to the remote desktop.
Signals:
- public virtual signal void vnc_auth_credential (ValueArray credList)
- public signal void vnc_auth_failure (string object)
- public signal void vnc_auth_unsupported (uint object)
- public signal void vnc_bell ()
- public virtual signal void vnc_connected ()
- public signal void vnc_desktop_rename (string object)
- public signal void vnc_desktop_resize (int object, int p0)
- public virtual signal void vnc_disconnected ()
- public signal void vnc_error (string object)
- public virtual signal void vnc_initialized ()
- public signal void vnc_keyboard_grab ()
- public signal void vnc_keyboard_ungrab ()
- public signal void vnc_pointer_grab ()
- public signal void vnc_pointer_ungrab ()
- public signal void vnc_power_control_failed ()
- public signal void vnc_power_control_initialized ()
- public signal void vnc_server_cut_text (string object)
Inherited Members:
All known members inherited from class Gtk.Widget
- accel_closures_changed
- activate
- add_accelerator
- add_device_events
- add_events
- add_mnemonic_label
- add_tick_callback
- adjust_baseline_allocation
- adjust_baseline_request
- adjust_size_allocation
- adjust_size_request
- app_paintable
- bind_template_callback_full
- bind_template_child_full
- button_press_event
- button_release_event
- can_activate_accel
- can_default
- can_focus
- child_focus
- child_notify
- class_path
- composite_child
- composited_changed
- compute_expand
- compute_expand_internal
- configure_event
- create_pango_context
- create_pango_layout
- damage_event
- delete_event
- destroy
- destroy_event
- destroyed
- device_is_shadowed
- direction_changed
- dispatch_child_properties_changed
- double_buffered
- drag_begin
- drag_data_delete
- drag_data_get
- drag_data_received
- drag_drop
- drag_end
- drag_failed
- drag_leave
- drag_motion
- draw
- draw_to_cairo_context
- ensure_style
- enter_notify_event
- error_bell
- event
- event_after
- events
- expand
- find_style_property
- focus
- focus_in_event
- focus_on_click
- focus_out_event
- freeze_child_notify
- get_accessible
- get_action_group
- get_allocated_baseline
- get_allocated_height
- get_allocated_size
- get_allocated_width
- get_allocation
- get_ancestor
- get_app_paintable
- get_can_default
- get_can_focus
- get_child_requisition
- get_child_visible
- get_clip
- get_clipboard
- get_composite_name
- get_css_name
- get_default_direction
- get_default_style
- get_device_enabled
- get_device_events
- get_direction
- get_display
- get_double_buffered
- get_events
- get_focus_on_click
- get_font_map
- get_font_options
- get_frame_clock
- get_halign
- get_has_tooltip
- get_has_window
- get_hexpand
- get_hexpand_set
- get_mapped
- get_margin_bottom
- get_margin_end
- get_margin_left
- get_margin_right
- get_margin_start
- get_margin_top
- get_modifier_mask
- get_modifier_style
- get_no_show_all
- get_opacity
- get_pango_context
- get_parent
- get_parent_window
- get_path
- get_pointer
- get_preferred_height
- get_preferred_height_and_baseline_for_width
- get_preferred_height_for_width
- get_preferred_height_for_width_internal
- get_preferred_height_internal
- get_preferred_size
- get_preferred_width
- get_preferred_width_for_height
- get_preferred_width_for_height_internal
- get_preferred_width_internal
- get_realized
- get_receives_default
- get_request_mode
- get_requisition
- get_root_window
- get_scale_factor
- get_screen
- get_sensitive
- get_settings
- get_size_request
- get_state
- get_state_flags
- get_style
- get_style_context
- get_support_multidevice
- get_template_child
- get_tooltip_markup
- get_tooltip_text
- get_tooltip_window
- get_toplevel
- get_valign
- get_valign_with_baseline
- get_vexpand
- get_vexpand_set
- get_visible
- get_visual
- get_window
- grab_broken_event
- grab_default
- grab_focus
- grab_notify
- halign
- has_default
- has_focus
- has_grab
- has_rc_style
- has_screen
- has_tooltip
- has_visible_focus
- height_request
- hexpand
- hexpand_set
- hide
- hide_on_delete
- hierarchy_changed
- in_destruction
- init_template
- input_shape_combine_region
- insert_action_group
- install_style_property
- install_style_property_parser
- intersect
- is_ancestor
- is_composited
- is_drawable
- is_focus
- is_sensitive
- is_toplevel
- is_visible
- key_press_event
- key_release_event
- keynav_failed
- leave_notify_event
- list_accel_closures
- list_action_prefixes
- list_mnemonic_labels
- list_style_properties
- map
- map_event
- margin
- margin_bottom
- margin_end
- margin_left
- margin_right
- margin_start
- margin_top
- mnemonic_activate
- modify_base
- modify_bg
- modify_cursor
- modify_fg
- modify_font
- modify_style
- modify_text
- motion_notify_event
- move_focus
- name
- no_show_all
- opacity
- override_background_color
- override_color
- override_cursor
- override_font
- override_symbolic_color
- parent
- parent_set
- path
- pop_composite_child
- popup_menu
- property_notify_event
- proximity_in_event
- proximity_out_event
- push_composite_child
- query_tooltip
- queue_allocate
- queue_compute_expand
- queue_draw
- queue_draw_area
- queue_draw_region
- queue_resize
- queue_resize_no_redraw
- realize
- receives_default
- region_intersect
- register_window
- remove_accelerator
- remove_mnemonic_label
- remove_tick_callback
- render_icon
- render_icon_pixbuf
- reparent
- reset_rc_styles
- reset_style
- scale_factor
- screen_changed
- scroll_event
- selection_clear_event
- selection_get
- selection_notify_event
- selection_received
- selection_request_event
- send_expose
- send_focus_change
- sensitive
- set_accel_path
- set_accessible_role
- set_accessible_type
- set_allocation
- set_app_paintable
- set_can_default
- set_can_focus
- set_child_visible
- set_clip
- set_composite_name
- set_connect_func
- set_css_name
- set_default_direction
- set_device_enabled
- set_device_events
- set_direction
- set_double_buffered
- set_events
- set_focus_on_click
- set_font_map
- set_font_options
- set_halign
- set_has_tooltip
- set_has_window
- set_hexpand
- set_hexpand_set
- set_mapped
- set_margin_bottom
- set_margin_end
- set_margin_left
- set_margin_right
- set_margin_start
- set_margin_top
- set_no_show_all
- set_opacity
- set_parent
- set_parent_window
- set_realized
- set_receives_default
- set_redraw_on_allocate
- set_sensitive
- set_size_request
- set_state
- set_state_flags
- set_style
- set_support_multidevice
- set_template
- set_template_from_resource
- set_tooltip_markup
- set_tooltip_text
- set_tooltip_window
- set_valign
- set_vexpand
- set_vexpand_set
- set_visible
- set_visual
- set_window
- shape_combine_region
- show
- show_all
- show_help
- show_now
- size_allocate
- size_allocate_with_baseline
- size_request
- state_changed
- state_flags_changed
- style
- style_attach
- style_get
- style_get_property
- style_get_valist
- style_set
- style_updated
- thaw_child_notify
- tooltip_markup
- tooltip_text
- touch_event
- translate_coordinates
- trigger_tooltip_query
- unmap
- unmap_event
- unparent
- unrealize
- unregister_window
- unset_state_flags
- valign
- vexpand
- vexpand_set
- visibility_notify_event
- visible
- width_request
- window_state_event
All known members inherited from class GLib.Object
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable