68 |
|
|
69 |
Color color, xorColor; |
Color color, xorColor; |
70 |
GtkComponentPeer component; |
GtkComponentPeer component; |
71 |
Font font; |
Font font = new Font ("Dialog", Font.PLAIN, 12); |
72 |
Rectangle clip; |
Rectangle clip; |
73 |
GtkImage image; |
GtkImage image; |
74 |
|
|
88 |
color = g.color; |
color = g.color; |
89 |
xorColor = g.xorColor; |
xorColor = g.xorColor; |
90 |
font = g.font; |
font = g.font; |
91 |
|
if (font == null) |
92 |
|
font = new Font ("Dialog", Font.PLAIN, 12); |
93 |
clip = new Rectangle (g.clip); |
clip = new Rectangle (g.clip); |
94 |
component = g.component; |
component = g.component; |
95 |
|
|
117 |
GdkGraphics (GtkComponentPeer component) |
GdkGraphics (GtkComponentPeer component) |
118 |
{ |
{ |
119 |
this.component = component; |
this.component = component; |
|
font = component.awtComponent.getFont (); |
|
|
if (font == null) |
|
|
font = new Font ("Dialog", Font.PLAIN, 12); |
|
120 |
color = Color.black; |
color = Color.black; |
121 |
|
|
122 |
if (component.isRealized ()) |
if (component.isRealized ()) |
379 |
|
|
380 |
public void setFont (Font font) |
public void setFont (Font font) |
381 |
{ |
{ |
382 |
this.font = font; |
if (font != null) |
383 |
|
this.font = font; |
384 |
} |
} |
385 |
|
|
386 |
native void setFunction (int gdk_func); |
native void setFunction (int gdk_func); |