FreeRDP
Loading...
Searching...
No Matches
RDPSessionView Class Reference
Inheritance diagram for RDPSessionView:
Collaboration diagram for RDPSessionView:

Instance Methods

(void) - setSession:
 
(void) - prepareForBitmapContextChange
 
(void) - setNeedsDisplayInRemoteRect:
 
(void) - setRemoteCursor:
 
(void) - setRemoteCursorPosition:
 
(void) - showRemoteCursor
 
(void) - hideRemoteCursor
 
(void) - setDefaultRemoteCursor
 

Protected Attributes

RDPSession_session
 

Properties

BOOL hardwareKeyboardActive
 

Detailed Description

Definition at line 16 of file RDPSessionView.h.

Method Documentation

◆ hideRemoteCursor

- (void) hideRemoteCursor

Definition at line 45 of file RDPSessionView.m.

154{
155 [_cursorImageView setHidden:YES];
156}

◆ prepareForBitmapContextChange

- (void) prepareForBitmapContextChange

Definition at line 45 of file RDPSessionView.m.

257{
258 [_displayLink setPaused:YES];
259 _hasPendingDirtyRect = NO;
260 _pendingDirtyRect = CGRectNull;
261 [_desktopTexture release];
262 _desktopTexture = nil;
263}

◆ setDefaultRemoteCursor

- (void) setDefaultRemoteCursor

Definition at line 45 of file RDPSessionView.m.

159{
160 [self setRemoteCursor:[RDPCursor defaultCursor]];
161}

◆ setNeedsDisplayInRemoteRect:

- (void) setNeedsDisplayInRemoteRect: (CGRect)  rect

Definition at line 45 of file RDPSessionView.m.

265 :(CGRect)rect
266{
267 if (!_desktopTexture || CGRectIsNull(rect) || CGRectIsEmpty(rect))
268 return;
269
270 CGRect textureBounds = CGRectMake(0.0, 0.0, [_desktopTexture width], [_desktopTexture height]);
271 rect = CGRectIntersection(CGRectIntegral(rect), textureBounds);
272 if (CGRectIsNull(rect) || CGRectIsEmpty(rect))
273 return;
274
275 _pendingDirtyRect = _hasPendingDirtyRect ? CGRectUnion(_pendingDirtyRect, rect) : rect;
276 _hasPendingDirtyRect = YES;
277 [self scheduleRender];
278}

◆ setRemoteCursor:

- (void) setRemoteCursor: (RDPCursor *)  cursor

Definition at line 45 of file RDPSessionView.m.

127 :(RDPCursor *)cursor
128{
129 if (!cursor || ![cursor image])
130 {
131 [self hideRemoteCursor];
132 return;
133 }
134
135 _cursorHotspot = [cursor hotspot];
136 [_cursorImageView setImage:[cursor image]];
137 [_cursorImageView setHidden:NO];
138 [self updateRemoteCursorFrame];
139}

◆ setRemoteCursorPosition:

- (void) setRemoteCursorPosition: (CGPoint)  position

Definition at line 45 of file RDPSessionView.m.

141 :(CGPoint)position
142{
143 _cursorPosition = position;
144 [self updateRemoteCursorFrame];
145}

◆ setSession:

- (void) setSession: (RDPSession *)  session

Definition at line 45 of file RDPSessionView.m.

83 :(RDPSession *)session
84{
85 _session = session;
86 [self configureDesktopTexture];
87 [self setNeedsDisplayInRemoteRect:[self bounds]];
88}

◆ showRemoteCursor

- (void) showRemoteCursor

Definition at line 45 of file RDPSessionView.m.

148{
149 if ([_cursorImageView image])
150 [_cursorImageView setHidden:NO];
151}

Field Documentation

◆ _session

- (RDPSession*) _session
protected

Definition at line 18 of file RDPSessionView.h.

Property Documentation

◆ hardwareKeyboardActive

- (BOOL) hardwareKeyboardActive
readwritenonatomicassign

Definition at line 21 of file RDPSessionView.h.


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